3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); for ($i = 0, $max = 100000000; $i < $max; $i++) { $a[] = $i; } unset($a);

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.0640.04749.54
8.3.50.0450.05450.23
8.3.40.0370.01735.76
8.3.30.0260.02635.51
8.3.20.0290.02637.29
8.3.10.0240.01339.70
8.3.00.0070.01535.71
8.2.180.0760.03949.69
8.2.170.0370.03735.77
8.2.160.0460.01737.64
8.2.150.0300.00035.82
8.2.140.0170.01338.18
8.2.130.0160.01636.19
8.2.120.0130.00735.55
8.2.110.0120.01640.26
8.2.100.0190.01934.87
8.2.90.0180.01136.17
8.2.80.0100.02034.57
8.2.70.0160.01634.39
8.2.60.0130.01634.99
8.2.50.0170.01734.16
8.2.40.0070.01838.15
8.2.30.0070.02037.73
8.2.20.0160.01334.83
8.2.10.0070.02035.12
8.2.00.0100.01735.00
8.1.280.0570.04748.91
8.1.270.0170.02737.48
8.1.260.0170.01439.29
8.1.250.0310.02138.09
8.1.240.0170.01339.99
8.1.230.0200.01334.86
8.1.220.0190.00334.68
8.1.210.0110.01534.20
8.1.200.0150.00934.27
8.1.190.0120.01234.20
8.1.180.0100.01334.33
8.1.170.0070.01735.56
8.1.160.0070.01437.78
8.1.150.0160.00635.92
8.1.140.0200.00336.59
8.1.130.0110.01134.71
8.1.120.0100.01434.46
8.1.110.0070.01434.39
8.1.100.0030.01834.49
8.1.90.0130.00934.36
8.1.80.0060.01634.48
8.1.70.0060.01634.35
8.1.60.0150.01134.64
8.1.50.0170.01034.54
8.1.40.0130.01334.60
8.1.30.0160.01034.59
8.1.20.0160.01034.49
8.1.10.0250.02150.49
8.1.00.0210.02550.52
8.0.300.0280.01449.66
8.0.290.0350.00949.62
8.0.280.0260.01351.29
8.0.270.0160.02350.05
8.0.260.0240.01450.18
8.0.250.0230.01649.84
8.0.240.0240.01449.71
8.0.230.0170.02449.78
8.0.220.0240.01449.82
8.0.210.0200.02049.71
8.0.200.0260.01349.71
8.0.190.0330.01349.66
8.0.180.0200.02749.66
8.0.170.0100.03749.77
8.0.160.0350.02449.76
8.0.150.0450.01649.73
8.0.140.0240.02449.71
8.0.130.0410.04578.33
8.0.120.0210.02449.70
8.0.110.0160.02849.60
8.0.100.0250.01949.80
8.0.90.0210.02449.73
8.0.80.0490.03649.67
8.0.70.0240.02149.77
8.0.60.0240.02449.78
8.0.50.0100.03449.71
8.0.30.0660.03650.01
8.0.20.0610.04949.99
8.0.10.0200.02449.89
8.0.00.0650.04749.65
7.4.330.0190.00948.57
7.4.320.0260.01349.45
7.4.300.0160.02349.18
7.4.290.0230.02649.30
7.4.280.0160.03249.28
7.4.270.0230.02649.18
7.4.260.0290.01949.32
7.4.250.0200.03049.37
7.4.240.0260.02049.45
7.4.230.0170.03049.49
7.4.220.0560.05949.43
7.4.210.0520.06849.45
7.4.200.0210.02449.21
7.4.160.0530.05049.47
7.4.150.0450.06849.28
7.4.140.0870.04849.36
7.4.130.0630.06849.37
7.4.120.0550.06149.22
7.4.110.0780.05449.62
7.4.100.0680.04149.42
7.4.90.0700.03549.50
7.4.80.0830.05449.44
7.4.70.0490.05649.22
7.4.60.0660.04349.52
7.4.50.0230.03349.25
7.4.40.0880.05649.34
7.4.30.0580.07449.40
7.4.00.0360.04247.81
7.3.330.0530.05278.04
7.3.320.0540.03778.05
7.3.310.0260.01949.15
7.3.300.0200.02649.18
7.3.290.0200.02749.11
7.3.280.0530.05649.16
7.3.270.0640.06449.21
7.3.260.0530.06649.31
7.3.250.0550.05849.28
7.3.240.0670.08049.20
7.3.230.0750.03949.13
7.3.210.0620.04949.42
7.3.200.0850.05649.07
7.3.190.0650.05549.19
7.3.180.0530.05349.55
7.3.170.0560.07249.19
7.3.160.0490.05849.44
7.3.120.0410.05847.80
7.3.110.0500.04647.81
7.3.100.0350.04247.80
7.3.90.0350.02947.64
7.3.80.0350.03247.71
7.3.70.0440.02947.50
7.3.60.0320.04547.50
7.3.50.0530.03747.70
7.3.40.0380.03847.63
7.3.30.0330.03647.71
7.3.20.0250.04150.65
7.3.10.0420.04550.49
7.3.00.0150.03450.65
7.2.330.0560.05949.50
7.2.320.0720.04249.27
7.2.310.0480.06549.51
7.2.300.0640.05149.40
7.2.290.0560.06549.38
7.2.250.0360.05648.21
7.2.240.0460.03348.05
7.2.230.0330.03347.73
7.2.220.0290.04648.00
7.2.210.0330.05648.11
7.2.200.0410.05147.84
7.2.190.0530.03547.90
7.2.180.0270.04047.77
7.2.170.0200.05448.05
7.2.60.2260.03750.36
7.2.00.0300.03353.37
7.1.330.0690.07049.48
7.1.320.0540.04649.60
7.1.310.0160.07549.41
7.1.300.0310.08549.86
7.1.290.0380.06949.65
7.1.280.0260.05649.75
7.1.270.0140.06049.66
7.1.260.0180.07649.47
7.1.200.0830.02749.48
7.1.100.0390.02952.05
7.1.70.0370.04050.69
7.1.60.0200.06051.00
7.1.50.0070.04551.13
7.1.00.0070.11756.36
7.0.200.3800.03348.59
7.0.60.0270.10752.96
7.0.50.0200.06350.84
7.0.40.0330.07351.78
7.0.30.0970.09351.88
7.0.20.1130.07351.80
7.0.10.0330.12351.73
7.0.00.0100.07751.86
5.6.280.0170.09085.70
5.6.210.0270.10385.37
5.6.200.0270.16782.76
5.6.190.0300.17085.01
5.6.180.0370.15384.86
5.6.170.0430.12784.92
5.6.160.0270.13084.95
5.6.150.0200.10782.79
5.6.140.0230.11382.77
5.6.130.0430.14382.75
5.6.120.0230.10085.63
5.6.110.0400.11785.62
5.6.100.0300.15085.64
5.6.90.0300.15385.61
5.6.80.0070.11785.01
5.5.350.0470.09384.96
5.5.340.0230.15782.50
5.5.330.0130.10784.77
5.5.320.0570.10084.81
5.5.310.0670.10784.77
5.5.300.0330.15382.60
5.5.290.0300.13382.57
5.5.280.0230.14085.62
5.5.270.0330.15785.47
5.5.260.0330.13385.28
5.5.250.0570.10785.18
5.5.240.0570.15084.76

preferences:
54.11 ms | 401 KiB | 5 Q