3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = $b = 1; printf("$a is %d \n $b is $d", $a, $b); $b = 3; printf("$a is %d \n $b is $d", $a, $b);
based on cpMS5
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: d in /in/opNtR on line 4 1 is 1 1 is Notice: Undefined variable: d in /in/opNtR on line 6 1 is 1 3 is
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: d in /in/opNtR on line 4 1 is 1 1 is Notice: Undefined variable: d in /in/opNtR on line 6 1 is 1 3 is