3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum Foo { case bar; } echo serialize( Foo::bar );
Output for 8.1.0 - 8.1.6
E:7:"Foo:bar";
Output for 8.0.1 - 8.0.19
Parse error: syntax error, unexpected identifier "Foo" in /in/J6h8o on line 3
Process exited with code 255.
Output for 7.4.0 - 7.4.29
Parse error: syntax error, unexpected 'Foo' (T_STRING) in /in/J6h8o on line 3
Process exited with code 255.

preferences:
179.35 ms | 1399 KiB | 61 Q