3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set("Europe/Brussels"); $test = 1537430400; //20-09-2018 10:00 $test2 = 1537438500; //20-09-2018 12:15 echo strtotime("next monday", $test); // expected 24-09-2018 10:00 echo " -- "; echo strtotime("next monday", $test2); // expected 24-09-2018 12:15

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.70.0140.00716.63
8.3.60.0120.00318.27
8.3.50.0040.01118.31
8.3.40.0030.01318.56
8.3.30.0110.00418.76
8.3.20.0030.00618.95
8.3.10.0000.00721.76
8.3.00.0040.00421.78
8.2.190.0070.00716.75
8.2.180.0070.01525.92
8.2.170.0100.00719.07
8.2.160.0100.01022.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0080.00022.21
8.2.120.0040.00426.35
8.2.110.0030.00622.43
8.2.100.0110.00017.78
8.2.90.0000.00818.09
8.2.80.0030.00518.22
8.2.70.0040.00418.01
8.2.60.0000.00718.22
8.2.50.0040.00418.10
8.2.40.0000.00819.59
8.2.30.0000.00720.74
8.2.20.0090.00018.20
8.2.10.0030.00518.06
8.2.00.0050.00319.51
8.1.280.0120.00925.92
8.1.270.0070.00024.66
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00620.77
8.1.230.0100.00520.91
8.1.220.0030.00617.78
8.1.210.0000.00818.84
8.1.200.0000.00817.35
8.1.190.0030.00517.48
8.1.180.0050.00318.10
8.1.170.0000.00818.71
8.1.160.0040.00418.95
8.1.150.0000.00819.02
8.1.140.0050.00218.99
8.1.130.0090.00020.33
8.1.120.0080.00017.62
8.1.110.0040.00417.53
8.1.100.0040.00417.57
8.1.90.0050.00217.65
8.1.80.0040.00417.62
8.1.70.0000.00717.66
8.1.60.0040.00417.60
8.1.50.0040.00417.68
8.1.40.0000.00817.70
8.1.30.0000.00817.80
8.1.20.0040.00417.70
8.1.10.0060.00317.68
8.1.00.0000.01017.61
8.0.300.0060.00319.98
8.0.290.0040.00417.00
8.0.280.0030.00318.47
8.0.270.0000.00817.34
8.0.260.0030.00318.50
8.0.250.0040.00417.25
8.0.240.0030.00317.26
8.0.230.0030.00317.21
8.0.220.0040.00417.08
8.0.210.0050.00216.96
8.0.200.0060.00017.10
8.0.190.0000.00717.13
8.0.180.0050.00217.09
8.0.170.0040.00417.14
8.0.160.0080.00017.07
8.0.150.0020.00517.07
8.0.140.0070.00017.09
8.0.130.0040.00313.54
8.0.120.0050.00217.06
8.0.110.0000.00717.11
8.0.100.0050.00317.13
8.0.90.0040.00417.20
8.0.80.0070.01117.06
8.0.70.0040.00417.05
8.0.60.0080.00016.95
8.0.50.0040.00416.96
8.0.30.0070.01117.42
8.0.20.0100.01017.40
8.0.10.0000.00717.11
8.0.00.0100.01016.94
7.4.330.0020.00215.55
7.4.320.0070.00016.65
7.4.300.0000.00816.64
7.4.290.0030.00316.58
7.4.280.0000.00816.58
7.4.270.0030.00316.69
7.4.260.0000.00716.73
7.4.250.0070.00016.69
7.4.240.0090.00016.62
7.4.230.0040.00416.83
7.4.220.0080.00016.71
7.4.210.0090.00816.71
7.4.200.0040.00416.74
7.4.160.0100.00816.65
7.4.140.0110.00917.86
7.4.130.0170.00616.57
7.4.120.0120.00916.67
7.4.110.0090.00916.62
7.4.100.0000.02016.73
7.4.90.0000.01816.73
7.4.80.0090.00919.39
7.4.70.0150.00316.58
7.4.60.0080.00916.82
7.4.50.0090.00616.49
7.4.40.0080.00816.66
7.4.00.0060.01315.02
7.3.330.0030.00313.08
7.3.320.0030.00313.14
7.3.310.0090.00016.43
7.3.300.0060.00016.29
7.3.290.0070.00016.20
7.3.280.0030.01716.26
7.3.260.0090.01116.61
7.3.240.0080.00916.47
7.3.230.0130.00616.67
7.3.210.0170.00716.66
7.3.200.0100.00616.44
7.3.190.0120.00416.60
7.3.180.0100.00716.71
7.3.170.0090.00616.63
7.3.160.0040.01116.45
7.3.120.0110.00814.86
7.3.110.0070.00714.83
7.3.100.0060.00914.72
7.3.90.0120.00614.84
7.3.80.0040.00814.86
7.3.70.0070.00715.14
7.3.60.0100.00314.96
7.3.50.0120.00314.82
7.3.40.0030.00615.04
7.3.30.0070.01014.94
7.3.20.0030.01416.50
7.3.10.0060.00916.76
7.3.00.0060.00916.82
7.2.330.0100.00716.73
7.2.320.0060.01216.76
7.2.310.0030.01316.76
7.2.300.0120.00916.79
7.2.290.0120.00616.55
7.2.250.0030.01615.16
7.2.240.0100.00714.80
7.2.230.0090.00615.02
7.2.220.0000.01915.23
7.2.210.0130.00315.13
7.2.200.0080.00414.89
7.2.190.0070.01115.09
7.2.180.0120.00615.22
7.2.170.0000.01215.11
7.2.100.0480.00614.98
7.2.90.0790.00714.97
7.2.80.0000.01514.91
7.2.70.0160.00415.07
7.2.60.0090.00615.14
7.2.50.0450.00315.09
7.2.40.0450.01115.07
7.2.30.0420.01414.92
7.2.20.0500.00415.11
7.2.10.0410.00914.97
7.2.00.0970.01015.05
7.1.330.0110.00415.94
7.1.320.0120.00615.71
7.1.310.0040.01215.82
7.1.300.0040.01215.79
7.1.290.0030.01015.89
7.1.280.0040.00815.75
7.1.270.0070.00715.80
7.1.260.0100.00315.82
7.1.220.0600.00614.22
7.1.210.0640.00313.96
7.1.200.0510.00613.68
7.1.190.0530.00314.05
7.1.180.0060.00613.89
7.1.170.0040.00914.04
7.1.160.0360.00913.99
7.1.150.0740.00613.81
7.1.140.0580.00714.18
7.1.130.0460.00314.11
7.1.120.0390.00613.84
7.1.110.0350.00714.11
7.1.100.0390.01014.04
7.1.90.0470.01014.17
7.1.80.0430.00014.04
7.1.70.0410.00313.74
7.1.60.0630.00032.10
7.1.50.0600.00731.76
7.1.40.0730.00632.04
7.1.30.0860.00631.93
7.1.20.0890.00331.88
7.1.10.0520.00713.79
7.1.00.0550.01314.08
5.6.380.0000.01613.97

preferences:
39.38 ms | 401 KiB | 5 Q