3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Now: ", $now = strtotime("now"), "\n"; echo "Then: ", $then = strtotime("now -20 years"), "\n"; echo $now2 = strtotime("now +1 year"), "\n"; echo $then2 = strtotime("now -19 years"), "\n"; echo "Dif 1: ", $now-$then, "\n"; echo "Dif 2: ", $now2-$then2, "\n"; echo "Simple: ", 20*365*24*60*60;

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.0110.01118.55
8.3.50.0070.00717.93
8.3.40.0190.00319.10
8.3.30.0040.01119.02
8.3.20.0050.00220.20
8.3.10.0000.00820.62
8.3.00.0070.00023.54
8.2.180.0090.00916.75
8.2.170.0120.00322.96
8.2.160.0130.00022.11
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00420.78
8.2.120.0000.00826.35
8.2.110.0050.00522.16
8.2.100.0120.00017.93
8.2.90.0040.00419.34
8.2.80.0060.00317.97
8.2.70.0060.00317.75
8.2.60.0000.00718.16
8.2.50.0030.00618.09
8.2.40.0000.00820.53
8.2.30.0000.00819.46
8.2.20.0060.00317.88
8.2.10.0040.00418.05
8.2.00.0000.00718.01
8.1.280.0090.00625.92
8.1.270.0110.00723.80
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0120.00023.92
8.1.230.0040.00817.89
8.1.220.0080.00017.79
8.1.210.0000.00818.77
8.1.200.0040.00417.48
8.1.190.0050.00319.26
8.1.180.0040.00418.10
8.1.170.0050.00318.84
8.1.160.0050.00320.83
8.1.150.0030.00620.64
8.1.140.0040.00419.56
8.1.130.0040.00417.71
8.1.120.0070.00017.63
8.1.110.0000.00717.65
8.1.100.0000.00717.60
8.1.90.0040.00417.63
8.1.80.0040.00417.67
8.1.70.0000.00717.70
8.1.60.0000.00717.72
8.1.50.0050.00317.63
8.1.40.0030.00517.65
8.1.30.0060.00317.82
8.1.20.0060.00317.70
8.1.10.0000.00917.69
8.1.00.0000.00917.77
8.0.300.0000.00718.77
8.0.290.0020.00516.88
8.0.280.0070.00018.49
8.0.270.0000.00717.39
8.0.260.0030.00517.30
8.0.250.0070.00017.10
8.0.240.0000.00717.16
8.0.230.0000.00817.12
8.0.220.0000.00717.02
8.0.210.0000.00816.97
8.0.200.0000.00717.03
8.0.190.0040.00417.07
8.0.180.0030.00517.03
8.0.170.0070.00017.09
8.0.160.0070.00017.14
8.0.150.0040.00417.04
8.0.140.0040.00417.06
8.0.130.0070.00013.44
8.0.120.0050.00317.07
8.0.110.0000.00716.94
8.0.100.0070.00017.07
8.0.90.0070.00017.13
8.0.80.0060.01017.08
8.0.70.0040.00416.96
8.0.60.0040.00417.15
8.0.50.0070.00016.99
8.0.30.0150.00717.06
8.0.20.0100.00917.46
8.0.10.0070.00017.17
8.0.00.0100.00717.02
7.4.330.0020.00216.72
7.4.320.0060.00016.54
7.4.300.0000.00616.73
7.4.290.0030.00316.63
7.4.280.0040.00416.57
7.4.270.0070.00016.73
7.4.260.0030.00316.76
7.4.250.0000.00716.59
7.4.240.0050.00316.66
7.4.230.0070.00016.84
7.4.220.0110.00716.66
7.4.210.0150.00016.67
7.4.200.0040.00416.81
7.4.160.0080.00816.77
7.4.150.0110.00717.40
7.4.140.0060.01417.86
7.4.130.0100.00916.66
7.4.120.0100.01416.66
7.4.110.0100.00716.41
7.4.100.0100.01016.68
7.4.90.0040.01216.66
7.4.80.0070.01019.39
7.4.70.0050.01416.86
7.4.60.0100.01316.64
7.4.50.0030.00916.68
7.4.40.0180.00316.51
7.4.30.0140.00416.49
7.4.00.0060.00915.02
7.3.330.0000.00513.30
7.3.320.0050.00013.24
7.3.310.0000.00716.47
7.3.300.0030.00316.28
7.3.290.0050.01116.39
7.3.280.0100.00616.38
7.3.270.0120.01217.40
7.3.260.0250.02116.68
7.3.250.0070.01116.52
7.3.240.0090.00916.49
7.3.230.0170.00016.52
7.3.210.0100.00616.76
7.3.200.0150.00716.47
7.3.190.0090.01216.43
7.3.180.0130.00316.66
7.3.170.0100.00716.56
7.3.160.0120.00316.77
7.2.330.0110.00616.85
7.2.320.0120.00616.84
7.2.310.0030.01316.67
7.2.300.0110.01116.64
7.2.290.0090.01216.98
7.2.60.0100.00717.21
7.2.00.0230.01019.30
7.1.200.0000.01215.86
7.1.100.0270.01618.00
7.1.70.0050.00317.51
7.1.60.0100.01419.40
7.1.50.0130.01017.03
7.1.00.0030.07722.33
7.0.200.0150.00415.10
7.0.60.0130.09321.74
7.0.50.0000.06017.89
7.0.40.0100.07719.97
7.0.30.0400.07020.22
7.0.20.0370.07720.16
7.0.10.0100.04720.12
7.0.00.0070.03720.17
5.6.280.0030.03321.04
5.6.210.0170.07720.75
5.6.200.0030.04318.22
5.6.190.0070.04320.39
5.6.180.0330.07720.56
5.6.170.0170.04320.41
5.6.160.0030.05020.51
5.6.150.0030.05318.12
5.6.140.0030.06018.11
5.6.130.0000.04718.16
5.6.120.0070.04721.14
5.6.110.0170.07720.89
5.6.100.0100.05321.12
5.6.90.0070.04721.02
5.6.80.0000.08720.37
5.5.350.0230.07020.30
5.5.340.0070.07717.99
5.5.330.0170.06720.40
5.5.320.0200.04020.20
5.5.310.0330.05020.26
5.5.300.0000.04717.92
5.5.290.0100.04717.98
5.5.280.0100.08020.84
5.5.270.0030.06020.79
5.5.260.0200.07320.86
5.5.250.0100.07720.53
5.5.240.0370.06320.23

preferences:
51.23 ms | 401 KiB | 5 Q