3v4l.org

run code in 300+ PHP versions simultaneously
<?php // This is fine. class Foo { public $prop; } class FooChild extends Foo { public mixed $prop; }
Output for 8.3.6
Fatal error: Type of FooChild::$prop must not be defined (as in class Foo) in /in/mScQS on line 8
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Fatal error: Type of FooChild::$prop must not be defined (as in class Foo) in /in/mScQS on line 8
Process exited with code 255.

preferences:
141.7 ms | 1399 KiB | 9 Q