3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (new DateTime('2019-02'))->format('t');
based on XgiNO
Output for 7.2.0 - 7.2.32, 7.3.0 - 7.3.20, 7.4.0 - 7.4.8, 8.0.0alpha1 - alpha3
28