3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { print_r(new Datetime('@-1 .5')); } catch (Exception $e) { echo $e->getMessage() . "\n"; } try { print_r(new Datetime('.5')); } catch (Exception $e) { echo $e->getMessage() . "\n"; } try { print_r(new Datetime('@-1.5')); } catch (Exception $e) { echo $e->getMessage() . "\n"; }
Output for rfc.property-hooks, git.master, git.master_jit
Failed to parse time string (@-1 .5) at position 5 (5): Unexpected character Failed to parse time string (.5) at position 1 (5): Unexpected character DateTime Object ( [date] => 1969-12-31 23:59:58.500000 [timezone_type] => 1 [timezone] => +00:00 )

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:
63.92 ms | 1383 KiB | 4 Q