3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new DateTimeZone('UTC'); $a->meow = 'test'; $b = &$a->meow; echo serialize([[$a], $b]);
Output for git.master, git.master_jit
Deprecated: Creation of dynamic property DateTimeZone::$meow is deprecated in /in/tS2L6 on line 4 a:2:{i:0;a:1:{i:0;O:12:"DateTimeZone":2:{s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}}i:1;s:4:"test";}
Output for rfc.property-hooks
Deprecated: Creation of dynamic property DateTimeZone::$meow is deprecated in /in/tS2L6 on line 4 a:2:{i:0;a:1:{i:0;O:12:"DateTimeZone":3:{s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";s:4:"meow";s:4:"test";}}i:1;s:4:"test";}

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