3v4l.org

run code in 300+ PHP versions simultaneously
<?php $eastern = new \DateTimeZone( 'America/New_York' ); $time = new \DateTime( 'now', $eastern ); $ad_active_time_start = new \DateTime( 'December 18, 2015 9:00am', $eastern ); $ad_active_time_end = new \DateTime( 'December 19, 2015 10:00am', $eastern ); var_dump( $time > $ad_active_time_start ); var_dump( $ad_active_time_end > $ad_active_time_start ); echo $ad_active_time_end - $ad_active_time_start;
Output for git.master, git.master_jit, rfc.property-hooks
bool(false) bool(true) Fatal error: Uncaught TypeError: Unsupported operand types: DateTime - DateTime in /in/Kb3T9:9 Stack trace: #0 {main} thrown in /in/Kb3T9 on line 9
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:
50.54 ms | 401 KiB | 8 Q