3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} file_put_contents("/tmp/include-test-A.php", "<?php class A { }"); include("/tmp/include-test-A.php"); $a = new \A(); file_put_contents("/tmp/include-test-B.php", "<?php class B { }"); include("/tmp/include-test-B.php"); $b = new \B();

preferences:
43.82 ms | 402 KiB | 5 Q