3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum Foo { case BAR; public function print($a) { echo $a; } } Foo::BAR->print("b");
Output for 8.0.0 - 8.0.13
Parse error: syntax error, unexpected identifier "Foo" in /in/8bZNL on line 3
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.26
Parse error: syntax error, unexpected 'Foo' (T_STRING) in /in/8bZNL on line 3
Process exited with code 255.

preferences:
188.19 ms | 1395 KiB | 80 Q