3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; define('Foo\\true', 1); define('Foo\\TRUE', 2); var_dump( true, TRUE, \true, \TRUE, array_slice(get_defined_constants(), -4) );
Output for git.master, git.master_jit
bool(true) bool(true) bool(true) bool(true) array(4) { ["STDOUT"]=> resource(2) of type (stream) ["STDERR"]=> resource(3) of type (stream) ["Foo\true"]=> int(1) ["Foo\TRUE"]=> int(2) }
Output for rfc.property-hooks
bool(true) bool(true) bool(true) bool(true) array(4) { ["STDOUT"]=> resource(2) of type (stream) ["STDERR"]=> resource(3) of type (stream) ["foo\true"]=> int(1) ["foo\TRUE"]=> int(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:
39.74 ms | 401 KiB | 8 Q