3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tambah; $kurang; function tambah_dan_kurang($a=1,$b=2, $tambah, $kurang) { $tambah = $a + $b; $kurang = $b-1; } tambah_dan_kurang(1,2, $tambah, $kurang); echo $tambah; echo $kurang; ?>
based on TaPba
Output for 5.1.0 - 7.2.0
Notice: Undefined variable: tambah in /in/gCj75 on line 11 Notice: Undefined variable: kurang in /in/gCj75 on line 11 Notice: Undefined variable: tambah in /in/gCj75 on line 12 Notice: Undefined variable: kurang in /in/gCj75 on line 13
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: tambah in /in/gCj75 on line 2 Notice: Undefined variable: kurang in /in/gCj75 on line 3 Notice: Undefined variable: tambah in /in/gCj75 on line 11 Notice: Undefined variable: kurang in /in/gCj75 on line 11 Notice: Undefined variable: tambah in /in/gCj75 on line 12 Notice: Undefined variable: kurang in /in/gCj75 on line 13
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: tambah in /in/gCj75 on line 2 Notice: Undefined variable: kurang in /in/gCj75 on line 3 Notice: Undefined variable: tambah in /in/gCj75 on line 11 Notice: Undefined variable: kurang in /in/gCj75 on line 11 Notice: Undefined variable: tambah in /in/gCj75 on line 12 Notice: Undefined variable: kurang in /in/gCj75 on line 13