3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i = $x = $z = 1; $i <= 10;$i++,$x+=2,$z=&$p){ $p = $i + $x; print "\$i = $i , \$x = $x , \$z = $z <br />"; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
$i = 1 , $x = 1 , $z = 1 <br />$i = 2 , $x = 3 , $z = 5 <br />$i = 3 , $x = 5 , $z = 8 <br />$i = 4 , $x = 7 , $z = 11 <br />$i = 5 , $x = 9 , $z = 14 <br />$i = 6 , $x = 11 , $z = 17 <br />$i = 7 , $x = 13 , $z = 20 <br />$i = 8 , $x = 15 , $z = 23 <br />$i = 9 , $x = 17 , $z = 26 <br />$i = 10 , $x = 19 , $z = 29 <br />