3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { assert(PHP_MAJOR_VERSION >= 7, new AssertionError('PHP 7 is requiered!')); } catch (Exception $e) { } echo 'Hi!';

preferences:
36.38 ms | 402 KiB | 5 Q