3v4l.org

run code in 300+ PHP versions simultaneously
<?php function cmp($v) { $r = version_compare( $v, '3.8', '<' ); $r = $r ? 'yes' : 'no'; echo $v . ' < 3.8 :' . $r; } cmp('3.3'); cmp('3.3.1'); cmp('3.3.2'); cmp('3.3.3'); cmp('3.4'); cmp('3.4.1'); cmp('3.4.2'); cmp('3.5'); cmp('3.5.1'); cmp('3.5.2'); cmp('3.6'); cmp('3.6.1'); cmp('3.7'); cmp('3.7.1'); cmp('3.7.2'); cmp('3.7.3'); echo '-----------------' . PHP_EOL; cmp('3.8'); cmp('3.8.1'); cmp('3.8.2'); cmp('3.8.3'); cmp('3.9'); cmp('3.9.1');
Output for git.master, git.master_jit, rfc.property-hooks
3.3 < 3.8 :yes3.3.1 < 3.8 :yes3.3.2 < 3.8 :yes3.3.3 < 3.8 :yes3.4 < 3.8 :yes3.4.1 < 3.8 :yes3.4.2 < 3.8 :yes3.5 < 3.8 :yes3.5.1 < 3.8 :yes3.5.2 < 3.8 :yes3.6 < 3.8 :yes3.6.1 < 3.8 :yes3.7 < 3.8 :yes3.7.1 < 3.8 :yes3.7.2 < 3.8 :yes3.7.3 < 3.8 :yes----------------- 3.8 < 3.8 :no3.8.1 < 3.8 :no3.8.2 < 3.8 :no3.8.3 < 3.8 :no3.9 < 3.8 :no3.9.1 < 3.8 :no

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:
49.59 ms | 402 KiB | 8 Q