3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a=15; $b=17; function test () { global $a, $b; $c=$a+$b; } test (); echo c; ?>
Output for 7.2.0
Warning: Use of undefined constant c - assumed 'c' (this will throw an Error in a future version of PHP) in /in/lKp0X on line 10 c
Output for 4.3.0 - 7.1.10
Notice: Use of undefined constant c - assumed 'c' in /in/lKp0X on line 10 c