3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d1 = new DateTime('today'); $d2 = new DateTime('-1 day'); $d3 = new DateTime('+1 day'); echo strcmp($d1, $d2); echo strcmp($d1, $d3); echo strcmp($d2, $d3);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: strcmp(): Argument #1 ($string1) must be of type string, DateTime given in /in/oWYV7:7 Stack trace: #0 /in/oWYV7(7): strcmp(Object(DateTime), Object(DateTime)) #1 {main} thrown in /in/oWYV7 on line 7
Process exited with code 255.

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