3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input_array = array('a', 'b', 'c', 'd', 'e'); print_r(array_chunk($input_array, 2)); print_r(array_chunk($input_array, 2, true));

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.0120.00318.73
8.3.30.0070.00718.97
8.3.20.0040.00420.31
8.3.10.0080.00522.64
8.3.00.0040.01020.53
8.2.170.0140.00422.96
8.2.160.0130.00320.53
8.2.150.0050.00324.18
8.2.140.0060.00622.59
8.2.130.0120.00623.21
8.2.120.0070.00620.42
8.2.110.0110.00420.81
8.2.100.0070.00818.50
8.2.90.0090.00618.30
8.2.80.0080.00318.67
8.2.70.0090.00533.61
8.2.60.0090.00433.56
8.2.50.0070.01033.55
8.2.40.0070.00733.92
8.2.30.0080.00630.46
8.2.20.0080.00530.73
8.2.10.0090.00430.41
8.2.00.0070.00830.38
8.1.270.0120.00722.95
8.1.260.0130.00224.21
8.1.250.0070.00525.07
8.1.240.0030.00819.75
8.1.230.0050.00419.34
8.1.220.0060.00918.34
8.1.210.0090.00319.06
8.1.200.0070.00933.42
8.1.190.0100.00733.75
8.1.180.0090.00433.57
8.1.170.0060.01033.52
8.1.160.0050.00731.50
8.1.150.0120.00531.18
8.1.140.0120.00130.14
8.1.130.0040.00830.19
8.1.120.0080.00528.34
8.1.110.0100.00428.06
8.1.100.0110.00428.35
8.1.90.0070.00728.08
8.1.80.0090.00526.56
8.1.70.0070.00726.55
8.1.60.0070.00725.49
8.1.50.0100.00625.42
8.1.40.0100.00523.90
8.1.30.0110.00423.53
8.1.20.0100.00423.50
8.1.10.0080.00623.26
8.1.00.0080.00623.21
8.0.300.0030.00518.55
8.0.290.0090.00432.86
8.0.280.0070.00429.91
8.0.270.0060.00529.73
8.0.260.0110.00229.61
8.0.250.0100.00327.56
8.0.240.0110.00327.55
8.0.230.0080.00527.61
8.0.220.0090.00427.44
8.0.210.0080.00525.97
8.0.200.0090.00426.04
8.0.190.0090.00524.88
8.0.180.0090.00424.87
8.0.170.0090.00423.26
8.0.160.0090.00522.62
8.0.150.0100.00322.76
8.0.140.0080.00522.59
8.0.130.0070.00622.22
8.0.120.0080.00522.65
8.0.110.0080.00422.79
8.0.100.0080.00622.63
8.0.90.0090.00522.64
8.0.80.0100.00322.82
8.0.70.0070.00522.77
8.0.60.0070.00622.59
8.0.50.0090.00422.55
8.0.30.0090.00621.55
8.0.20.0080.00621.75
8.0.10.0090.00521.99
8.0.00.0070.00821.53
7.4.330.0080.00423.87
7.4.320.0100.00627.22
7.4.300.0100.00525.65
7.4.290.0070.00524.55
7.4.280.0080.00522.32
7.4.270.0100.00422.28
7.4.260.0090.00522.35
7.4.250.0100.00422.35
7.4.240.0100.00421.93
7.4.230.0120.00322.25
7.4.220.0120.00522.51
7.4.210.0110.00621.44
7.4.200.0110.00522.35
7.4.190.0130.00522.35
7.4.180.0100.00722.36
7.4.160.0110.00621.45
7.4.150.0090.00621.42
7.4.140.0110.00520.96
7.4.130.0100.00720.65
7.4.120.0110.00520.35
7.4.110.0100.00620.65
7.4.100.0100.00620.77
7.4.90.0100.00420.37
7.4.80.0100.00620.24
7.4.70.0090.00720.07
7.4.60.0110.00520.24
7.4.50.0100.00720.09
7.4.40.0110.00620.45
7.4.30.0080.00820.20
7.4.20.0090.00620.36
7.4.10.0090.00520.08
7.4.00.0090.00619.79
7.3.330.0120.00321.77
7.3.320.0120.00521.74
7.3.310.0130.00422.00
7.3.300.0130.00322.04
7.3.290.0140.00621.99
7.3.280.0120.00620.45
7.3.270.0120.00621.21
7.3.260.0130.00520.74
7.3.250.0140.00520.42
7.3.240.0130.00620.76
7.3.230.0130.00620.47
7.3.220.0140.00520.75
7.3.210.0120.00620.21
7.3.200.0130.00720.16
7.3.190.0120.00619.92
7.3.180.0130.00619.96
7.3.170.0140.00419.95
7.3.160.0120.00719.92
7.3.150.0140.00520.15
7.3.140.0120.00720.16
7.3.130.0130.00619.92
7.3.120.0130.00619.62
7.3.110.0110.00719.58
7.3.100.0130.00619.57
7.3.90.0120.00619.45
7.3.80.0120.00619.34
7.3.70.0110.00719.39
7.3.60.0120.00519.42
7.3.50.0120.00619.22
7.3.40.0120.00619.20
7.3.30.0100.00719.21
7.3.20.0140.00719.70
7.3.10.0150.00719.65
7.3.00.0130.00719.66
7.2.340.0130.00620.97
7.2.330.0150.00620.24
7.2.320.0140.00620.02
7.2.310.0140.00620.00
7.2.300.0150.00620.00
7.2.290.0140.00720.03
7.2.280.0130.00820.22
7.2.270.0150.00620.24
7.2.260.0150.00620.01
7.2.250.0130.00819.70
7.2.240.0140.00719.71
7.2.230.0140.00719.88
7.2.220.0140.00819.43
7.2.210.0150.00619.38
7.2.200.0140.00719.51
7.2.190.0150.00619.57
7.2.180.0140.00919.27
7.2.170.0140.00719.32
7.2.160.0140.00719.33
7.2.150.0150.00620.04
7.2.140.0140.00820.09
7.2.130.0200.00619.88
7.2.120.0160.00819.86
7.2.110.0150.00719.95
7.2.100.0160.00719.92
7.2.90.0160.00719.91
7.2.80.0150.00619.92
7.2.70.0140.00819.89
7.2.60.0150.00719.76
7.2.50.0160.00819.76
7.2.40.0190.00819.88
7.2.30.0150.00919.87
7.2.20.0180.00719.87
7.2.10.0180.00719.91
7.2.00.0180.00819.80
7.1.330.0190.00619.72
7.1.320.0200.00719.40
7.1.310.0150.00719.38
7.1.300.0150.00719.37
7.1.290.0170.00719.40
7.1.280.0140.00719.23
7.1.270.0150.00719.27
7.1.260.0180.00619.17
7.1.250.0150.00718.89
7.1.240.0150.00818.90
7.1.230.0180.00718.96
7.1.220.0170.00818.93
7.1.210.0160.00619.00
7.1.200.0180.00518.84
7.1.190.0170.00719.00
7.1.180.0170.00518.98
7.1.170.0170.00519.01
7.1.160.0170.00718.86
7.1.150.0200.00718.89
7.1.140.0190.00618.89
7.1.130.0170.00818.85
7.1.120.0180.00618.80
7.1.110.0180.00718.74
7.1.100.0190.00718.69
7.1.90.0200.00918.66
7.1.80.0210.00718.73
7.1.70.0250.00618.44
7.1.60.0200.00720.00
7.1.50.0230.00719.99
7.1.40.0190.00720.00
7.1.30.0190.00720.02
7.1.20.0190.00620.03
7.1.10.0160.00618.48
7.1.00.0170.00618.50
7.0.330.0170.00818.58
7.0.320.0180.00718.65
7.0.310.0200.00618.63
7.0.300.0180.00618.66
7.0.290.0190.00718.55
7.0.280.0170.00718.63
7.0.270.0210.00718.46
7.0.260.0190.00718.46
7.0.250.0200.00618.56
7.0.240.0190.00618.56
7.0.230.0210.00618.45
7.0.220.0230.00618.41
7.0.210.0210.00818.37
7.0.200.0190.00618.30
7.0.190.0190.00718.21
7.0.180.0200.00718.28
7.0.170.0190.00718.29
7.0.160.0200.00718.25
7.0.150.0170.00718.24
7.0.140.0170.00718.27
7.0.130.0160.00818.37
7.0.120.0180.00718.35
7.0.110.0180.00718.21
7.0.100.0180.00718.26
7.0.90.0170.00718.18
7.0.80.0190.00718.24
7.0.70.0180.00718.24
7.0.60.0170.00718.20
7.0.50.0190.00718.23
7.0.40.0160.00718.30
7.0.30.0190.00718.31
7.0.20.0190.00818.21
7.0.10.0210.00618.30
7.0.00.0170.00718.23
5.6.400.0160.00618.73
5.6.390.0150.00718.74
5.6.380.0150.00718.50
5.6.370.0150.00618.47
5.6.360.0140.00818.54
5.6.350.0130.00818.54
5.6.340.0140.00718.58
5.6.330.0120.00718.54
5.6.320.0140.00618.55
5.6.310.0150.00718.57
5.6.300.0140.01518.78
5.6.290.0140.01418.83
5.6.280.0140.01318.83
5.6.270.0120.01318.82
5.6.260.0140.01318.82
5.6.250.0130.01418.85
5.6.240.0150.01218.88
5.6.230.0130.01518.92
5.6.220.0130.01518.84
5.6.210.0130.01518.90
5.6.200.0130.01618.90
5.6.190.0140.01318.90
5.6.180.0140.01418.88
5.6.170.0130.01518.87
5.6.160.0130.01418.89
5.6.150.0130.01518.88
5.6.140.0130.01418.85
5.6.130.0130.01418.89
5.6.120.0150.01218.83
5.6.110.0140.01418.83
5.6.100.0150.01318.86
5.6.90.0120.01418.82
5.6.80.0110.01318.71
5.6.70.0150.01218.75
5.6.60.0130.01218.78
5.6.50.0130.01318.70
5.6.40.0150.01218.74
5.6.30.0130.01318.69
5.6.20.0120.01518.68
5.6.10.0140.01218.65
5.6.00.0140.01318.69
5.5.380.0150.01418.29
5.5.370.0140.01318.33
5.5.360.0150.01318.21
5.5.350.0130.01518.27
5.5.340.0140.01318.31
5.5.330.0140.01518.32
5.5.320.0160.01318.31
5.5.310.0150.01218.34
5.5.300.0150.01418.26
5.5.290.0140.01318.25
5.5.280.0150.01418.27
5.5.270.0150.01318.26
5.5.260.0140.01418.25
5.5.250.0150.01318.29
5.5.240.0140.01218.24
5.5.230.0140.01218.20
5.5.220.0140.01318.25
5.5.210.0130.01518.23
5.5.200.0140.01418.15
5.5.190.0130.01418.13
5.5.180.0140.01518.14
5.5.170.0160.00618.26
5.5.160.0130.01418.15
5.5.150.0130.01318.14
5.5.140.0120.01418.11
5.5.130.0130.01518.12
5.5.120.0140.01218.08
5.5.110.0130.01318.08
5.5.100.0140.01118.21
5.5.90.0140.01218.16
5.5.80.0130.01418.16
5.5.70.0140.01418.15
5.5.60.0150.01318.17
5.5.50.0150.01318.14
5.5.40.0150.01218.17
5.5.30.0120.01318.18
5.5.20.0130.01318.17
5.5.10.0140.01218.13
5.5.00.0150.01218.09
5.4.450.0120.01016.37
5.4.440.0110.01316.33
5.4.430.0120.01016.36
5.4.420.0120.01116.34
5.4.410.0110.01216.33
5.4.400.0110.01116.28
5.4.390.0110.01216.28
5.4.380.0130.01016.27
5.4.370.0120.01216.29
5.4.360.0120.01216.27
5.4.350.0110.01216.27
5.4.340.0120.01116.32
5.4.330.0110.00615.88
5.4.320.0120.01016.29
5.4.310.0110.01116.26
5.4.300.0120.01116.27
5.4.290.0120.01016.30
5.4.280.0130.01016.33
5.4.270.0120.01216.30
5.4.260.0130.01016.24
5.4.250.0110.01216.22
5.4.240.0110.01316.24
5.4.230.0140.01116.27
5.4.220.0130.01116.21
5.4.210.0130.01016.23
5.4.200.0120.01116.24
5.4.190.0130.01016.21
5.4.180.0130.01116.23
5.4.170.0120.01116.25
5.4.160.0110.01216.20
5.4.150.0120.01316.24
5.4.140.0110.01115.93
5.4.130.0100.01115.95
5.4.120.0110.01216.01
5.4.110.0120.01115.96
5.4.100.0100.01115.99
5.4.90.0120.01115.98
5.4.80.0110.01016.00
5.4.70.0120.01116.03
5.4.60.0120.00916.02
5.4.50.0110.01116.00
5.4.40.0110.01115.94
5.4.30.0100.01016.01
5.4.20.0110.00916.01
5.4.10.0120.01016.04
5.4.00.0120.00915.90
5.3.290.0120.01215.97
5.3.280.0120.01115.87
5.3.270.0110.01116.00
5.3.260.0120.01216.02
5.3.250.0110.01216.01
5.3.240.0120.01115.90
5.3.230.0120.01115.95
5.3.220.0120.01215.91
5.3.210.0110.01215.89
5.3.200.0110.01215.90
5.3.190.0120.01115.94
5.3.180.0120.01216.00
5.3.170.0100.01215.98
5.3.160.0110.01115.96
5.3.150.0100.01215.98
5.3.140.0120.01116.00
5.3.130.0110.01315.95
5.3.120.0100.01415.95
5.3.110.0120.01115.92
5.3.100.0100.01315.94
5.3.90.0120.01015.88
5.3.80.0120.01015.83
5.3.70.0100.01115.82
5.3.60.0090.01315.95
5.3.50.0100.01115.86
5.3.40.0110.01015.81
5.3.30.0120.01015.89
5.3.20.0100.01115.84
5.3.10.0100.01115.74
5.3.00.0100.01215.72

preferences:
59.29 ms | 400 KiB | 5 Q