3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '2014-12-10T15:40:00'; function getOnlyTime($str = '') { $time = ''; if (empty($str)) { return $time; } return substr($str, 11); } echo getOnlyTime($str); ?>
Output for rfc.property-hooks, git.master, git.master_jit
15:40: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:
53.92 ms | 2606 KiB | 4 Q