3v4l.org

run code in 300+ PHP versions simultaneously
<?php $basket = [ 'apple', 'pear', 'banana', 1 ]; if (in_array('1', $basket, false)) { $basket[] = 'raspberry'; } var_dump($basket);
Output for git.master_jit, git.master, rfc.property-hooks
array(5) { [0]=> string(5) "apple" [1]=> string(4) "pear" [2]=> string(6) "banana" [3]=> int(1) [4]=> string(9) "raspberry" }

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:
32.51 ms | 405 KiB | 5 Q