3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create an array and push 5 elements on to it, then // print the number of elements in your array to the screen $types_of_fruit = array(); array_push($types_of_fruit, "Apples"); echo $types_of_fruit . "<br />"; array_push($types_of_fruit, "Bananas"); echo $types_of_fruit . "<br />"; array_push($types_of_fruit, "Oranges"); echo $types_of_fruit . "<br />"; array_push($types_of_fruit, "Lemons"); echo $types_of_fruit . "<br />"; array_push($types_of_fruit, "Limes"); echo $types_of_fruit . "<br />"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Array to string conversion in /in/V9WS0 on line 6 Array<br /> Warning: Array to string conversion in /in/V9WS0 on line 8 Array<br /> Warning: Array to string conversion in /in/V9WS0 on line 10 Array<br /> Warning: Array to string conversion in /in/V9WS0 on line 12 Array<br /> Warning: Array to string conversion in /in/V9WS0 on line 14 Array<br />

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
38.06 ms | 402 KiB | 8 Q