3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace strict { class Foo {} } namespace { error_reporting(-1); use strict; }
Output for 5.3.0 - 5.3.29, 7.2.29 - 7.2.33, 7.3.16 - 7.3.33, 7.4.3 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: The use statement with non-compound name 'strict' has no effect in /in/ss80B on line 10
Output for 5.4.0 - 5.4.17
Fatal error: You seem to be trying to use a different language... in /in/ss80B on line 10
Process exited with code 255.

preferences:
168.07 ms | 401 KiB | 188 Q