3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('memory_limit', 2048); register_shutdown_function(function () { $y = []; for ($i = 0; $i < 1000; $i++) { $y[] = $i; } var_dump([ 'total count is' => count($y) ]); }); $x = []; for ($i = 0; $i < 1000000000; $i++) { $x[] = $i; }

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.4.10.0480.03151.65
8.3.140.0310.02449.82
8.3.130.0400.02349.85
8.3.120.0290.02652.68
8.3.110.0400.02351.33
8.3.100.0240.02150.50
8.3.90.0300.02749.58
8.3.80.0340.02152.62
8.3.70.0620.04950.45
8.3.60.0430.03350.74
8.3.50.0600.04550.09
8.3.40.0270.02735.62
8.3.30.0350.01935.63
8.3.20.0200.02038.30
8.3.10.0170.01437.39
8.3.00.0100.01040.55
8.2.260.0620.03649.39
8.2.250.0460.02650.44
8.2.240.0410.01749.96
8.2.230.0410.03449.66
8.2.220.0330.02349.84
8.2.210.0300.03450.14
8.2.200.0570.03049.37
8.2.190.0680.04449.60
8.2.180.0290.04850.64
8.2.170.0200.04336.17
8.2.160.0130.03039.12
8.2.150.0040.02237.06
8.2.140.0180.01138.36
8.2.130.0110.01837.23
8.2.120.0070.01138.05
8.2.110.0180.02137.13
8.2.100.0310.01235.05
8.2.90.0250.00435.14
8.2.80.0210.00734.94
8.2.70.0100.01935.13
8.2.60.0120.01535.30
8.2.50.0120.01534.82
8.2.40.0070.01837.16
8.2.30.0100.01736.32
8.2.20.0070.02035.11
8.2.10.0130.01636.57
8.2.00.0100.01736.34
8.1.300.0300.02350.42
8.1.290.0300.02448.92
8.1.280.0740.03749.28
8.1.270.0070.01040.50
8.1.260.0210.00337.76
8.1.250.0110.01539.10
8.1.240.0160.01639.29
8.1.230.0150.00640.84
8.1.220.0160.01034.76
8.1.210.0180.00736.10
8.1.200.0180.00734.33
8.1.190.0130.01334.34
8.1.180.0160.00734.50
8.1.170.0070.01735.77
8.1.160.0160.00635.86
8.1.150.0230.00036.04
8.1.140.0070.01440.53
8.1.130.0000.02434.55
8.1.120.0150.00634.51
8.1.110.0140.01034.53
8.1.100.0130.01034.55
8.1.90.0030.01934.56
8.1.80.0110.01134.57
8.1.70.0190.00334.56
8.1.60.0190.00934.63
8.1.50.0140.01434.50
8.1.40.0100.01734.52
8.1.30.0130.01334.71
8.1.20.0130.01634.69
8.1.10.0230.02350.59
8.1.00.0320.02950.45
8.0.300.0060.00322.03
8.0.290.0090.00017.63
8.0.280.0040.00419.44
8.0.270.0000.00718.19
8.0.260.0040.00417.76
8.0.250.0020.00517.99
8.0.240.0000.00718.03
8.0.230.0000.00717.99
8.0.220.0030.00517.82
8.0.210.0030.00617.94
8.0.200.0070.00018.12
8.0.190.0060.00318.02
8.0.180.0000.00818.02
8.0.170.0030.00618.00
8.0.160.0030.00518.01
8.0.150.0040.00417.83
8.0.140.0000.00817.92
8.0.130.0030.00314.39
8.0.120.0040.00417.94
8.0.110.0040.00417.96
8.0.100.0000.00817.88
8.0.90.0060.00318.10
8.0.80.0100.00617.92
8.0.70.0030.00517.78
8.0.60.0040.00417.82
8.0.50.0040.00417.95
8.0.30.0040.01918.16
8.0.20.0120.01118.14
8.0.10.0030.00618.16
8.0.00.0070.01417.65
7.4.330.0060.00015.55
7.4.320.0000.00817.64
7.4.300.0040.00417.45
7.4.290.0030.00617.57
7.4.280.0030.00617.63
7.4.270.0040.00417.55
7.4.260.0030.00517.61
7.4.250.0040.00417.54
7.4.240.0020.00817.58
7.4.230.0000.00717.70
7.4.220.0030.00517.57
7.4.210.0110.00917.58
7.4.200.0080.00017.65
7.4.130.0110.00717.37
7.4.120.0070.01117.57
7.4.110.0090.00917.57
7.4.100.0100.01017.41
7.4.90.0080.01917.41
7.4.80.0100.01019.39
7.4.70.0150.00717.57
7.4.60.0110.00717.55
7.4.50.0090.00917.29
7.4.40.0120.01317.59
7.4.00.0070.01015.71
7.3.330.0050.00317.23
7.3.320.0000.00714.18
7.3.310.0040.00417.38
7.3.300.0040.00417.36
7.3.290.0110.00817.31
7.3.280.0070.01117.40
7.3.260.0090.01017.54
7.3.240.0120.00817.55
7.3.230.0070.01117.57
7.3.210.0070.01017.28
7.3.200.0160.00717.46
7.3.190.0160.00517.46
7.3.180.0090.01317.47
7.3.170.0180.00017.34
7.3.160.0060.01217.57
7.3.120.0170.00315.89
7.3.110.0150.00415.83
7.3.100.0060.01016.00
7.3.90.0090.00915.77
7.3.80.0070.00815.91
7.3.70.0080.00915.67
7.3.60.0070.00915.91
7.3.50.0060.00915.92
7.3.40.0110.00915.95
7.3.30.0060.01115.92
7.3.20.0070.00916.24
7.3.10.0050.01016.23
7.3.00.0080.00816.30
7.2.330.0080.01117.60
7.2.320.0160.01017.65
7.2.310.0120.00617.54
7.2.300.0090.01117.79
7.2.290.0060.01317.55
7.2.250.0120.00616.25
7.2.240.0060.01216.24
7.2.230.0060.01216.02
7.2.220.0070.01416.03
7.2.210.0040.01615.75
7.2.200.0090.01215.99
7.2.190.0070.01216.02
7.2.180.0050.01016.08
7.2.170.0100.01015.91
7.2.160.0060.00915.99
7.2.150.0080.01316.05
7.2.140.0170.00716.27
7.2.130.0150.00716.12
7.2.120.0150.00615.97
7.2.110.0090.00916.16
7.2.100.0160.00916.25
7.2.90.0070.01016.21
7.2.80.0070.01415.85
7.2.70.0060.01516.05
7.2.60.0150.00616.20
7.2.50.0230.00316.02
7.2.40.0080.01215.86
7.2.30.0170.00316.24
7.2.20.0100.01016.18
7.2.10.0160.01115.96
7.2.00.0170.01016.00
7.1.330.0030.01315.72
7.1.320.0110.00715.33
7.1.310.0110.00615.35
7.1.300.0120.00815.37
7.1.290.0080.00815.14
7.1.280.0080.01115.55
7.1.270.0090.00915.42
7.1.260.0080.00815.47
7.1.250.0120.00915.08

preferences:
22.75 ms | 403 KiB | 5 Q