3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = date('l'); strtotime('monday this week'); if($test = "Sunday"){ } echo strtotime('Tuesday last week'); echo strtotime('Monday last week');
Output for 7.0.17 - 7.0.33, 7.1.3 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
14489244001448838000
Output for 7.3.32 - 7.3.33, 8.0.13
14489280001448841600
Output for 5.6.23 - 5.6.40, 7.0.8 - 7.0.16, 7.1.0 - 7.1.2
14488380001448838000
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.22, 7.0.0 - 7.0.7
14495292001449442800

preferences:
254.53 ms | 402 KiB | 326 Q