3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo\PHP7; class Foo {} namespace Foo\PHP5; class Foo {} namespace Foo; var_Dump(version_compare(PHP_VERSION, '7.0.0', '<')); if (version_compare(PHP_VERSION, '7.0.0', '<')) { echo PHP_VERSION; class_alias('\Foo\PHP5\Foo', '\Foo\Foo'); } else { echo PHP_VERSION; class_alias('\Foo\PHP7\Foo', '\Foo\Foo'); } $a = new \Foo\Foo(); var_Dump(get_class($a));
Output for git.master, git.master_jit, rfc.property-hooks
bool(false) 8.3.0-devstring(12) "Foo\PHP7\Foo"

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:
38.47 ms | 401 KiB | 8 Q