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 $now-$then, "\n"; echo $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.60.0100.00718.43
8.3.50.0110.00922.09
8.3.40.0150.00018.96
8.3.30.0040.01118.79
8.3.20.0000.00720.38
8.3.10.0040.00420.48
8.3.00.0040.00421.87
8.2.180.0100.01016.60
8.2.170.0040.01122.96
8.2.160.0100.00321.90
8.2.150.0120.00324.18
8.2.140.0000.00924.66
8.2.130.0000.00720.79
8.2.120.0000.00726.35
8.2.110.0030.00622.21
8.2.100.0070.00418.05
8.2.90.0050.00319.34
8.2.80.0040.00417.97
8.2.70.0040.00417.88
8.2.60.0050.00318.05
8.2.50.0050.00318.09
8.2.40.0040.00420.28
8.2.30.0000.00819.45
8.2.20.0000.00717.86
8.2.10.0040.00418.13
8.2.00.0070.00018.15
8.1.280.0000.01525.92
8.1.270.0120.00622.22
8.1.260.0000.00828.09
8.1.250.0050.00328.09
8.1.240.0110.00022.25
8.1.230.0080.00417.95
8.1.220.0000.00717.78
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.38
8.1.180.0050.00318.10
8.1.170.0080.00018.78
8.1.160.0040.00420.77
8.1.150.0090.00020.73
8.1.140.0050.00319.58
8.1.130.0000.00717.68
8.1.120.0050.00217.70
8.1.110.0040.00417.58
8.1.100.0050.00317.64
8.1.90.0040.00417.70
8.1.80.0030.00517.62
8.1.70.0070.00017.69
8.1.60.0000.00817.70
8.1.50.0080.00017.65
8.1.40.0000.00717.54
8.1.30.0030.00517.75
8.1.20.0040.00417.64
8.1.10.0050.00217.74
8.1.00.0060.00317.71
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0080.00018.63
8.0.270.0030.00317.38
8.0.260.0060.00017.31
8.0.250.0000.00717.21
8.0.240.0070.00017.27
8.0.230.0040.00417.13
8.0.220.0070.00017.05
8.0.210.0040.00417.00
8.0.200.0000.00717.20
8.0.190.0050.00317.20
8.0.180.0040.00417.12
8.0.170.0080.00017.11
8.0.160.0080.00016.99
8.0.150.0000.00817.05
8.0.140.0070.00017.00
8.0.130.0030.00313.54
8.0.120.0050.00316.93
8.0.110.0030.00517.00
8.0.100.0040.00416.95
8.0.90.0040.00417.11
8.0.80.0090.00617.13
8.0.70.0050.00316.95
8.0.60.0050.00217.08
8.0.50.0040.00416.86
8.0.30.0120.00817.15
8.0.20.0080.01017.43
8.0.10.0070.00017.10
8.0.00.0120.00716.98
7.4.330.0050.00016.82
7.4.320.0060.00016.73
7.4.300.0030.00316.65
7.4.290.0040.00416.55
7.4.280.0070.00016.72
7.4.270.0030.00316.73
7.4.260.0030.00316.74
7.4.250.0080.00016.69
7.4.240.0040.00416.59
7.4.230.0000.00716.61
7.4.220.0110.01616.64
7.4.210.0110.00516.60
7.4.200.0000.00716.71
7.4.160.0070.01416.67
7.4.150.0110.00617.40
7.4.140.0120.00517.86
7.4.130.0090.00916.60
7.4.120.0110.01316.73
7.4.110.0100.00716.66
7.4.100.0070.01016.71
7.4.90.0190.00416.54
7.4.80.0180.00019.39
7.4.70.0130.00316.71
7.4.60.0070.01016.69
7.4.50.0040.00416.61
7.4.40.0120.00416.41
7.4.30.0040.01416.58
7.4.00.0050.01015.16
7.3.330.0000.00613.26
7.3.320.0030.00313.30
7.3.310.0040.00416.43
7.3.300.0030.00316.40
7.3.290.0070.00016.23
7.3.280.0070.01016.42
7.3.270.0060.01117.40
7.3.260.0070.01716.70
7.3.250.0100.00816.59
7.3.240.0060.01216.58
7.3.230.0120.00916.58
7.3.210.0120.00916.87
7.3.200.0070.01516.59
7.3.190.0130.00616.46
7.3.180.0000.01716.74
7.3.170.0060.01616.56
7.3.160.0110.00416.75
7.3.120.0100.01014.76
7.3.110.0030.01214.73
7.3.100.0080.00815.05
7.3.90.0100.00715.15
7.3.80.0100.00315.14
7.3.70.0000.00914.85
7.3.60.0120.00414.86
7.3.50.0040.00715.12
7.3.40.0120.00315.04
7.3.30.0070.01014.68
7.3.20.0100.00716.78
7.3.10.0090.00516.91
7.3.00.0050.00816.80
7.2.330.0060.01216.78
7.2.320.0100.01016.68
7.2.310.0000.01816.87
7.2.300.0160.00616.83
7.2.290.0100.00616.63
7.2.250.0040.01215.28
7.2.240.0160.00315.02
7.2.230.0070.00315.12
7.2.220.0110.00615.14
7.2.210.0120.00015.14
7.2.200.0030.00715.11
7.2.190.0120.00315.05
7.2.180.0070.01014.91
7.2.170.0070.00415.07
7.2.130.0070.00717.07
7.2.120.0030.01217.14
7.2.110.0030.01016.74
7.2.100.0030.00616.66
7.2.90.0040.01117.16
7.2.80.0100.00616.90
7.2.70.0100.00317.19
7.2.60.0030.01017.21
7.2.50.0040.01217.04
7.2.40.0100.01017.09
7.2.30.0050.00517.23
7.2.20.0060.00617.21
7.2.10.0040.01116.97
7.2.00.0180.00718.10
7.1.330.0000.01315.98
7.1.320.0000.01015.88
7.1.310.0070.00715.69
7.1.300.0070.00315.95
7.1.290.0090.00315.64
7.1.280.0040.01115.84
7.1.270.0030.01015.55
7.1.260.0050.00515.88
7.1.250.0080.00315.80
7.1.200.0040.00715.82
7.1.100.0070.01318.00
7.1.70.0000.00717.29
7.1.60.0090.01519.40
7.1.50.0110.01117.11
7.1.00.0070.07322.57
7.0.200.0000.01014.82
7.0.60.0200.08021.83
7.0.50.0100.08017.66
7.0.40.0070.06720.09
7.0.30.0170.04020.09
7.0.20.0370.07320.01
7.0.10.0070.04019.99
7.0.00.0030.05019.99
5.6.280.0030.05020.82
5.6.210.0170.07720.70
5.6.200.0100.07018.09
5.6.190.0030.10320.35
5.6.180.0230.06020.39
5.6.170.0270.05020.48
5.6.160.0100.07320.37
5.6.150.0030.05018.11
5.6.140.0130.04318.22
5.6.130.0000.07318.14
5.6.120.0130.07320.99
5.6.110.0100.07720.98
5.6.100.0070.07020.97
5.6.90.0070.08320.97
5.6.80.0030.07720.38
5.5.350.0270.07720.32
5.5.340.0030.06717.88
5.5.330.0000.07020.57
5.5.320.0130.04720.24
5.5.310.0170.06020.33
5.5.300.0070.04317.91
5.5.290.0030.09017.92
5.5.280.0070.05720.79
5.5.270.0200.06020.84
5.5.260.0100.08320.68
5.5.250.0070.08320.47
5.5.240.0230.07020.25

preferences:
45.5 ms | 401 KiB | 5 Q