3v4l.org

run code in 300+ PHP versions simultaneously
<?php function array_split($input, $size=1) { $result = array(); for ($i = 0; $i < $size; $i++) { $remaining_slots = $size - $i; $remaining_items = count($input); $chunk_size = ceil($remaining_items / $remaining_slots); $chunk = array(); for ($e = 0; $e < $chunk_size; $e++) { $chunk[] = array_shift($input); } $result[] = $chunk; } return $result; } array_split(range(0, 10000), 4);

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.40.0100.11619.09
8.3.30.0070.12620.58
8.3.20.0030.06220.68
8.3.10.0000.06622.09
8.3.00.0070.05922.40
8.2.170.0100.11622.96
8.2.160.0070.11422.06
8.2.150.0100.08824.18
8.2.140.0100.05724.66
8.2.130.0070.07026.16
8.2.120.0100.05620.69
8.2.110.0070.23321.06
8.2.100.0100.09018.03
8.2.90.0070.08819.61
8.2.80.0030.11217.97
8.2.70.0030.10017.88
8.2.60.0070.08418.43
8.2.50.0030.09018.10
8.2.40.0030.09020.07
8.2.30.0000.09119.87
8.2.20.0030.09118.14
8.2.10.0030.08818.23
8.2.00.0000.09318.19
8.1.270.0100.07723.99
8.1.260.0070.07726.35
8.1.250.0070.07828.09
8.1.240.0000.24923.95
8.1.230.0130.12418.46
8.1.220.0070.11818.43
8.1.210.0030.12318.77
8.1.200.0030.12317.85
8.1.190.0000.11417.86
8.1.180.0030.11018.10
8.1.170.0030.11119.15
8.1.160.0100.10619.64
8.1.150.0030.11819.34
8.1.140.0000.12718.16
8.1.130.0100.10318.53
8.1.120.0030.11118.20
8.1.110.0030.13818.22
8.1.100.0000.11318.23
8.1.90.0000.11218.07
8.1.80.0030.11018.08
8.1.70.0030.12818.06
8.1.60.0000.22118.24
8.1.50.0030.21918.20
8.1.40.0030.21718.28
8.1.30.0000.22018.29
8.1.20.0000.22618.26
8.1.10.0130.21118.22
8.1.00.0030.22118.12
8.0.300.0070.11018.77
8.0.290.0070.10617.38
8.0.280.0030.10819.15
8.0.270.0030.10917.96
8.0.260.0030.10817.54
8.0.250.0000.11017.71
8.0.240.0030.12117.64
8.0.230.0030.11117.68
8.0.220.0000.11417.61
8.0.210.0000.11117.63
8.0.200.0070.10617.65
8.0.190.0030.21617.71
8.0.180.0100.20917.54
8.0.170.0030.21717.57
8.0.160.0030.21617.45
8.0.150.0070.21417.53
8.0.140.0070.21317.55
8.0.130.0070.21314.02
8.0.120.0030.21917.41
8.0.110.0000.21217.57
8.0.100.0030.21717.42
8.0.90.0030.21617.66
8.0.80.0100.20317.63
8.0.70.0070.21617.54
8.0.60.0070.21117.41
8.0.50.0070.21417.54
8.0.30.0070.19717.67
8.0.20.0080.19117.86
8.0.10.0000.22417.54
8.0.00.0150.25517.46
7.4.330.0030.11015.00
7.4.320.0030.12217.16
7.4.300.0000.11417.22
7.4.290.0030.21317.31
7.4.280.0000.21917.16
7.4.270.0070.21117.21
7.4.260.0000.22014.02
7.4.250.0070.21317.19
7.4.240.0030.21617.26
7.4.230.0030.21417.32
7.4.220.0190.22017.23
7.4.210.0070.21417.36
7.4.200.0030.21217.33
7.4.190.0030.21617.44
7.4.160.0030.22617.02
7.4.150.0030.19417.40
7.4.140.0100.23217.86
7.4.130.0130.20017.18
7.4.120.0120.18717.35
7.4.110.0090.32117.20
7.4.100.0070.19317.27
7.4.90.0160.21017.20
7.4.80.0160.19519.39
7.4.70.0100.26017.19
7.4.60.0160.19217.16
7.4.50.0100.18017.11
7.4.40.0100.21122.77
7.4.30.0030.19617.18
7.4.00.0100.21315.82
7.3.330.0000.22013.97
7.3.320.0000.21814.01
7.3.310.0070.21417.07
7.3.300.0070.21217.13
7.3.290.0100.27816.99
7.3.280.0150.24917.10
7.3.270.0100.18317.40
7.3.260.0160.22917.28
7.3.250.0150.20417.08
7.3.240.0190.22817.32
7.3.230.0130.19817.11
7.3.210.0150.22217.27
7.3.200.0070.20419.39
7.3.190.0200.25217.18
7.3.180.0130.18117.22
7.3.170.0070.18717.15
7.3.160.0100.29117.05
7.3.120.0000.22115.43
7.2.330.0070.20517.20
7.2.320.0160.20817.37
7.2.310.0060.21217.45
7.2.300.0070.19917.09
7.2.290.0130.19017.48
7.2.00.0070.17519.27
7.1.100.0170.13218.24
7.1.70.0000.12817.18
7.1.60.0070.19919.32
7.1.50.0030.15617.11
7.1.00.0070.16022.50
7.0.200.0030.14416.46
7.0.140.0070.24322.00
7.0.100.0000.24721.73
7.0.90.0030.21021.96
7.0.80.0070.15021.80
7.0.70.0070.22021.76
7.0.60.0100.23321.77
7.0.50.0000.22322.15
7.0.40.0070.23319.98
7.0.30.0130.23319.98
7.0.20.0030.19320.15
7.0.10.0300.17319.95
7.0.00.0070.17320.07
5.6.280.0030.45023.12
5.6.250.0130.47722.91
5.6.240.0100.44022.96
5.6.230.0070.44722.89
5.6.220.0130.45722.90
5.6.210.0030.46722.78
5.6.200.0170.47023.38
5.6.190.0100.49023.27
5.6.180.0100.49023.43
5.6.170.0170.48723.34
5.6.160.0070.44323.28
5.6.150.0130.45323.36
5.6.140.0130.46723.34
5.6.130.0000.43023.45
5.6.120.0070.48323.49
5.6.110.0070.49023.35
5.6.100.0100.47023.32
5.6.90.0070.49723.43
5.6.80.0030.44022.79
5.6.70.0030.49322.66
5.6.60.0070.51322.80
5.6.50.0130.39322.75
5.6.40.0030.37022.76
5.6.30.0030.51722.64
5.6.20.0130.43722.74
5.6.10.0170.43022.62
5.6.00.0100.42722.62
5.5.380.0100.75323.25
5.5.370.0000.57023.25
5.5.360.0070.64023.24
5.5.350.0100.74723.27
5.5.340.0100.74323.61
5.5.330.0100.75023.73
5.5.320.0070.77723.56
5.5.310.0130.74023.61
5.5.300.0030.77723.72
5.5.290.0070.71023.61
5.5.280.0030.73323.63
5.5.270.0030.76023.46
5.5.260.0070.75723.71
5.5.250.0200.76323.40
5.5.240.0070.78323.14
5.5.230.0100.72323.04
5.5.220.0200.76322.98
5.5.210.0130.67323.14
5.5.200.0030.59723.11
5.5.190.0100.73723.01
5.5.180.0030.67023.05
5.5.160.0030.63023.08
5.5.150.0130.64323.04
5.5.140.0100.56023.01
5.5.130.0070.56023.01
5.5.120.0000.52323.07
5.5.110.0100.59023.05
5.5.100.0000.56322.97
5.5.90.0070.72722.90
5.5.80.0070.74722.90
5.5.70.0130.76722.83
5.5.60.0070.76022.89
5.5.50.0170.74322.89
5.5.40.0070.75722.92
5.5.30.0030.67322.98
5.5.20.0100.66722.86
5.5.10.0030.59022.86
5.5.00.0170.63322.87
5.4.450.0030.67021.98
5.4.440.0130.67722.10
5.4.430.0070.75722.14
5.4.420.0070.75722.11
5.4.410.0070.75022.08
5.4.400.0030.74021.67
5.4.390.0070.76721.85
5.4.380.0070.77021.78
5.4.370.0000.52721.79
5.4.360.0170.68721.79
5.4.350.0170.72021.83
5.4.340.0100.66021.79
5.4.320.0030.63021.61
5.4.310.0100.65321.65
5.4.300.0000.56321.80
5.4.290.0030.52022.01
5.4.280.0000.56721.80
5.4.270.0030.52321.66
5.4.260.0100.57321.80
5.4.250.0030.67321.82
5.4.240.0100.73321.86
5.4.230.0070.75321.81
5.4.220.0030.71321.86
5.4.210.0070.75021.79
5.4.200.0100.76321.61
5.4.190.0130.64321.89
5.4.180.0100.67321.85
5.4.170.0070.56721.84
5.4.160.0100.59721.60
5.4.150.0100.63321.60
5.4.140.0070.65719.07
5.4.130.0100.61719.11
5.4.120.0100.62019.26
5.4.110.0000.67019.26
5.4.100.0170.64319.31
5.4.90.0030.61319.09
5.4.80.0070.65019.23
5.4.70.0130.64719.26
5.4.60.0100.64319.25
5.4.50.0070.58319.11
5.4.40.0000.65019.12
5.4.30.0030.55019.11
5.4.20.0070.68719.09
5.4.10.0100.73719.11
5.4.00.0070.72318.60
5.3.290.0030.54717.39
5.3.280.0100.75717.23
5.3.270.0070.66717.33
5.3.260.0100.65717.61
5.3.250.0070.66017.34
5.3.240.0030.65717.20
5.3.230.0070.65717.30
5.3.220.0030.62717.29
5.3.210.0100.55317.16
5.3.200.0000.64017.32
5.3.190.0070.65717.32
5.3.180.0130.63717.23
5.3.170.0070.66317.24
5.3.160.0070.65717.37
5.3.150.0070.64717.29
5.3.140.0100.64317.12
5.3.130.0100.68017.35
5.3.120.0070.68017.27
5.3.110.0000.67317.29
5.3.100.0130.66016.79
5.3.90.0070.66716.78
5.3.80.0000.64316.54
5.3.70.0000.66016.64
5.3.60.0000.64016.68
5.3.50.0100.65016.54
5.3.40.0070.63716.57
5.3.30.0100.64016.53
5.3.20.0070.65716.29
5.3.10.0000.56316.22
5.3.00.0700.54316.33
5.2.170.0000.54013.74
5.2.160.0000.62013.53
5.2.150.0070.63713.74
5.2.140.0000.68313.68
5.2.130.0030.63713.61
5.2.120.0070.65314.05
5.2.110.0130.61313.60
5.2.100.0000.63713.65
5.2.90.0070.62713.54
5.2.80.0030.64713.64
5.2.70.0130.62713.53
5.2.60.0030.56313.57
5.2.50.0070.63013.59
5.2.40.0030.63713.45
5.2.30.0030.56313.50
5.2.20.0000.55013.47
5.2.10.0100.56713.52
5.2.00.0030.57013.30
5.1.60.0000.58713.47
5.1.50.0000.71713.53
5.1.40.0030.69313.33
5.1.30.0070.70713.71
5.1.20.0070.71013.96
5.1.10.0770.68313.57
5.1.00.0000.64713.55
5.0.50.0070.71012.40
5.0.40.0000.67312.40
5.0.30.0000.59712.40
5.0.20.0000.83312.40
5.0.10.0030.79712.40
5.0.00.1000.75312.40
4.4.90.0000.65012.40
4.4.80.0100.67712.40
4.4.70.0030.67712.40
4.4.60.0000.59312.40
4.4.50.0000.58712.40
4.4.40.0070.69312.40
4.4.30.0030.60312.40
4.4.20.0030.79012.40
4.4.10.0100.70012.40
4.4.00.0000.71012.40
4.3.110.0000.60012.40
4.3.100.0030.77712.40
4.3.90.0000.82012.40
4.3.80.0030.71712.40
4.3.70.0030.70012.40
4.3.60.0070.72012.40
4.3.50.0000.71312.40
4.3.40.0000.62012.40
4.3.30.0030.71312.40
4.3.20.0000.68712.40
4.3.10.0000.70012.40
4.3.00.0000.61012.40

preferences:
43.03 ms | 400 KiB | 5 Q