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: ", $dif1 = ($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 ", $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.0090.00918.68
8.3.50.0070.01318.18
8.3.40.0060.00918.82
8.3.30.0040.01118.82
8.3.20.0050.00220.39
8.3.10.0050.00320.67
8.3.00.0040.00421.61
8.2.180.0060.01225.92
8.2.170.0070.01419.08
8.2.160.0090.00422.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00420.79
8.2.120.0000.00726.35
8.2.110.0070.00322.38
8.2.100.0040.00718.18
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0040.00417.75
8.2.60.0040.00418.03
8.2.50.0040.00419.48
8.2.40.0080.00020.28
8.2.30.0070.00019.56
8.2.20.0080.00018.04
8.2.10.0080.00018.24
8.2.00.0000.00718.19
8.1.280.0120.00325.92
8.1.270.0040.00424.66
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0070.00323.97
8.1.230.0040.00717.89
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0040.00417.48
8.1.190.0080.00017.48
8.1.180.0000.00818.10
8.1.170.0040.00418.71
8.1.160.0040.00420.81
8.1.150.0040.00418.85
8.1.140.0000.00819.54
8.1.130.0000.00717.70
8.1.120.0000.00717.60
8.1.110.0030.00517.64
8.1.100.0000.00817.68
8.1.90.0080.00017.54
8.1.80.0040.00417.71
8.1.70.0000.00717.67
8.1.60.0040.00417.68
8.1.50.0000.00817.67
8.1.40.0000.00817.53
8.1.30.0000.00817.84
8.1.20.0000.00717.61
8.1.10.0030.00617.68
8.1.00.0080.00017.60
8.0.300.0040.00418.77
8.0.290.0070.00017.00
8.0.280.0030.00318.57
8.0.270.0070.00017.45
8.0.260.0000.00717.39
8.0.250.0040.00417.15
8.0.240.0000.00617.25
8.0.230.0040.00317.14
8.0.220.0040.00417.06
8.0.210.0000.00717.15
8.0.200.0060.00017.12
8.0.190.0070.00017.11
8.0.180.0020.00516.98
8.0.170.0000.00817.04
8.0.160.0000.00717.07
8.0.150.0000.00817.03
8.0.140.0040.00416.93
8.0.130.0050.00013.50
8.0.120.0000.00817.02
8.0.110.0000.00716.98
8.0.100.0030.00517.13
8.0.90.0020.00516.98
8.0.80.0070.01017.02
8.0.70.0030.00517.09
8.0.60.0040.00416.98
8.0.50.0040.00417.07
8.0.30.0060.01217.21
8.0.20.0080.01117.40
8.0.10.0040.00417.16
8.0.00.0110.00816.98
7.4.330.0000.00516.77
7.4.320.0030.00316.75
7.4.300.0030.00316.53
7.4.290.0050.00216.64
7.4.280.0000.01016.73
7.4.270.0070.00016.61
7.4.260.0040.00416.63
7.4.250.0040.00416.63
7.4.240.0040.00416.77
7.4.230.0000.00716.46
7.4.220.0180.00016.59
7.4.210.0110.00716.63
7.4.200.0000.00816.52
7.4.160.0000.01716.81
7.4.150.0120.00917.40
7.4.140.0060.01617.86
7.4.130.0120.00716.62
7.4.120.0080.01016.69
7.4.110.0080.00816.68
7.4.100.0140.01016.50
7.4.90.0070.01016.59
7.4.80.0110.00719.39
7.4.70.0070.01016.71
7.4.60.0140.00416.53
7.4.50.0060.00916.41
7.4.40.0070.01016.57
7.4.30.0100.00816.71
7.4.00.0060.00914.90
7.3.330.0020.00213.20
7.3.320.0060.00013.19
7.3.310.0030.00316.38
7.3.300.0070.00016.47
7.3.290.0050.00916.53
7.3.280.0140.00316.41
7.3.270.0100.00717.40
7.3.260.0060.01216.54
7.3.250.0100.00816.62
7.3.240.0110.00816.66
7.3.230.0150.00316.54
7.3.210.0080.00816.47
7.3.200.0080.00816.50
7.3.190.0100.00716.44
7.3.180.0030.01316.47
7.3.170.0070.01016.74
7.3.160.0040.01216.57
7.3.10.0130.00516.64
7.3.00.0080.01216.57
7.2.330.0110.00617.00
7.2.320.0070.01116.65
7.2.310.0060.01116.87
7.2.300.0160.00616.88
7.2.290.0030.01316.92
7.2.130.0140.01216.64
7.2.120.0320.01016.79
7.2.110.0400.00416.62
7.2.100.0070.01216.56
7.2.90.0310.00816.77
7.2.80.0060.01216.54
7.2.70.0100.00716.49
7.2.60.0060.01116.98
7.2.50.0130.00316.68
7.2.40.0150.00816.89
7.2.30.0180.00016.88
7.2.20.0350.00417.04
7.2.10.0160.00516.56
7.2.00.0230.00717.84
7.1.250.0090.01515.56
7.1.200.0060.00615.90
7.1.100.0030.00918.17
7.1.70.0000.00817.43
7.1.60.0070.01819.40
7.1.50.0060.00616.86
7.1.00.0000.08022.46
7.0.200.0540.00014.79
7.0.60.0270.07321.80
7.0.50.0030.08317.85
7.0.40.0070.08020.06
7.0.30.0170.04720.09
7.0.20.0300.08320.00
7.0.10.0070.08720.09
7.0.00.0070.05720.22
5.6.280.0000.07321.06
5.6.210.0000.08320.66
5.6.200.0000.04718.21
5.6.190.0030.05720.57
5.6.180.0170.04320.58
5.6.170.0370.07720.55
5.6.160.0070.04720.47
5.6.150.0130.07018.21
5.6.140.0100.03718.18
5.6.130.0130.07318.15
5.6.120.0170.03021.01
5.6.110.0000.05321.11
5.6.100.0070.08321.00
5.6.90.0030.07020.97
5.6.80.0200.05320.52
5.5.350.0300.07020.44
5.5.340.0030.04718.00
5.5.330.0070.05020.57
5.5.320.0630.06020.21
5.5.310.0300.07320.50
5.5.300.0030.04317.88
5.5.290.0000.04717.91
5.5.280.0100.08020.96
5.5.270.0070.08720.88
5.5.260.0100.06720.85
5.5.250.0000.04320.49
5.5.240.0270.05720.29

preferences:
62.13 ms | 400 KiB | 5 Q