3v4l.org

run code in 200+ PHP versions simultaneously
<?php $i = new DateInterval('PT23H'); echo $i->format('%h');
Output for 5.5.0 - 7.4.0
23