3v4l.org

run code in 300+ PHP versions simultaneously
<?php $needsVersion = '5.2'; $versions = ['5', '5.x', '5.1', '5.2', '5.2-dev', '5.2.0', '5.2.1', '5.3']; foreach ($versions as $version) { if (version_compare($version, $needsVersion, '>=')) { echo "{$version} >= $needsVersion\n"; } else { echo "{$version} < $needsVersion\n"; } }
Output for git.master, git.master_jit, rfc.property-hooks
5 < 5.2 5.x < 5.2 5.1 < 5.2 5.2 >= 5.2 5.2-dev < 5.2 5.2.0 >= 5.2 5.2.1 >= 5.2 5.3 >= 5.2

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
27 ms | 405 KiB | 5 Q