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: ", ($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 ", $dif2 - $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.0120.00318.55
8.3.50.0090.00618.05
8.3.40.0080.00819.00
8.3.30.0090.00618.92
8.3.20.0070.00020.34
8.3.10.0060.00320.61
8.3.00.0040.00421.90
8.2.180.0090.00618.78
8.2.170.0090.00622.96
8.2.160.0070.00722.26
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00420.88
8.2.120.0040.00426.35
8.2.110.0030.00720.62
8.2.100.0040.00817.91
8.2.90.0080.00019.22
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0000.00818.05
8.2.50.0040.00418.09
8.2.40.0070.00020.71
8.2.30.0060.00319.59
8.2.20.0080.00017.99
8.2.10.0040.00418.15
8.2.00.0000.00718.16
8.1.280.0070.00725.92
8.1.270.0120.00622.10
8.1.260.0000.00728.09
8.1.250.0000.00828.09
8.1.240.0030.00623.97
8.1.230.0090.00320.94
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00917.60
8.1.190.0030.00517.38
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0030.00320.80
8.1.150.0050.00318.86
8.1.140.0000.00819.70
8.1.130.0070.00017.76
8.1.120.0000.00717.70
8.1.110.0040.00417.66
8.1.100.0040.00417.55
8.1.90.0040.00417.62
8.1.80.0000.00817.66
8.1.70.0030.00517.64
8.1.60.0050.00317.70
8.1.50.0060.00317.65
8.1.40.0030.00517.68
8.1.30.0030.00617.66
8.1.20.0050.00217.64
8.1.10.0000.00817.67
8.1.00.0000.00817.67
8.0.300.0000.00718.77
8.0.290.0000.00717.00
8.0.280.0000.00718.57
8.0.270.0030.00317.38
8.0.260.0030.00317.38
8.0.250.0000.00717.14
8.0.240.0000.00617.34
8.0.230.0030.00517.20
8.0.220.0070.00017.09
8.0.210.0030.00317.11
8.0.200.0060.00017.07
8.0.190.0040.00417.07
8.0.180.0000.00717.15
8.0.170.0050.00317.16
8.0.160.0040.00417.17
8.0.150.0040.00416.96
8.0.140.0080.00017.01
8.0.130.0000.00613.55
8.0.120.0050.00317.12
8.0.110.0000.00716.96
8.0.100.0030.00516.92
8.0.90.0040.00416.95
8.0.80.0000.01617.09
8.0.70.0070.00017.15
8.0.60.0000.00817.01
8.0.50.0000.00717.09
8.0.30.0080.00917.37
8.0.20.0110.00917.46
8.0.10.0070.00017.14
8.0.00.0090.01017.00
7.4.330.0020.00216.77
7.4.320.0020.00516.72
7.4.300.0060.00016.73
7.4.290.0030.00516.67
7.4.280.0060.00616.63
7.4.270.0070.00016.64
7.4.260.0000.00816.63
7.4.250.0040.00416.60
7.4.240.0000.00716.63
7.4.230.0000.00716.81
7.4.220.0130.00416.76
7.4.210.0000.01716.62
7.4.200.0020.00516.57
7.4.160.0000.01616.60
7.4.150.0120.00917.40
7.4.140.0140.01017.86
7.4.130.0100.01016.75
7.4.120.0090.00816.69
7.4.110.0090.00816.60
7.4.100.0130.00316.75
7.4.90.0090.00916.80
7.4.80.0170.00019.39
7.4.70.0030.01416.77
7.4.60.0060.01116.96
7.4.50.0090.00316.54
7.4.40.0100.00716.79
7.4.30.0090.00916.75
7.4.10.0100.01015.08
7.4.00.0080.01115.36
7.3.330.0030.00313.30
7.3.320.0050.00013.38
7.3.310.0030.00316.55
7.3.300.0000.00716.52
7.3.290.0090.00816.55
7.3.280.0090.00916.59
7.3.270.0030.01417.40
7.3.260.0050.01416.73
7.3.250.0110.00916.59
7.3.240.0160.00416.68
7.3.230.0120.00616.50
7.3.210.0090.00916.75
7.3.200.0100.00616.69
7.3.190.0100.00716.60
7.3.180.0140.00316.63
7.3.170.0090.01216.59
7.3.160.0100.00616.64
7.3.130.0080.00815.04
7.3.120.0050.01114.98
7.3.110.0040.01115.14
7.3.100.0060.00814.99
7.3.90.0080.00514.99
7.3.80.0050.00614.93
7.3.70.0080.00414.98
7.3.60.0000.01214.97
7.3.50.0050.00914.97
7.3.40.0090.00415.05
7.3.30.0060.00614.83
7.3.20.0050.00716.69
7.3.10.0120.00216.78
7.3.00.0060.00816.79
7.2.330.0070.01016.82
7.2.320.0160.01016.57
7.2.310.0160.00016.70
7.2.300.0040.01416.71
7.2.290.0080.00816.80
7.2.260.0110.00415.11
7.2.250.0130.00615.41
7.2.240.0060.00715.36
7.2.230.0050.00815.08
7.2.220.0090.00915.35
7.2.210.0100.00315.45
7.2.200.0040.00915.28
7.2.190.0050.00815.19
7.2.180.0040.00915.29
7.2.170.0040.01115.12
7.2.160.0040.00915.31
7.2.150.0030.00816.87
7.2.140.0060.00816.97
7.2.130.0020.00916.96
7.2.120.0080.00517.01
7.2.110.0060.00716.80
7.2.100.0060.00816.98
7.2.90.0060.00917.15
7.2.80.0090.00416.95
7.2.70.0050.01016.97
7.2.60.0060.00517.08
7.2.50.0000.01217.05
7.2.40.0050.00817.08
7.2.30.0090.00517.02
7.2.20.0090.00517.10
7.2.10.0070.00817.04
7.2.00.0160.00517.80
7.1.330.0180.01015.85
7.1.320.0080.00515.71
7.1.310.0020.01015.73
7.1.300.0050.00716.04
7.1.290.0070.00715.78
7.1.280.0050.00915.81
7.1.270.0100.00215.85
7.1.260.0110.00215.87
7.1.250.0070.00515.89
7.1.240.0030.01015.76
7.1.230.0060.00616.00
7.1.220.0070.00715.74
7.1.210.0090.00315.73
7.1.200.0060.00615.98
7.1.190.0070.00415.88
7.1.180.0060.00315.76
7.1.170.0080.00816.05
7.1.160.0040.00816.02
7.1.150.0060.00915.94
7.1.140.0040.00815.93
7.1.130.0030.00616.00
7.1.120.0080.00615.71
7.1.110.0000.01116.02
7.1.100.0050.00817.20
7.1.90.0030.00916.05
7.1.80.0100.00315.90
7.1.70.0000.00816.71
7.1.60.0080.00817.78
7.1.50.0000.01716.67
7.1.40.0080.00415.97
7.1.30.0100.00315.95
7.1.20.0120.00015.96
7.1.10.0030.00715.93
7.1.00.0050.04019.14
7.0.330.0070.00715.47
7.0.320.0100.00615.46
7.0.310.0040.00415.34
7.0.300.0060.00315.64
7.0.290.0080.00015.63
7.0.280.0060.00915.64
7.0.270.0050.00615.69
7.0.260.0030.00715.48
7.0.250.0060.00615.74
7.0.240.0060.00315.75
7.0.230.0030.01015.69
7.0.220.0040.00415.52
7.0.210.0000.00815.61
7.0.200.0430.00315.36
7.0.190.0060.00615.64
7.0.180.0090.00015.64
7.0.170.0060.00315.46
7.0.160.0000.00915.58
7.0.150.0030.00915.56
7.0.140.0030.01315.70
7.0.130.0040.01115.37
7.0.120.0060.00915.65
7.0.110.0080.00615.67
7.0.100.0070.00715.71
7.0.90.0030.00615.22
7.0.80.0060.00915.61
7.0.70.0030.00615.69
7.0.60.0180.03518.70
7.0.50.0050.03016.77
7.0.40.0050.03616.81
7.0.30.0170.04016.87
7.0.20.0180.04616.93
7.0.10.0050.02716.80
7.0.00.0070.03416.78
5.6.400.0060.00914.70
5.6.390.0060.00614.41
5.6.380.0060.00314.29
5.6.370.0060.00614.66
5.6.360.0050.00314.48
5.6.350.0000.01714.09
5.6.340.0060.00914.16
5.6.330.0060.00614.29
5.6.320.0000.00814.32
5.6.310.0060.00614.38
5.6.300.0000.01114.48
5.6.290.0030.01214.72
5.6.280.0070.00714.76
5.6.270.0040.00814.44
5.6.260.0030.01014.51
5.6.250.0040.00814.68
5.6.240.0000.01314.46
5.6.230.0060.00914.38
5.6.220.0030.01014.60
5.6.210.0030.04817.61
5.6.200.0120.03816.27
5.6.190.0050.03817.45
5.6.180.0140.02617.51
5.6.170.0220.02717.48
5.6.160.0050.03117.35
5.6.150.0140.03016.26
5.6.140.0060.03316.34
5.6.130.0100.03216.14
5.6.120.0050.03017.68
5.6.110.0070.04617.87
5.6.100.0070.03817.78
5.6.90.0130.03817.83
5.6.80.0110.03517.27
5.6.70.0040.01114.61
5.6.60.0070.00314.37
5.6.50.0030.00714.45
5.6.40.0000.00914.13
5.6.30.0000.01114.46
5.6.20.0040.00414.46
5.6.10.0040.00714.29
5.6.00.0080.00814.30
5.5.380.0030.01014.57
5.5.370.0030.01214.15
5.5.360.0100.00314.38
5.5.350.0150.04317.43
5.5.340.0070.04316.34
5.5.330.0110.02517.47
5.5.320.0280.02417.42
5.5.310.0150.04417.17
5.5.300.0040.04616.18
5.5.290.0090.01816.25
5.5.280.0100.04217.55
5.5.270.0070.04317.73
5.5.260.0080.02317.64
5.5.250.0040.02117.32
5.5.240.0130.02317.11
5.5.230.0030.01014.62
5.5.220.0080.00814.13
5.5.210.0000.01214.49
5.5.200.0060.00914.27
5.5.190.0040.01114.40
5.5.180.0070.00714.47
5.5.170.0030.01014.29
5.5.160.0030.00614.34
5.5.150.0000.01214.41
5.5.140.0070.00714.03
5.5.130.0070.00414.16
5.5.120.0070.00714.18
5.5.110.0060.00614.20
5.5.100.0070.00714.50
5.5.90.0100.00614.30
5.5.80.0110.00314.41
5.5.70.0130.00314.49
5.5.60.0040.00814.23
5.5.50.0060.00614.12
5.5.40.0030.00614.38
5.5.30.0040.00814.41
5.5.20.0040.00714.39
5.5.10.0030.00914.20
5.5.00.0030.01014.29

preferences:
42.8 ms | 401 KiB | 5 Q