3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'text', 5.4, new DateTime(), 7, ]; var_dump($array);
Output for git.master
array(4) { [0]=> string(4) "text" [1]=> float(5.4) [2]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2020-04-08 14:50:45.003711" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [3]=> int(7) }
Output for git.master_jit
array(4) { [0]=> string(4) "text" [1]=> float(5.4) [2]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2020-04-08 14:50:45.004266" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [3]=> int(7) }
Output for rfc.property-hooks
array(4) { [0]=> string(4) "text" [1]=> float(5.4) [2]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2020-04-08 14:50:45.003568" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [3]=> int(7) }

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:
52.76 ms | 401 KiB | 8 Q