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 "400 years ago: ", $now2 = strtotime("now -400 years"), "\n"; echo "420 years ago: ", $then2 = strtotime("now -420 years"), "\n"; echo "Dif 1: ", ($now-$then) / 60 / 60, " hours\n"; echo "Dif 2: ", $dif2 = ($now2-$then2) / 60 / 60, " hours\n"; echo "Simple: ", $simple = 20*365*24, " hours\n"; echo "Dif1 to dif2 ", $dif2 - $simple, "hours\n"; echo "Dif1 to simple ", $dif2 - $simple, "hours\n";

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.0150.00318.40
8.3.50.0140.00622.05
8.3.40.0120.00919.10
8.3.30.0070.00718.84
8.3.20.0060.00320.38
8.3.10.0050.00320.63
8.3.00.0070.00021.89
8.2.180.0120.00318.54
8.2.170.0070.00722.96
8.2.160.0070.00722.29
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0050.00320.93
8.2.120.0080.00026.35
8.2.110.0030.00622.39
8.2.100.0000.01217.93
8.2.90.0040.00419.19
8.2.80.0040.00417.97
8.2.70.0100.00017.72
8.2.60.0040.00417.91
8.2.50.0040.00418.09
8.2.40.0020.00520.64
8.2.30.0000.00819.58
8.2.20.0070.00017.98
8.2.10.0050.00318.12
8.2.00.0070.00018.34
8.1.280.0070.00725.92
8.1.270.0090.00622.14
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0040.00423.97
8.1.230.0120.00017.76
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.60
8.1.190.0080.00017.47
8.1.180.0000.00718.10
8.1.170.0050.00318.78
8.1.160.0000.00820.84
8.1.150.0000.00718.89
8.1.140.0040.00419.60
8.1.130.0000.00817.71
8.1.120.0040.00317.68
8.1.110.0050.00217.65
8.1.100.0040.00417.66
8.1.90.0000.00717.61
8.1.80.0000.00817.54
8.1.70.0040.00417.64
8.1.60.0040.00417.59
8.1.50.0000.00817.54
8.1.40.0040.00417.54
8.1.30.0080.00017.84
8.1.20.0070.00017.65
8.1.10.0030.00617.61
8.1.00.0040.00417.61
8.0.300.0070.00018.77
8.0.290.0050.00216.88
8.0.280.0000.00818.48
8.0.270.0030.00317.40
8.0.260.0030.00317.44
8.0.250.0030.00317.01
8.0.240.0030.00317.18
8.0.230.0050.00317.13
8.0.220.0000.00817.01
8.0.210.0040.00417.10
8.0.200.0000.00617.04
8.0.190.0040.00417.14
8.0.180.0050.00317.01
8.0.170.0050.00317.04
8.0.160.0000.00816.97
8.0.150.0040.00416.99
8.0.140.0040.00417.08
8.0.130.0000.00613.44
8.0.120.0040.00416.98
8.0.110.0000.00716.99
8.0.100.0000.00716.97
8.0.90.0050.00217.19
8.0.80.0120.00917.11
8.0.70.0080.00017.04
8.0.60.0050.00317.17
8.0.50.0030.00516.95
8.0.30.0090.01117.30
8.0.20.0100.00917.42
8.0.10.0080.00017.14
8.0.00.0090.00916.83
7.4.330.0060.00016.75
7.4.320.0060.00016.69
7.4.300.0030.00316.68
7.4.290.0070.00016.61
7.4.280.0000.01016.71
7.4.270.0030.00516.61
7.4.260.0000.00816.69
7.4.250.0040.00416.64
7.4.240.0030.00316.70
7.4.230.0030.00316.73
7.4.220.0070.01116.82
7.4.210.0140.00716.75
7.4.200.0080.00016.75
7.4.160.0000.01616.63
7.4.150.0090.01317.40
7.4.140.0130.00917.86
7.4.130.0090.01016.75
7.4.120.0070.01016.62
7.4.110.0140.00416.55
7.4.100.0140.00516.63
7.4.90.0170.00016.71
7.4.80.0070.01019.39
7.4.70.0130.01016.70
7.4.60.0190.00016.59
7.4.50.0060.00916.60
7.4.40.0210.00016.58
7.4.30.0090.01316.68
7.4.00.0060.00614.84
7.3.330.0050.00013.36
7.3.320.0050.00013.20
7.3.310.0040.00416.44
7.3.300.0060.00016.45
7.3.290.0100.00616.45
7.3.280.0090.00916.50
7.3.270.0270.01917.40
7.3.260.0090.00916.60
7.3.250.0120.00916.56
7.3.240.0110.00616.49
7.3.230.0070.01016.71
7.3.210.0120.01216.38
7.3.200.0120.00416.54
7.3.190.0000.01716.72
7.3.180.0030.01316.56
7.3.170.0120.00616.57
7.3.160.0160.00316.45
7.3.10.0060.01016.92
7.3.00.0040.01116.44
7.2.330.0140.00416.78
7.2.320.0040.01416.77
7.2.310.0030.01316.88
7.2.300.0140.00316.69
7.2.290.0100.00716.88
7.2.130.0100.00617.09
7.2.120.0000.01517.12
7.2.110.0110.00616.83
7.2.100.0090.00317.06
7.2.90.0100.00716.91
7.2.80.0050.00517.12
7.2.70.0000.01316.81
7.2.60.0040.01017.07
7.2.50.0130.00316.94
7.2.40.0000.00916.83
7.2.30.0000.01517.05
7.2.20.0090.00617.01
7.2.10.0090.00616.75
7.2.00.0190.00318.19
7.1.250.0070.00716.08
7.1.200.0290.00815.24
7.1.100.0030.00918.30
7.1.70.0000.00717.39
7.1.60.0170.00719.40
7.1.50.0000.02117.15
7.1.00.0030.07722.27
7.0.200.0790.00014.68
7.0.60.0200.07721.66
7.0.50.0070.06017.82
7.0.40.0200.06720.27
7.0.30.0270.07720.33
7.0.20.0370.08020.21
7.0.10.0100.06720.01
7.0.00.0070.04020.30
5.6.280.0030.03321.13
5.6.210.0070.04720.69
5.6.200.0030.04018.16
5.6.190.0100.05020.41
5.6.180.0270.04020.27
5.6.170.0230.05720.49
5.6.160.0030.07320.41
5.6.150.0070.08018.11
5.6.140.0030.07718.07
5.6.130.0100.08318.15
5.6.120.0170.07320.99
5.6.110.0000.09021.13
5.6.100.0070.08021.11
5.6.90.0070.08721.02
5.6.80.0030.04720.39
5.5.350.0170.08720.42
5.5.340.0000.08317.97
5.5.330.0070.05020.43
5.5.320.0430.04320.28
5.5.310.0270.07720.33
5.5.300.0130.07717.92
5.5.290.0070.04018.00
5.5.280.0100.05720.76
5.5.270.0070.06720.95
5.5.260.0100.03720.73
5.5.250.0030.08020.68
5.5.240.0270.07320.16

preferences:
49.4 ms | 401 KiB | 5 Q