3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum Test{ case ONE; } $var = Test::ONE; var_dump(gc_status()); unset($var); var_dump(gc_status());
Output for git.master
array(12) { ["running"]=> bool(false) ["protected"]=> bool(false) ["full"]=> bool(false) ["runs"]=> int(0) ["collected"]=> int(0) ["threshold"]=> int(10001) ["buffer_size"]=> int(16384) ["roots"]=> int(0) ["application_time"]=> float(0.000472847) ["collector_time"]=> float(0) ["destructor_time"]=> float(0) ["free_time"]=> float(0) } array(12) { ["running"]=> bool(false) ["protected"]=> bool(false) ["full"]=> bool(false) ["runs"]=> int(0) ["collected"]=> int(0) ["threshold"]=> int(10001) ["buffer_size"]=> int(16384) ["roots"]=> int(1) ["application_time"]=> float(0.000604945) ["collector_time"]=> float(0) ["destructor_time"]=> float(0) ["free_time"]=> float(0) }
Output for git.master_jit
array(12) { ["running"]=> bool(false) ["protected"]=> bool(false) ["full"]=> bool(false) ["runs"]=> int(0) ["collected"]=> int(0) ["threshold"]=> int(10001) ["buffer_size"]=> int(16384) ["roots"]=> int(0) ["application_time"]=> float(0.000445497) ["collector_time"]=> float(0) ["destructor_time"]=> float(0) ["free_time"]=> float(0) } array(12) { ["running"]=> bool(false) ["protected"]=> bool(false) ["full"]=> bool(false) ["runs"]=> int(0) ["collected"]=> int(0) ["threshold"]=> int(10001) ["buffer_size"]=> int(16384) ["roots"]=> int(1) ["application_time"]=> float(0.000605896) ["collector_time"]=> float(0) ["destructor_time"]=> float(0) ["free_time"]=> float(0) }

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:
26.65 ms | 409 KiB | 5 Q