PHP 7.0 Nearing Release, Performance Almost As Good As HHVM
An anonymous reader writes: PHP 7.0 RC2 was released on Friday. In addition to the new language features, PHP 7.0 is advertised as having twice the performance of PHP 5. Benchmarks of PHP 7.0 RC2 show that these performance claims are indeed accurate, and just not for popular PHP programs like WordPress. In tests done by Phoronix, the PHP performance was 2~2.5x faster all while consuming less memory than PHP 5.3~5.6. Facebook's HHVM implementation meanwhile still held a small performance lead, though it was consuming much more memory. PHP 7.0 is scheduled to be released in November.
Is php even relevant any more?
It seems to be exclusively In the domain of non programmer - the kinds who constantly pump out insecure code.
And boy there is a lot of insecure web apps. I don't run php on a public facing server. For me it's the server version of flash on the desktop. You just know there's another joke just around the corner.
I already switched to NodeJS because of the convenience of one language.
Weekly PHP bashing contest starting in 3...2... Aaaand I was late.
Student Suspended Over Suspected Use of PHP
Cue if you're playing snooker or pool, queue if you'e standing in line.
Cue if you're playing snooker or pool
... or if you're calling for someone to begin their performance, as in the OP.
A lot of the language is just a thin wrapper around various libraries, which is why so many functions are like that. Newer functions and classes are much cleaner, but there is a bunch of old junk still in there for compatability.
Used properly it is a nice language. Unfortunately most people don't bother to really learn it and just copy and paste code. A big flaw in the language is that it let's you get away with really awful code.
I've written several commercial grade, industry wide web applications in PHP... can't consider a time when someone has hacked the site, jacked the site, or basically screwed it over because of some piss poor LANGUAGE flaw.
A great developer is what matters.
And I've seen my fair share of perl code that was completely stupid, filled with security holes and bugs up the ass.
Honestly, I've been using PHP for twelve years, and Java, C++, and C# for about as much... and frankly wonder WTF sort of mind it takes to even create a shitty application in the first place.
Am I an exception to the rule? Probably. But I'm excited for PHP 7. It works... if you know how to make it work.
I've seen enough shit websites built in PHP, and ASP, and perl, and C#, and JSP/Java... WTFever... and frankly, its not the language that's the problem.
I hate PHP, but that doesn't mean I go around waving my dick. PHP is like VB6, it sucks but a boatload of code is written in it.
The world's burning. Moped Jesus spotted on I50. Details at 11.
I would say that nodejs is now a better choice for anything that would be otherwise done with php.
Including cost of deployment, especially on a small slice of a leased server? PHP has long had a deployment cost advantage. It also has some very widely used applications. What Node.js based forum software is better than phpBB? What Node.js based wiki software is better than MediaWiki? And what Node.js based blog software is any good?
As I wrote in my article about PHP, some very simple coding standards analogous to those described in Douglas Crockford's JavaScript: The Good Parts will work around most of the stuff described in the "fractal" article. This left six distinct points, some of which PHP 7 addresses to an extent.
https://www.youtube.com/watch?...
Some drink at the fountain of knowledge. Others just gargle.
My theory about the HHVM is that you have all this top talent at FB who are forced to either use PHP to work on the core product or they can use other languages but not hang out with the core developers. Thus the HHVM would be much like the JVM in that it would allow for PHP to be end run and other languages could run inside the VM.
Also working on the VM would appeal to the academic pseudo cred that they want while working at the very heart of FB. In theory this end run will allow these top tier developers to go to conferences and say, I am a core developer at FB, I work on the key features, but I am not a pathetic hack using PHP, I am a god programming in (Haskell, Lisp, Scala, Go, Rust, R, Erlang, etc) and thus I am beyond mere mortals who program in the pedestrian languages that are so far beneath me that can barely think about them.
All this without spitting in Zuckerberg's face and telling him his life's work was done like a two bit hack using the tools of a nube.
But some of the wind might be taken out of their sails if PHP 7 comes along and eats at the main metric that they can use to justify this end run. I suspect that somehow stats will be pulled out that show that under carefully crafted circumstances that lowly mortals can barely understand that HHVM is so much better than PHP 7 that it completely justifies the massive efforts that have gone into HHVM.
The real test will be to see if some organizations such as Wikipedia then dump HHVM to return to the less complex deployment environment found in PHP 7.
This endless PHP bashing is getting a bit sad. Sure, earlier versions of PHP did have some bad things, but with PHP 5 it's very easy to create solid applications. You still may not like PHP, that's fine. In that case the only wise thing to do is to choose something else. But for any badly written application in PHP 5 I'm 100% sure that the programmer is to blame, not the language. Yes, looking at all the other modern programming languages these days, that I think that's the case for all of them. But PHP 5 is a modern and mature programmming language and has everything you need to write a modern web application. It can easily compete with the others.
To all those PHP-haters: bash and whine whatever you like. The world doesn't care. Look at the statistics: PHP is used much by many. It's here to stay. Grow up and move on.
Myself, I use PHP a lot. I've written my own framework. I really like PHP, because it's easy to use and specially because it's so easy to deploy. Easier than many other languages. I'm really looking forward to what PHP 7 has to offer.
It doesn't have to be like this. All we need to do is make sure we keep talking.
Sorry, just reading The Politics of Star Trek article.
DonÂt forget Q, the omnipotent person/race.
What happened to PHP 6.0? Are they skipping a version just to one-up Perl?
Banshee
It doesn't have to be like this. All we need to do is make sure we keep talking.
Banshee
It doesn't have to be like this. All we need to do is make sure we keep talking.
I was reading,waiting for your language retort, then I read java
do you actually take yourself serious?
I laughed too, especially at the "stellar performance" bit. Ya gotta admit, that was funny.
Just cruising through this digital world at 33 1/3 rpm...
Java is 21st Century COBOL. PHP is... something else entirely.
Java and COBOL are programming languages that you do massive waterfall projects in. They're both designed to be easily readable and validatable by a reasonably qualified third party. (Yes, I know, Java routinely fails at that, in part because the assumption was that "everyone knows C" and so the syntax was based upon that, without any investigation into C's flaws) They're designed for slow, deliberate, programming by programmers who are reading from a spec.
PHP is much more free form, for better or worse. That's the root of why the two schools look down on one another, with PHP programmers able to point at higher productivity, and Java/COBOL programmers able to point at "right first time" solid code with few security flaws upon the eventual first release of their code.
Not a PHP fan myself, but that's because the syntax and feature list are shitty. A cleaned up PHP-like language would be very valuable, though many would argue that's exactly what Javascript - the language, not the framework built into browsers - is.
You are not alone. This is not normal. None of this is normal.
php was specifically designed to make the internet a insecure place and all your propaganda wont change this.
it still is untyped and that opens a shitload of attack avenues. some folks like this, others are less interested in war...
"Que" means nothing, unless you're speaking spanish.
Or eating deliciously prepared meats cooked with fire and smoke.
Someone flopped a steamer in the gene pool.
Like any other language that suits his purpose - when well coded!
I've been using PHP in web development for 10 years now and I can say it has very good features along with some flaws but, once again, just like any other language.
People read "PHP" and think automatically in(secure) phpBB or Joomla but you can write your own PHP code/framework/project, you know. Just make sure if it fits your needs first before you say it doesn't do the job. Maybe you just chose the wrong set of tools for the job.
Damn, I even write shell scripts with it and been replacing old bash scripts for PHP!
Facebook uses PHP so it's developers don't get really great job offers from other companies, as PHP pay doesn't generally go as high as pay for things like Java.
Democracy Now! - your daily, uncensored, corporate-free
The first version of ASP (Active Server Pages) was RELEASED in 1996 after a couple years of betas, and the first version of PHP as we know it (PHP/FI 2.0) wasn't until 1997. There was "Personal Home Page Tools (PHP Tools)" in which PHP came from dating back to 1995, but it wasn't a stand alone language like we know it.
As someone who was actually using ASP in 1994, I can definitely say it predated PHP, even if you consider "Personal Home Page Tools (PHP Tools)" being announced in 1995.