3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '<p>[PHP VERSION: '.phpversion().']</p>'; $state = 'foo'; toggle($state); echo $state; // in php 7.0.5 : still foo! function toggle(&$state) { switch ($state) { case 'foo': $state = 'bar'; break; case 'bar': $state = 'foo'; break; } }
Output for git.master_jit, git.master
<p>[PHP VERSION: 8.5.0-dev]</p>bar
Output for rfc.property-hooks
<p>[PHP VERSION: 8.4.0-dev]</p>bar

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:
46.15 ms | 2058 KiB | 4 Q