<?php
try { assert(PHP_MAJOR_VERSION >= 7, new Exception('PHP 7 is requiered!')); }
catch (Exception $e) { quit; }
echo 'Hi!';
- Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 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
- Hi!
- Output for 5.4.8 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
- Warning: assert(): exception 'Exception' with message 'PHP 7 is requiered!' in /in/8SFcT:2
Stack trace:
#0 {main} failed in /in/8SFcT on line 2
Hi!
- Output for 5.4.0 - 5.4.7
- Warning: assert() expects exactly 1 parameter, 2 given in /in/8SFcT on line 2
Hi!
preferences:
253.5 ms | 401 KiB | 372 Q