3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Now: ", $now = strtotime("now"), "\n"; echo "Then: ", $then = strtotime("now -2 years"), "\n"; echo "400 years ago: ", $now2 = strtotime("now -6 years"), "\n"; echo "420 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 "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.40.0090.00618.70
8.3.30.0090.00618.79
8.3.20.0070.00020.22
8.3.10.0040.00420.66
8.3.00.0080.00021.72
8.2.170.0070.00719.13
8.2.160.0070.01022.96
8.2.150.0060.00325.66
8.2.140.0000.00824.66
8.2.130.0040.00421.00
8.2.120.0040.00426.35
8.2.110.0030.00619.52
8.2.100.0120.00018.18
8.2.90.0040.00419.30
8.2.80.0080.00017.97
8.2.70.0030.00617.75
8.2.60.0050.00318.16
8.2.50.0040.00418.09
8.2.40.0030.00520.71
8.2.30.0040.00419.57
8.2.20.0000.00717.98
8.2.10.0040.00418.09
8.2.00.0000.00818.14
8.1.270.0070.00024.66
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0090.00022.50
8.1.230.0110.00017.96
8.1.220.0030.00617.90
8.1.210.0080.00318.77
8.1.200.0100.00017.48
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0060.00318.77
8.1.160.0000.00720.78
8.1.150.0000.00820.73
8.1.140.0080.00019.63
8.1.130.0070.00017.80
8.1.120.0030.00517.67
8.1.110.0000.00717.58
8.1.100.0070.00017.66
8.1.90.0020.00517.69
8.1.80.0080.00017.64
8.1.70.0070.00017.57
8.1.60.0040.00417.74
8.1.50.0000.00917.56
8.1.40.0000.00817.50
8.1.30.0040.00417.81
8.1.20.0040.00417.67
8.1.10.0000.00717.67
8.1.00.0020.00517.57
8.0.300.0040.00418.77
8.0.290.0030.00517.00
8.0.280.0000.00718.45
8.0.270.0000.00717.39
8.0.260.0030.00317.26
8.0.250.0030.00317.12
8.0.240.0000.00617.09
8.0.230.0040.00417.16
8.0.220.0060.00317.16
8.0.210.0000.00817.17
8.0.200.0030.00317.11
8.0.190.0000.00817.18
8.0.180.0000.00717.07
8.0.170.0040.00416.98
8.0.160.0040.00417.05
8.0.150.0000.00717.04
8.0.140.0030.00517.01
8.0.130.0000.00613.39
8.0.120.0030.00617.05
8.0.110.0070.00017.06
8.0.100.0040.00417.02
8.0.90.0070.00017.03
8.0.80.0100.00617.09
8.0.70.0040.00417.04
8.0.60.0040.00416.93
8.0.50.0040.00417.06
8.0.30.0110.00717.34
8.0.20.0090.01017.40
8.0.10.0000.00717.07
8.0.00.0090.01016.89
7.4.330.0000.00516.75
7.4.320.0060.00016.77
7.4.300.0050.00316.63
7.4.290.0000.00716.52
7.4.280.0000.01116.57
7.4.270.0000.00616.73
7.4.260.0060.00316.66
7.4.250.0050.00216.58
7.4.240.0070.00016.65
7.4.230.0030.00316.47
7.4.220.0030.01416.69
7.4.210.0140.00316.74
7.4.200.0000.00716.78
7.4.160.0080.00816.82
7.4.150.0060.01317.40
7.4.140.0110.00917.86
7.4.130.0080.01216.60
7.4.120.0060.01116.68
7.4.110.0170.00016.73
7.4.100.0110.00716.78
7.4.90.0070.01016.61
7.4.80.0040.01219.39
7.4.70.0080.00816.78
7.4.60.0070.01016.68
7.4.50.0110.00716.46
7.4.40.0070.01016.53
7.4.30.0110.00716.89
7.4.00.0070.00715.04
7.3.330.0060.00013.20
7.3.320.0000.00613.24
7.3.310.0000.00716.54
7.3.300.0040.00416.50
7.3.290.0060.00916.45
7.3.280.0080.01216.44
7.3.270.0070.01017.40
7.3.260.0130.00616.63
7.3.250.0130.00716.55
7.3.240.0170.00116.72
7.3.230.0030.01416.65
7.3.210.0140.00516.57
7.3.200.0140.00716.78
7.3.190.0050.01116.79
7.3.180.0090.01216.61
7.3.170.0090.00816.73
7.3.160.0060.00916.54
7.2.330.0050.01116.92
7.2.320.0130.00616.86
7.2.310.0070.01116.79
7.2.300.0040.01316.86
7.2.290.0030.01316.99
7.2.60.0030.00617.06
7.2.00.0350.00318.77
7.1.200.0220.00615.89
7.1.100.0040.00418.10
7.1.70.0030.00517.35
7.1.60.0110.00419.40
7.1.50.0040.00717.18
7.1.00.0070.07322.51
7.0.200.0370.00714.93
7.0.60.0170.07021.70
7.0.50.0030.05717.68
7.0.40.0100.06020.02
7.0.30.0230.07320.34
7.0.20.0330.06320.02
7.0.10.0070.08720.04
7.0.00.0070.08320.09
5.6.280.0070.06721.08
5.6.210.0070.08020.56
5.6.200.0000.05318.12
5.6.190.0170.08020.43
5.6.180.0230.03720.45
5.6.170.0400.07020.50
5.6.160.0070.05320.52
5.6.150.0070.08318.16
5.6.140.0100.05718.18
5.6.130.0000.07018.18
5.6.120.0030.04021.08
5.6.110.0100.06321.09
5.6.100.0130.07021.02
5.6.90.0100.08720.96
5.6.80.0130.06720.48
5.5.350.0230.05720.52
5.5.340.0000.04317.99
5.5.330.0070.06320.37
5.5.320.0500.04720.13
5.5.310.0270.07720.24
5.5.300.0130.07717.96
5.5.290.0030.04017.91
5.5.280.0100.07320.77
5.5.270.0100.08020.87
5.5.260.0170.07720.72
5.5.250.0000.04320.59
5.5.240.0270.04020.32

preferences:
54.03 ms | 400 KiB | 5 Q