Skip to content

Instantly share code, notes, and snippets.

@lornajane
Created June 14, 2012 07:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lornajane/2928842 to your computer and use it in GitHub Desktop.
Save lornajane/2928842 to your computer and use it in GitHub Desktop.
PHP 5.3 vs PHP 5.4
5.3.12 5.4.3
Run 1 2.07883811 0.94130707
Run 2 2.03927302 0.96553779
Run 3 2.03478503 0.96503210
Run 4 2.05938697 0.94606614
Run 5 2.04912210 0.95049596
@goatherd
Copy link

Could you provide what was tested, please?

Knowing PHP 5.4 there is a lot of difference. Iteration for example is quiet similar in terms of speed, whereas $obj->key and $obj->key = $value are slightly faster in comparision.

@lornajane
Copy link
Author

This is just the verbose data from the blog post I wrote which includes what was run and my thoughts on this: http://www.lornajane.net/posts/2012/proof-that-php-5-4-is-twice-as-fast-as-php-5-3

The data above is meaningless on its own, I'm not sure how it was linked to directly :)

@goatherd
Copy link

Thank you. Can't see how it worked, but google seems to like it a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment