3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = date('l'); if($test = "Sunday"){ $end = strtotime('Sunday last week'); }else{ $end = strtotime('Sunday this week'); } echo strtotime('Monday this week');

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.60.0090.00616.62
8.3.50.0110.01121.14
8.3.40.0080.00618.92
8.3.30.0100.00318.84
8.3.20.0070.00020.16
8.3.10.0070.00023.54
8.3.00.0000.00923.54
8.2.180.0120.00618.53
8.2.170.0040.01122.96
8.2.160.0140.00020.34
8.2.150.0080.00024.18
8.2.140.0070.00324.66
8.2.130.0080.00021.11
8.2.120.0090.00026.35
8.2.110.0050.00520.59
8.2.100.0120.00017.91
8.2.90.0040.00419.40
8.2.80.0040.00417.97
8.2.70.0050.00317.75
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0040.00422.28
8.2.30.0000.00720.69
8.2.20.0060.00317.80
8.2.10.0070.00318.21
8.2.00.0040.00418.16
8.1.280.0110.00725.92
8.1.270.0040.00424.04
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0060.00324.04
8.1.230.0080.00317.64
8.1.220.0040.00417.89
8.1.210.0030.00518.77
8.1.200.0090.00317.48
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0030.00618.59
8.1.160.0040.00420.82
8.1.150.0030.00618.95
8.1.140.0030.00619.55
8.1.130.0070.00017.66
8.1.120.0000.00917.54
8.1.110.0000.00817.62
8.1.100.0030.00517.70
8.1.90.0000.00717.54
8.1.80.0060.00317.62
8.1.70.0000.00817.63
8.1.60.0070.00317.65
8.1.50.0040.00417.69
8.1.40.0040.00417.67
8.1.30.0040.00417.61
8.1.20.0060.00317.64
8.1.10.0060.00317.71
8.1.00.0060.00317.69
8.0.300.0040.00418.77
8.0.290.0070.00017.00
8.0.280.0030.00518.48
8.0.270.0000.00717.41
8.0.260.0030.00317.33
8.0.250.0000.00717.16
8.0.240.0040.00417.24
8.0.230.0000.00717.14
8.0.220.0000.00717.08
8.0.210.0030.00316.99
8.0.200.0030.00317.14
8.0.190.0000.00717.06
8.0.180.0040.00417.00
8.0.170.0000.00717.16
8.0.160.0000.00717.05
8.0.150.0030.00516.92
8.0.140.0040.00417.09
8.0.130.0000.00913.43
8.0.120.0000.00716.93
8.0.110.0040.00417.14
8.0.100.0030.00516.98
8.0.90.0000.00717.00
8.0.80.0080.00817.04
8.0.70.0050.00317.04
8.0.60.0040.00417.05
8.0.50.0050.00317.05
8.0.30.0160.00217.26
8.0.20.0120.00717.42
8.0.10.0040.00417.18
8.0.00.0140.00817.03
7.4.330.0020.00216.72
7.4.320.0030.00316.71
7.4.300.0000.00616.53
7.4.290.0040.00416.74
7.4.280.0040.00416.74
7.4.270.0030.00316.73
7.4.260.0050.00516.71
7.4.250.0040.00416.69
7.4.240.0030.00516.67
7.4.230.0000.00716.56
7.4.220.0190.00016.68
7.4.210.0110.00416.76
7.4.200.0040.00416.71
7.4.160.0040.01116.64
7.4.150.0120.00617.40
7.4.140.0080.01117.86
7.4.130.0030.01716.78
7.4.120.0080.01216.63
7.4.110.0100.00716.80
7.4.100.0070.01116.52
7.4.90.0090.01316.61
7.4.80.0090.01519.39
7.4.70.0090.01216.62
7.4.60.0130.00316.57
7.4.50.0100.00516.76
7.4.40.0150.00016.42
7.4.30.0030.01816.60
7.4.00.0130.00314.80
7.3.330.0030.00313.08
7.3.320.0030.00313.14
7.3.310.0000.00716.27
7.3.300.0040.00416.26
7.3.290.0100.00616.33
7.3.280.0140.00516.35
7.3.270.0100.00717.40
7.3.260.0220.00016.23
7.3.250.0080.01216.42
7.3.240.0060.01016.51
7.3.230.0070.01016.46
7.3.210.0060.01216.32
7.3.200.0120.00916.44
7.3.190.0080.00816.34
7.3.180.0100.00616.72
7.3.170.0070.01016.55
7.3.160.0120.00416.72
7.2.330.0130.02516.71
7.2.320.0070.01016.56
7.2.310.0130.00316.82
7.2.300.0140.01016.57
7.2.290.0100.01116.52
7.2.60.0200.00516.56
7.2.00.0070.00419.66
7.1.200.0070.00315.95
7.1.100.0050.00518.29
7.1.70.0000.01017.33
7.1.60.0120.01219.06
7.1.50.0100.01317.09
7.1.00.0000.07722.57
7.0.200.0500.00714.68
7.0.80.0430.07019.84
7.0.70.0600.07320.12
7.0.60.0600.08020.05
7.0.50.0500.08320.29
7.0.40.0130.08020.09
7.0.30.0130.07320.18
7.0.20.0000.04020.11
7.0.10.0000.04020.10
7.0.00.0130.08020.04
5.6.280.0130.06321.09
5.6.230.0130.04020.74
5.6.220.0030.03720.55
5.6.210.0030.08020.47
5.6.200.0100.04721.06
5.6.190.0100.08021.05
5.6.180.0170.03321.08
5.6.170.0030.03721.17
5.6.160.0070.08021.02
5.6.150.0130.07321.17
5.6.140.0200.07021.00
5.6.130.0200.07321.07
5.6.120.0070.05321.02
5.6.110.0030.09320.89
5.6.100.0070.08020.95
5.6.90.0130.06320.91
5.6.80.0100.06720.41
5.6.70.0030.04720.34
5.6.60.0030.08020.45
5.6.50.0100.07720.42
5.6.40.0130.07720.38
5.6.30.0130.05320.43
5.6.20.0130.06320.43
5.6.10.0100.04720.46
5.6.00.0130.07720.42
5.5.370.0100.08020.39
5.5.360.0100.07320.46
5.5.350.0070.07720.45
5.5.340.0030.07720.77
5.5.330.0030.05320.82
5.5.320.0070.06720.73
5.5.310.0170.06320.93
5.5.300.0070.08320.81
5.5.290.0130.07720.88
5.5.280.0130.08020.91
5.5.270.0070.08320.78
5.5.260.0030.09020.84
5.5.250.0100.04720.73
5.5.240.0070.05020.27
5.5.230.0070.07720.24
5.5.220.0170.06320.14
5.5.210.0070.08020.26
5.5.200.0030.06720.21
5.5.190.0030.08720.21
5.5.180.0100.04320.22
5.5.160.0070.07020.21
5.5.150.0100.07320.20
5.5.140.0070.08020.10
5.5.130.0070.08020.10
5.5.120.0100.07020.27
5.5.110.0130.06320.20
5.5.100.0100.08020.01
5.5.90.0100.07720.01
5.5.80.0030.07320.06
5.5.70.0170.07020.07
5.5.60.0100.07320.04
5.5.50.0070.05020.10
5.5.40.0130.07020.15
5.5.30.0030.05720.09
5.5.20.0030.05020.03
5.5.10.0130.07320.05
5.5.00.0070.07320.06

preferences:
44.5 ms | 401 KiB | 5 Q