3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('n'); if(date('n') > 6){ echo date('Y') .' / '. date('Y', strtotime('+1 year')); }else{ echo date('Y', strtotime('-1 year')).' / '.date('Y') ; }

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.0100.01018.38
8.3.60.0150.00318.20
8.3.50.0120.00916.74
8.3.40.0110.00718.84
8.3.30.0150.00018.65
8.3.20.0050.00321.73
8.3.10.0080.00023.69
8.3.00.0050.00323.39
8.2.190.0090.00616.58
8.2.180.0110.00416.58
8.2.170.0070.00722.96
8.2.160.0100.00320.45
8.2.150.0000.00724.18
8.2.140.0030.00624.66
8.2.130.0070.00019.12
8.2.120.0040.00426.35
8.2.110.0060.00320.60
8.2.100.0040.00718.03
8.2.90.0050.00317.75
8.2.80.0000.00818.95
8.2.70.0040.00417.75
8.2.60.0090.00017.63
8.2.50.0040.00417.88
8.2.40.0040.00420.73
8.2.30.0000.00719.44
8.2.20.0040.00418.11
8.2.10.0030.00617.90
8.2.00.0000.00818.05
8.1.280.0040.01125.92
8.1.270.0040.00423.79
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00322.01
8.1.230.0060.00622.23
8.1.220.0030.00518.86
8.1.210.0040.00418.77
8.1.200.0050.00517.47
8.1.190.0100.00017.35
8.1.180.0000.00818.10
8.1.170.0000.00818.68
8.1.160.0000.00718.96
8.1.150.0070.00020.27
8.1.140.0040.00417.88
8.1.130.0000.00720.81
8.1.120.0000.00817.68
8.1.110.0000.00917.70
8.1.100.0040.00417.56
8.1.90.0040.00417.70
8.1.80.0000.00717.65
8.1.70.0030.00317.66
8.1.60.0040.00417.78
8.1.50.0040.00417.68
8.1.40.0000.00817.66
8.1.30.0000.00817.77
8.1.20.0080.00017.80
8.1.10.0040.00417.52
8.1.00.0030.00617.57
8.0.300.0000.00818.77
8.0.290.0000.00816.88
8.0.280.0000.00718.52
8.0.270.0000.00817.32
8.0.260.0000.00716.90
8.0.250.0060.00017.09
8.0.240.0000.00817.17
8.0.230.0040.00417.03
8.0.220.0070.00016.98
8.0.210.0030.00317.08
8.0.200.0000.00717.15
8.0.190.0000.00817.03
8.0.180.0000.00717.12
8.0.170.0040.00416.99
8.0.160.0040.00417.18
8.0.150.0000.00717.02
8.0.140.0000.00717.05
8.0.130.0000.00613.46
8.0.120.0040.00417.08
8.0.110.0030.00517.11
8.0.100.0040.00417.04
8.0.90.0000.00717.04
8.0.80.0140.00917.05
8.0.70.0050.00217.20
8.0.60.0040.00417.15
8.0.50.0040.00417.14
8.0.30.0080.01217.27
8.0.20.0040.01417.40
8.0.10.0040.00417.14
8.0.00.0110.00616.93
7.4.330.0000.00615.55
7.4.320.0060.00016.55
7.4.300.0060.00016.77
7.4.290.0030.00316.75
7.4.280.0080.00016.63
7.4.270.0060.00316.48
7.4.260.0000.00716.72
7.4.250.0000.00816.61
7.4.240.0000.00716.66
7.4.230.0040.00416.78
7.4.220.0090.00016.56
7.4.210.0120.00916.82
7.4.200.0070.00016.58
7.4.160.0070.00916.68
7.4.140.0110.00717.86
7.4.130.0070.01016.70
7.4.120.0140.00416.72
7.4.110.0070.01016.61
7.4.100.0090.00916.77
7.4.90.0130.00316.55
7.4.80.0090.01519.39
7.4.70.0100.00616.59
7.4.60.0080.00916.75
7.4.50.0090.00316.65
7.4.40.0120.00616.34
7.4.00.0000.01615.28
7.3.330.0050.00013.13
7.3.320.0030.00313.13
7.3.310.0000.00716.28
7.3.300.0030.00316.41
7.3.290.0080.01016.40
7.3.280.0050.01016.39
7.3.260.0130.00616.56
7.3.250.0110.00816.60
7.3.240.0080.01016.60
7.3.230.0100.00716.43
7.3.210.0110.00616.45
7.3.200.0030.01316.71
7.3.190.0080.00816.41
7.3.180.0120.00416.41
7.3.170.0070.01116.47
7.3.160.0120.00316.48
7.2.330.0100.00716.96
7.2.320.0090.01016.94
7.2.310.0130.01016.93
7.2.300.0090.00917.03
7.2.290.0060.01316.89
7.2.60.0040.00817.07
7.2.30.0150.00718.21
7.2.20.0140.01218.18
7.2.10.0150.00918.23
7.2.00.0120.01118.34
7.1.200.0000.01115.95
7.1.150.0150.01516.76
7.1.140.0130.00916.99
7.1.130.0100.01116.96
7.1.120.0130.00716.96
7.1.110.0100.01016.36
7.1.100.0130.01216.37
7.1.90.0190.01316.04
7.1.80.0090.01016.25
7.1.70.0060.01115.56
7.1.60.0390.01033.20
7.1.50.0280.01332.99
7.1.40.0290.01832.54
7.1.30.0310.01232.69
7.1.20.0310.01033.09
7.1.10.0160.01214.90
7.1.00.0090.01015.09

preferences:
63.22 ms | 401 KiB | 5 Q