3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $pizzaToppings = array('onion', 'tomato', 'cheese', 'anchovies', 'ham', 'pepperoni'); for($i=0;$i<=sizeof($pizzaToppings);$i++){ echo $pizzaToppings[$i]."<br />"; } ?>
based on KluIl
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
onion<br />tomato<br />cheese<br />anchovies<br />ham<br />pepperoni<br /> Notice: Undefined offset: 6 in /in/RiDkU on line 4 <br />
Output for hhvm-3.10.0 - 3.12.0
onion<br />tomato<br />cheese<br />anchovies<br />ham<br />pepperoni<br /> Notice: Undefined index: 6 in /in/RiDkU on line 4 <br />
Output for 4.3.0 - 5.2.17
onion<br />tomato<br />cheese<br />anchovies<br />ham<br />pepperoni<br /> Notice: Undefined offset: 6 in /in/RiDkU on line 4 <br />