3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo PHP_VERSIOn . ' : ' . version_compare(PHP_MAJOR_VERSION, '7.1');
based on IIhvj
Output for 7.2.5 - 7.3.0alpha1
Warning: Use of undefined constant PHP_VERSIOn - assumed 'PHP_VERSIOn' (this will throw an Error in a future version of PHP) in /in/SnMTA on line 3 PHP_VERSIOn : -1
Output for 5.6.0 - 5.6.30, hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.1.7
Notice: Use of undefined constant PHP_VERSIOn - assumed 'PHP_VERSIOn' in /in/SnMTA on line 3 PHP_VERSIOn : -1