3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php const pi = 3.14; const radius = 2; define('SQUARE', pi*radius*radius); echo square;
based on VenUM
Output for 7.2.0
Warning: Use of undefined constant square - assumed 'square' (this will throw an Error in a future version of PHP) in /in/PlOAs on line 6 square
Output for 5.5.0 - 5.6.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.1.10
Notice: Use of undefined constant square - assumed 'square' in /in/PlOAs on line 6 square