3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('memory_limit', 2048); register_shutdown_function(function () { $y = []; for ($i = 0; $i < 1000000000; $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.0440.03466.75
8.3.140.0670.03565.95
8.3.130.0610.03165.95
8.3.120.0580.04168.07
8.3.110.0650.02068.30
8.3.100.0680.05765.86
8.3.90.0670.02067.41
8.3.80.0530.03666.63
8.3.70.0720.07265.54
8.3.60.0460.05366.61
8.3.50.0700.06266.05
8.3.40.0390.03043.87
8.3.30.0430.02643.63
8.3.20.0250.01345.36
8.3.10.0370.02345.30
8.3.00.0070.01746.56
8.2.250.0420.03666.36
8.2.240.0560.02367.03
8.2.230.0200.03066.19
8.2.220.0470.03365.45
8.2.210.0170.03168.00
8.2.200.0680.02965.59
8.2.190.0940.06065.91
8.2.180.0700.06066.23
8.2.170.0370.03344.05
8.2.160.0470.03045.39
8.2.150.0180.01844.84
8.2.140.0330.00745.48
8.2.130.0300.01044.26
8.2.120.0240.01345.39
8.2.110.0280.02844.26
8.2.100.0300.03042.75
8.2.90.0200.01742.81
8.2.80.0200.02043.88
8.2.70.0200.01642.47
8.2.60.0130.02342.71
8.2.50.0220.01542.70
8.2.40.0240.01445.13
8.2.30.0160.01944.29
8.2.20.0170.02043.03
8.2.10.0190.01644.52
8.2.00.0130.02344.38
8.1.300.0190.01370.02
8.1.290.0740.01765.09
8.1.280.1280.03365.23
8.1.270.0130.00746.67
8.1.260.0300.00347.11
8.1.250.0130.00644.79
8.1.240.0170.02147.93
8.1.230.0360.01045.87
8.1.220.0070.02343.57
8.1.210.0170.01442.39
8.1.200.0170.01742.34
8.1.190.0130.02042.25
8.1.180.0100.01942.32
8.1.170.0150.01543.46
8.1.160.0200.01043.84
8.1.150.0040.02543.94
8.1.140.0210.00746.68
8.1.130.0190.01045.17
8.1.120.0130.01742.38
8.1.110.0100.02142.48
8.1.100.0190.01242.48
8.1.90.0170.01442.38
8.1.80.0230.01042.48
8.1.70.0140.01442.48
8.1.60.0190.01642.66
8.1.50.0100.02442.45
8.1.40.0100.02442.50
8.1.30.0200.01642.63
8.1.20.0160.02242.64
8.1.10.0310.03466.54
8.1.00.0420.02666.44
8.0.300.0030.00618.77
8.0.290.0040.00418.00
8.0.280.0060.00319.68
8.0.270.0040.00418.11
8.0.260.0000.00721.21
8.0.250.0050.00318.26
8.0.240.0000.00718.29
8.0.230.0000.00718.13
8.0.220.0050.00318.16
8.0.210.0000.00818.15
8.0.200.0040.00418.19
8.0.190.0040.00418.34
8.0.180.0000.00918.21
8.0.170.0030.00618.15
8.0.160.0040.00418.09
8.0.150.0090.00018.25
8.0.140.0080.00018.20
8.0.130.0000.00714.71
8.0.120.0060.00318.21
8.0.110.0030.00618.30
8.0.100.0030.00618.07
8.0.90.0100.00018.36
8.0.80.0080.01218.23
8.0.70.0000.00918.13
8.0.60.0060.00318.33
8.0.50.0030.00618.30
8.0.30.0000.01918.44
8.0.20.0120.01018.27
8.0.10.0050.00518.14
8.0.00.0110.01118.05
7.4.330.0000.00515.55
7.4.320.0000.00717.87
7.4.300.0070.00017.94
7.4.290.0060.00317.88
7.4.280.0070.00417.89
7.4.270.0000.00817.89
7.4.260.0030.00314.58
7.4.250.0000.00817.74
7.4.240.0030.00517.83
7.4.230.0040.00417.91
7.4.220.0000.00917.89
7.4.210.0120.00617.82
7.4.200.0000.00817.89
7.4.130.0040.01517.92
7.4.120.0130.01317.80
7.4.110.0130.00717.80
7.4.100.0070.01117.89
7.4.90.0030.01517.90
7.4.80.0130.00619.39
7.4.70.0130.00617.69
7.4.60.0190.00317.82
7.4.50.0090.00917.52
7.4.40.0070.01417.70
7.4.10.0120.00916.31
7.4.00.0080.01216.13
7.3.330.0080.00017.64
7.3.320.0030.00614.58
7.3.310.0030.00617.69
7.3.300.0080.00017.60
7.3.290.0030.00517.57
7.3.280.0070.01717.64
7.3.260.0150.00817.71
7.3.240.0140.01017.69
7.3.230.0150.00317.70
7.3.210.0130.01017.59
7.3.200.0180.00317.76
7.3.190.0090.00917.71
7.3.180.0060.01317.79
7.3.170.0110.00717.86
7.3.160.0110.00717.71
7.3.130.0120.00616.31
7.3.120.0100.01016.13
7.3.110.0140.00716.38
7.3.100.0030.01316.20
7.3.90.0030.01215.93
7.3.80.0070.00816.22
7.3.70.0090.01016.17
7.3.60.0100.01015.91
7.3.50.0030.01016.20
7.3.40.0100.00716.18
7.3.30.0090.00816.08
7.3.20.0160.00316.29
7.3.10.0070.01216.37
7.3.00.0080.00716.36
7.2.330.0090.01117.63
7.2.320.0110.01418.00
7.2.310.0070.01118.02
7.2.300.0130.00617.90
7.2.290.0100.01017.95
7.2.260.0130.01016.30
7.2.250.0060.01316.33
7.2.240.0090.00916.25
7.2.230.0100.01016.49
7.2.220.0090.00916.08
7.2.210.0070.01016.32
7.2.200.0060.01116.21
7.2.190.0110.01116.19
7.2.180.0060.01016.00
7.2.170.0100.00616.31
7.2.160.0080.00816.21
7.2.150.0110.00816.63
7.2.140.0090.01116.64
7.2.130.0100.00816.65
7.2.120.0120.00416.50
7.2.110.0060.00916.59
7.2.100.0050.01216.57
7.2.90.0030.01516.49
7.2.80.0080.01316.50
7.2.70.0050.01416.44
7.2.60.0110.01016.54
7.2.50.0090.00716.51
7.2.40.0100.00816.38
7.2.30.0140.00916.53
7.2.20.0120.01116.51
7.2.10.0140.00516.60
7.2.00.0110.00816.62
7.1.330.0060.01016.02
7.1.320.0100.00915.38
7.1.310.0080.00915.47
7.1.300.0120.00615.34
7.1.290.0110.00815.39
7.1.280.0110.00615.51
7.1.270.0070.00815.47
7.1.260.0060.01115.43
7.1.250.0090.00715.34
7.1.240.0060.00915.52
7.1.230.0000.01815.82
7.1.220.0070.01115.60
7.1.210.0030.00715.57
7.1.200.0070.00715.62
7.1.190.0030.01415.89
7.1.180.0070.00415.47
7.1.170.0090.00915.85
7.1.160.0070.01015.84
7.1.150.0070.01015.68
7.1.140.0000.01415.64
7.1.130.0030.00915.54
7.1.120.0060.00815.84
7.1.110.0000.01315.87
7.1.100.0060.01015.80
7.1.90.0070.00715.63
7.1.80.0040.01115.71
7.1.70.0100.00715.77
7.1.60.0040.00715.85
7.1.50.0030.00715.70
7.1.40.0000.01215.83
7.1.30.0060.01215.55
7.1.20.0000.01415.73
7.1.10.0030.01415.75
7.1.00.0070.01315.70

preferences:
17.38 ms | 403 KiB | 5 Q