3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function sum($x,$y){ echo $a+$b; } sum(3,4); ?>
based on hiPg4
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: a in /in/hNp4Q on line 4 Notice: Undefined variable: b in /in/hNp4Q on line 4 0
Output for 5.3.19 - 5.6.28
Notice: Undefined variable: b in /in/hNp4Q on line 4 Notice: Undefined variable: a in /in/hNp4Q on line 4 0