3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTime(); $dt->modify("bs");
Output for 8.3.0 - 8.3.6
Fatal error: Uncaught DateMalformedStringException: DateTime::modify(): Failed to parse time string (bs) at position 0 (b): The timezone could not be found in the database in /in/9eHGQ:4 Stack trace: #0 /in/9eHGQ(4): DateTime->modify('bs') #1 {main} thrown in /in/9eHGQ on line 4
Process exited with code 255.
Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18
Warning: DateTime::modify(): Failed to parse time string (bs) at position 0 (b): The timezone could not be found in the database in /in/9eHGQ on line 4

preferences:
133.53 ms | 402 KiB | 121 Q