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 ); }

preferences:
51.24 ms | 407 KiB | 5 Q