3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { function myFunction() {} const MY_CONSTANT = 0; } namespace B { var_dump( strpos::class, PHP_EOL::class, \A\myFunction::class, \A\MY_CONSTANT::class ); }
Output for git.master, git.master_jit
string(8) "B\strpos" string(9) "B\PHP_EOL" string(12) "A\myFunction" string(13) "A\MY_CONSTANT"

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:
52.46 ms | 408 KiB | 5 Q