3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo $cars[0][0].": In stock: ".$cars[0][1].", sold: ".$cars[0][2].".<br>"; echo $cars[1][0].": In stock: ".$cars[1][1].", sold: ".$cars[1][2].".<br>"; echo $cars[2][0].": In stock: ".$cars[2][1].", sold: ".$cars[2][2].".<br>"; echo $cars[3][0].": In stock: ".$cars[3][1].", sold: ".$cars[3][2].".<br>";
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: cars in /in/4GCG7 on line 2 Notice: Undefined variable: cars in /in/4GCG7 on line 2 Notice: Undefined variable: cars in /in/4GCG7 on line 2 : In stock: , sold: .<br> Notice: Undefined variable: cars in /in/4GCG7 on line 3 Notice: Undefined variable: cars in /in/4GCG7 on line 3 Notice: Undefined variable: cars in /in/4GCG7 on line 3 : In stock: , sold: .<br> Notice: Undefined variable: cars in /in/4GCG7 on line 4 Notice: Undefined variable: cars in /in/4GCG7 on line 4 Notice: Undefined variable: cars in /in/4GCG7 on line 4 : In stock: , sold: .<br> Notice: Undefined variable: cars in /in/4GCG7 on line 5 Notice: Undefined variable: cars in /in/4GCG7 on line 5 Notice: Undefined variable: cars in /in/4GCG7 on line 5 : In stock: , sold: .<br>
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: cars in /in/4GCG7 on line 2 Notice: Undefined variable: cars in /in/4GCG7 on line 2 Notice: Undefined variable: cars in /in/4GCG7 on line 2 : In stock: , sold: .<br> Notice: Undefined variable: cars in /in/4GCG7 on line 3 Notice: Undefined variable: cars in /in/4GCG7 on line 3 Notice: Undefined variable: cars in /in/4GCG7 on line 3 : In stock: , sold: .<br> Notice: Undefined variable: cars in /in/4GCG7 on line 4 Notice: Undefined variable: cars in /in/4GCG7 on line 4 Notice: Undefined variable: cars in /in/4GCG7 on line 4 : In stock: , sold: .<br> Notice: Undefined variable: cars in /in/4GCG7 on line 5 Notice: Undefined variable: cars in /in/4GCG7 on line 5 Notice: Undefined variable: cars in /in/4GCG7 on line 5 : In stock: , sold: .<br>