3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function tambah_dan_kurang($a=1,$b=2, $tambah = 0, $kurang = 0) { $tambah = $a + $b; $kurang = $b-1; } tambah_dan_kurang(1,2, $tambah, $kurang); echo $tambah; echo $kurang; ?>
based on MQc1X
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: tambah in /in/qf489 on line 8 Notice: Undefined variable: kurang in /in/qf489 on line 8 Notice: Undefined variable: tambah in /in/qf489 on line 9 Notice: Undefined variable: kurang in /in/qf489 on line 10
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: tambah in /in/qf489 on line 8 Notice: Undefined variable: kurang in /in/qf489 on line 8 Notice: Undefined variable: tambah in /in/qf489 on line 9 Notice: Undefined variable: kurang in /in/qf489 on line 10