3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array[] = "Hello"; $array[] = "World"; $array[] = "Foo"; $array[] = "Bar"; $array[] = "Baz"; var_dump($array); asort($array); var_dump($array); var_dump(array_values($array)); ?>
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> string(5) "Hello" [1]=> string(5) "World" [2]=> string(3) "Foo" [3]=> string(3) "Bar" [4]=> string(3) "Baz" } array(5) { [3]=> string(3) "Bar" [4]=> string(3) "Baz" [2]=> string(3) "Foo" [0]=> string(5) "Hello" [1]=> string(5) "World" } array(5) { [0]=> string(3) "Bar" [1]=> string(3) "Baz" [2]=> string(3) "Foo" [3]=> string(5) "Hello" [4]=> string(5) "World" }

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:
51.03 ms | 402 KiB | 8 Q