3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function besnik ($a, $b) { $e = $a + $b; echo $e; } $val = 4; $vale2 = 6; besnik (val, val2);
based on 9lqt5
Output for 7.2.0
Warning: Use of undefined constant val - assumed 'val' (this will throw an Error in a future version of PHP) in /in/IZQL8 on line 9 Warning: Use of undefined constant val2 - assumed 'val2' (this will throw an Error in a future version of PHP) in /in/IZQL8 on line 9 Warning: A non-numeric value encountered in /in/IZQL8 on line 4 Warning: A non-numeric value encountered in /in/IZQL8 on line 4 0
Output for 7.1.0 - 7.1.10
Notice: Use of undefined constant val - assumed 'val' in /in/IZQL8 on line 9 Notice: Use of undefined constant val2 - assumed 'val2' in /in/IZQL8 on line 9 Warning: A non-numeric value encountered in /in/IZQL8 on line 4 Warning: A non-numeric value encountered in /in/IZQL8 on line 4 0
Output for 5.3.22 - 7.0.20
Notice: Use of undefined constant val - assumed 'val' in /in/IZQL8 on line 9 Notice: Use of undefined constant val2 - assumed 'val2' in /in/IZQL8 on line 9 0