3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $excel_tableau = array(); $test = array("0","1","2","3","4"); $testt = array("a","b","c","d"); for($i=0;$i<=5;$i++){ $ligne = array($testt[$i],"test","test2"); array_push($excel_tableau,$ligne); } ?>
based on 6QO27
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
Notice: Undefined offset: 4 in /in/F9ba6 on line 6 Notice: Undefined offset: 5 in /in/F9ba6 on line 6
Output for hhvm-3.15.4
Notice: Undefined index: 4 in /in/F9ba6 on line 6 Notice: Undefined index: 5 in /in/F9ba6 on line 6