3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Now: ", $now = strtotime("now"), "\n"; echo "2 years ago: ", $then = strtotime("now -2 years"), "\n"; echo "6 years ago: ", $now2 = strtotime("now -6 years"), "\n"; echo "8 years ago: ", $then2 = strtotime("now -8 years"), "\n"; echo "Dif 1: ", $dif1 = ($now-$then) / 60 / 60, " hours\n"; echo "Dif 2: ", $dif2 = ($now2-$then2) / 60 / 60, " hours\n"; echo "Two years simple: ", $simple = 2*365*24, " hours\n"; echo "Dif1 to dif2 ", $dif1 - $dif2, "hours\n"; echo "Dif1 to simple ", $dif1 - $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.0060.01618.30
8.3.50.0080.01021.97
8.3.40.0140.00018.85
8.3.30.0070.00718.88
8.3.20.0050.00320.30
8.3.10.0000.00820.82
8.3.00.0040.00421.69
8.2.180.0150.00316.75
8.2.170.0110.00422.96
8.2.160.0070.00722.25
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00320.84
8.2.120.0000.00826.35
8.2.110.0040.00419.39
8.2.100.0110.00018.05
8.2.90.0040.00419.21
8.2.80.0000.00817.97
8.2.70.0030.00617.61
8.2.60.0080.00318.05
8.2.50.0030.00518.09
8.2.40.0060.00320.64
8.2.30.0050.00219.55
8.2.20.0040.00417.93
8.2.10.0060.00318.11
8.2.00.0040.00418.21
8.1.280.0100.00725.92
8.1.270.0060.00322.14
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0090.00022.29
8.1.230.0060.00617.95
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0040.00817.60
8.1.190.0040.00417.48
8.1.180.0030.00618.10
8.1.170.0080.00418.51
8.1.160.0050.00220.73
8.1.150.0060.00320.69
8.1.140.0040.00419.59
8.1.130.0000.00717.59
8.1.120.0030.00617.54
8.1.110.0000.00717.71
8.1.100.0050.00317.60
8.1.90.0000.00717.65
8.1.80.0030.00417.65
8.1.70.0030.00317.65
8.1.60.0040.00417.65
8.1.50.0000.00817.67
8.1.40.0030.00617.61
8.1.30.0000.00817.80
8.1.20.0000.00817.54
8.1.10.0030.00617.68
8.1.00.0040.00417.73
8.0.300.0080.00018.77
8.0.290.0080.00016.88
8.0.280.0030.00318.49
8.0.270.0030.00317.34
8.0.260.0040.00417.11
8.0.250.0030.00317.10
8.0.240.0000.00717.10
8.0.230.0000.00817.27
8.0.220.0040.00417.00
8.0.210.0040.00417.15
8.0.200.0060.00017.10
8.0.190.0000.00817.11
8.0.180.0000.00817.10
8.0.170.0000.00817.09
8.0.160.0000.00717.15
8.0.150.0000.00717.05
8.0.140.0000.00717.02
8.0.130.0000.00513.51
8.0.120.0050.00316.97
8.0.110.0000.00717.13
8.0.100.0000.00717.10
8.0.90.0000.00716.93
8.0.80.0060.01017.12
8.0.70.0040.00417.02
8.0.60.0040.00417.08
8.0.50.0000.00717.06
8.0.30.0100.00917.22
8.0.20.0140.01217.40
8.0.10.0070.00017.16
8.0.00.0080.00916.82
7.4.330.0050.00016.83
7.4.320.0000.00616.64
7.4.300.0000.00716.64
7.4.290.0040.00416.58
7.4.280.0030.00716.73
7.4.270.0070.00016.78
7.4.260.0000.00716.75
7.4.250.0000.00716.60
7.4.240.0040.00416.73
7.4.230.0000.00616.69
7.4.220.0170.00716.52
7.4.210.0070.00816.77
7.4.200.0040.00416.52
7.4.160.0160.00316.51
7.4.150.0070.01417.40
7.4.140.0070.01517.86
7.4.130.0130.01116.66
7.4.120.0130.01016.66
7.4.110.0100.00616.90
7.4.100.0040.01716.66
7.4.90.0100.00716.59
7.4.80.0110.00519.39
7.4.70.0070.01016.66
7.4.60.0090.00916.52
7.4.50.0070.00716.50
7.4.40.0090.00816.61
7.4.30.0130.00316.79
7.4.00.0100.00715.00
7.3.330.0000.00613.18
7.3.320.0030.00313.33
7.3.310.0030.00516.50
7.3.300.0000.00716.35
7.3.290.0000.00616.49
7.3.280.0090.00616.51
7.3.270.0090.00917.40
7.3.260.0110.00716.54
7.3.250.0140.00816.58
7.3.240.0110.00716.49
7.3.230.0110.00616.86
7.3.210.0100.01216.62
7.3.200.0060.01116.70
7.3.190.0160.00616.68
7.3.180.0070.01016.57
7.3.170.0130.00716.59
7.3.160.0040.01116.70
7.3.10.0090.00916.69
7.3.00.0040.01816.53
7.2.330.0120.00616.84
7.2.320.0050.01416.65
7.2.310.0060.01016.78
7.2.300.0070.01416.82
7.2.290.0140.00316.75
7.2.130.0080.01217.02
7.2.120.0120.00416.98
7.2.110.0000.01317.21
7.2.100.0070.00716.94
7.2.90.0030.01017.28
7.2.80.0060.00917.21
7.2.70.0060.00917.10
7.2.60.0070.01016.74
7.2.50.0070.00716.82
7.2.40.0070.00717.00
7.2.30.0110.00416.79
7.2.20.0070.00716.69
7.2.10.0030.01516.92
7.2.00.0100.00618.32
7.1.250.0050.01015.79
7.1.200.0110.00315.70
7.1.70.0040.00417.38
7.1.60.0030.01017.07
7.1.50.0090.00935.13
7.1.00.0030.07322.54
7.0.200.0040.01217.09
7.0.60.0230.08021.69
7.0.50.0030.05317.68
7.0.40.0030.05020.02
7.0.30.0200.07020.21
7.0.20.0300.08020.19
7.0.10.0130.08020.09
7.0.00.0130.08320.13
5.6.280.0100.05021.08
5.6.210.0130.07720.48
5.6.200.0030.04318.12
5.6.190.0130.07720.48
5.6.180.0170.04320.43
5.6.170.0400.06320.38
5.6.160.0030.05320.32
5.6.150.0030.04318.11
5.6.140.0130.07718.22
5.6.130.0030.04318.11
5.6.120.0000.06021.03
5.6.110.0170.07721.00
5.6.100.0130.08321.13
5.6.90.0030.09020.96
5.6.80.0030.08320.42
5.5.350.0230.07720.41
5.5.340.0030.04018.02
5.5.330.0030.04320.15
5.5.320.0470.04720.32
5.5.310.0300.07320.27
5.5.300.0070.08017.92
5.5.290.0070.03718.02
5.5.280.0000.05020.89
5.5.270.0100.08320.76
5.5.260.0070.08720.94
5.5.250.0100.05320.55
5.5.240.0230.05720.23

preferences:
45.86 ms | 401 KiB | 5 Q