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";

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.0120.00619.10
8.3.30.0120.00318.79
8.3.20.0040.00420.34
8.3.10.0000.00820.39
8.3.00.0040.00423.48
8.2.170.0130.00722.96
8.2.160.0070.00722.16
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00221.03
8.2.120.0080.00026.35
8.2.110.0030.00622.24
8.2.100.0060.00618.05
8.2.90.0080.00019.21
8.2.80.0040.00417.97
8.2.70.0090.00017.75
8.2.60.0070.00018.05
8.2.50.0000.00918.09
8.2.40.0030.00620.46
8.2.30.0070.00019.65
8.2.20.0000.00717.81
8.2.10.0000.00718.11
8.2.00.0040.00418.05
8.1.270.0060.00322.19
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0080.00023.96
8.1.230.0060.00617.83
8.1.220.0040.00417.77
8.1.210.0040.00418.77
8.1.200.0000.00917.50
8.1.190.0030.00617.24
8.1.180.0050.00318.10
8.1.170.0030.00618.51
8.1.160.0040.00420.79
8.1.150.0040.00418.89
8.1.140.0030.00519.52
8.1.130.0070.00017.64
8.1.120.0070.00017.64
8.1.110.0030.00317.50
8.1.100.0040.00417.54
8.1.90.0070.00017.62
8.1.80.0030.00517.63
8.1.70.0000.00717.57
8.1.60.0040.00417.73
8.1.50.0030.00617.64
8.1.40.0080.00017.65
8.1.30.0030.00617.62
8.1.20.0040.00417.50
8.1.10.0050.00317.70
8.1.00.0000.00717.55
8.0.300.0050.00318.77
8.0.290.0000.00716.88
8.0.280.0000.00718.45
8.0.270.0030.00317.43
8.0.260.0000.00717.30
8.0.250.0000.00717.14
8.0.240.0000.00717.20
8.0.230.0000.00917.03
8.0.220.0030.00316.97
8.0.210.0030.00317.10
8.0.200.0080.00017.01
8.0.190.0050.00217.18
8.0.180.0040.00416.95
8.0.170.0000.00816.98
8.0.160.0050.00217.13
8.0.150.0000.00716.90
8.0.140.0080.00016.95
8.0.130.0000.00513.43
8.0.120.0080.00016.94
8.0.110.0000.00717.06
8.0.100.0040.00417.03
8.0.90.0050.00316.88
8.0.80.0130.00317.00
8.0.70.0000.00817.10
8.0.60.0000.00716.91
8.0.50.0000.00716.93
8.0.30.0100.00917.20
8.0.20.0180.00417.40
8.0.10.0040.00417.12
8.0.00.0100.00816.99
7.4.330.0020.00216.88
7.4.320.0000.00616.61
7.4.300.0000.00716.61
7.4.290.0070.00016.77
7.4.280.0040.00416.55
7.4.270.0070.00016.62
7.4.260.0000.00716.58
7.4.250.0020.00516.68
7.4.240.0030.00316.52
7.4.230.0000.00716.66
7.4.220.0090.01516.79
7.4.210.0050.00916.70
7.4.200.0050.00316.45
7.4.160.0120.00616.74
7.4.150.0080.01117.40
7.4.140.0140.00817.86
7.4.130.0100.00916.63
7.4.120.0090.01716.67
7.4.110.0070.01016.57
7.4.100.0110.01116.50
7.4.90.0160.00716.67
7.4.80.0150.00619.39
7.4.70.0140.00316.61
7.4.60.0040.01416.63
7.4.50.0000.01016.57
7.4.40.0110.00616.79
7.4.30.0000.01916.87
7.4.00.0040.01114.92
7.3.330.0000.00513.24
7.3.320.0020.00213.23
7.3.310.0030.00316.45
7.3.300.0030.00316.36
7.3.290.0070.00016.39
7.3.280.0060.01116.41
7.3.270.0120.00617.40
7.3.260.0060.01316.41
7.3.250.0070.01116.67
7.3.240.0090.01516.66
7.3.230.0090.00916.44
7.3.210.0030.01316.70
7.3.200.0100.00716.70
7.3.190.0050.01116.57
7.3.180.0100.01016.60
7.3.170.0170.00616.51
7.3.160.0070.00716.46
7.2.330.0100.00716.90
7.2.320.0100.00716.82
7.2.310.0000.01616.66
7.2.300.0090.01016.74
7.2.290.0090.01216.59
7.2.60.0070.00317.13
7.2.00.0290.00318.83
7.1.200.0030.01015.84
7.1.100.0100.00618.15
7.1.70.0060.00317.02
7.1.60.0140.01119.40
7.1.50.0030.01017.14
7.1.00.0070.07322.31
7.0.200.0030.00914.54
7.0.60.0330.05321.86
7.0.50.0070.08017.86
7.0.40.0100.04020.19
7.0.30.0300.07720.20
7.0.20.0430.07720.30
7.0.10.0030.04320.17
7.0.00.0030.04320.00
5.6.280.0070.05320.92
5.6.210.0130.07720.56
5.6.200.0130.08018.22
5.6.190.0070.08320.41
5.6.180.0270.07020.41
5.6.170.0200.04020.38
5.6.160.0100.08320.40
5.6.150.0070.07718.22
5.6.140.0070.08018.08
5.6.130.0000.04718.16
5.6.120.0100.06720.89
5.6.110.0070.08721.11
5.6.100.0070.07021.08
5.6.90.0130.08021.12
5.6.80.0070.04720.48
5.5.350.0270.06720.35
5.5.340.0100.08017.95
5.5.330.0170.06720.07
5.5.320.0330.04720.29
5.5.310.0200.03720.20
5.5.300.0100.04017.95
5.5.290.0030.07717.95
5.5.280.0130.08020.84
5.5.270.0100.06020.97
5.5.260.0070.08320.72
5.5.250.0200.05720.79
5.5.240.0200.08020.28

preferences:
53.15 ms | 400 KiB | 5 Q