3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime(); $now->setTimezone(new DateTimeZone("UTC")); $new_time = strtotime($now->format('Y-m-d H:i:s -12 hours')); $query = "(SELECT * " . "FROM quote q " . "WHERE q.updated_at = 0 AND q.created_at between '" . date('Y-m-d H:i:s', $new_time) . "' AND '" . $now->format('Y-m-d H:i:s') . "') UNION (SELECT * FROM quote k WHERE k.updated_at != 0 AND k.updated_at BETWEEN '" . date('Y-m-d H:i:s', $new_time) . "' AND '" . $now->format('Y-m-d H:i:s') ."')"; echo $query;
Output for git.master, git.master_jit, rfc.property-hooks
(SELECT * FROM quote q WHERE q.updated_at = 0 AND q.created_at between '1970-01-01 01:00:00' AND '2017-05-31 15:34:30') UNION (SELECT * FROM quote k WHERE k.updated_at != 0 AND k.updated_at BETWEEN '1970-01-01 01:00:00' AND '2017-05-31 15:34:30')

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.84 ms | 401 KiB | 8 Q