3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( array('f1', 'f2', 'f3'), array('s1', 's2', 's3', 's4', 's5'), array('t1', 't2', 't3', 't4', 't5', 't6', 't7', 't8', 't9', 't10', 't11', 't12') ); $max = 12; $each = $max / count($data); $result = array(); foreach ($data as $set) { $got = 0; while (count($set) > 0 && $got <= $max) { $result[] = array_shift($set); } } print_r($result);

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.0140.00016.50
8.3.50.0090.00922.05
8.3.40.0070.00718.84
8.3.30.0100.01019.08
8.3.20.0020.00520.36
8.3.10.0080.00023.48
8.3.00.0050.00319.25
8.2.180.0070.01418.41
8.2.170.0040.01122.96
8.2.160.0130.00720.52
8.2.150.0000.00724.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0070.00022.11
8.2.110.0060.00322.21
8.2.100.0090.00317.75
8.2.90.0080.00019.22
8.2.80.0000.00817.97
8.2.70.0050.00517.48
8.2.60.0040.00617.89
8.2.50.0040.00418.07
8.2.40.0090.00020.07
8.2.30.0050.00218.07
8.2.20.0000.00817.67
8.2.10.0000.00718.08
8.2.00.0060.00317.75
8.1.280.0090.00625.92
8.1.270.0040.00423.71
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0030.00722.60
8.1.230.0080.00417.42
8.1.220.0000.00717.77
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0030.00618.56
8.1.160.0000.00721.89
8.1.150.0020.00518.65
8.1.140.0070.00017.36
8.1.130.0040.00417.74
8.1.120.0000.00817.48
8.1.110.0080.00317.45
8.1.100.0000.00817.43
8.1.90.0000.00717.35
8.1.80.0050.00317.39
8.1.70.0020.00517.43
8.1.60.0090.00017.59
8.1.50.0060.00317.46
8.1.40.0040.00417.53
8.1.30.0000.00817.58
8.1.20.0030.00617.68
8.1.10.0040.00417.54
8.1.00.0000.00717.43
8.0.300.0070.00018.77
8.0.290.0070.00017.05
8.0.280.0000.00718.32
8.0.270.0000.00717.25
8.0.260.0030.00317.19
8.0.250.0030.00316.91
8.0.240.0000.00817.00
8.0.230.0000.00717.02
8.0.220.0000.00716.83
8.0.210.0040.00416.85
8.0.200.0040.00416.94
8.0.190.0060.00316.99
8.0.180.0080.00016.93
8.0.170.0080.00016.96
8.0.160.0040.00416.89
8.0.150.0030.00316.73
8.0.140.0070.00016.80
8.0.130.0060.00013.32
8.0.120.0000.00816.71
8.0.110.0040.00416.91
8.0.100.0040.00316.86
8.0.90.0040.00416.73
8.0.80.0060.00916.88
8.0.70.0070.00016.69
8.0.60.0040.00416.87
8.0.50.0030.00416.70
8.0.30.0120.00716.89
8.0.20.0040.01417.40
8.0.10.0000.00716.83
8.0.00.0080.01116.84
7.4.330.0030.00315.12
7.4.320.0000.00716.53
7.4.300.0000.00716.51
7.4.290.0070.00016.55
7.4.280.0030.00316.59
7.4.270.0070.00016.52
7.4.260.0040.00416.46
7.4.250.0080.00016.59
7.4.240.0020.00516.57
7.4.230.0030.00316.47
7.4.220.0120.00316.46
7.4.210.0070.00916.52
7.4.200.0030.00316.70
7.4.190.0040.00416.57
7.4.160.0060.00916.48
7.4.150.0070.01017.40
7.4.140.0080.00817.86
7.4.130.0140.00316.45
7.4.120.0110.00616.42
7.4.110.0160.00316.61
7.4.100.0120.00616.59
7.4.90.0110.00716.64
7.4.80.0060.01519.39
7.4.70.0070.01016.53
7.4.60.0110.01116.25
7.4.50.0040.00416.33
7.4.40.0040.01316.34
7.4.30.0080.00816.46
7.4.00.0000.01714.84
7.3.330.0060.00013.24
7.3.320.0020.00213.18
7.3.310.0030.00316.26
7.3.300.0000.00716.36
7.3.290.0130.00716.33
7.3.280.0110.00716.35
7.3.270.0030.01417.40
7.3.260.0170.00716.41
7.3.250.0090.00916.35
7.3.240.0110.00716.64
7.3.230.0100.01316.43
7.3.210.0060.01516.67
7.3.200.0070.01719.39
7.3.190.0080.01616.63
7.3.180.0030.01316.30
7.3.170.0060.00916.31
7.3.160.0030.01316.27
7.3.120.0070.01014.77
7.2.330.0200.00316.85
7.2.320.0080.00816.41
7.2.310.0040.01216.67
7.2.300.0090.00816.42
7.2.290.0120.01216.77
7.2.00.0070.00719.15
7.1.100.0000.00918.34
7.1.70.0000.00716.93
7.1.60.0090.01619.46
7.1.50.0060.01816.89
7.1.00.0030.07022.27
7.0.200.0050.00316.57
7.0.140.0030.07322.21
7.0.60.0070.08719.98
7.0.50.0030.08317.95
7.0.40.0170.07720.13
7.0.30.0400.05320.26
7.0.20.0230.08020.19
7.0.10.0030.08020.13
7.0.00.0100.08720.15
5.6.280.0030.07321.02
5.6.210.0030.04020.46
5.6.200.0000.04318.12
5.6.190.0100.06320.57
5.6.180.0200.04020.41
5.6.170.0330.07320.52
5.6.160.0070.07020.54
5.6.150.0070.05718.25
5.6.140.0100.07018.14
5.6.130.0070.07018.17
5.6.120.0000.04320.96
5.6.110.0070.06320.97
5.6.100.0030.04020.96
5.6.90.0130.07721.10
5.6.80.0070.04320.37
5.5.350.0100.07020.41
5.5.340.0000.06717.94
5.5.330.0070.03720.41
5.5.320.0370.07320.29
5.5.310.0300.06020.32
5.5.300.0070.05018.14
5.5.290.0030.06018.02
5.5.280.0030.08020.87
5.5.270.0000.04720.88
5.5.260.0000.04320.97
5.5.250.0030.04020.68
5.5.240.4130.03720.26
5.4.450.0570.07319.71
5.4.440.0730.06019.70
5.4.430.0400.05019.70
5.4.420.0730.06319.63
5.4.410.0700.05719.57
5.4.400.0430.05019.12
5.4.390.0130.05719.01
5.4.380.0200.05318.62
5.4.370.0030.04318.70
5.4.360.0070.04718.59
5.4.350.0110.03612.01
5.4.340.0080.03412.00
5.4.320.0060.03912.49
5.4.310.0060.03812.49
5.4.300.0110.04612.49
5.4.290.0070.04012.48
5.4.280.0100.05012.38
5.4.270.0050.04912.39
5.4.260.0090.05212.39
5.4.250.0060.05512.38
5.4.240.0070.05312.39
5.4.230.0050.05712.38
5.4.220.0110.05112.38
5.4.210.0090.05212.38
5.4.200.0090.05612.38
5.4.190.0140.05612.38
5.4.180.0150.05612.37
5.4.170.0120.06212.38
5.4.160.0160.04912.38
5.4.150.0080.04512.38
5.4.140.0100.04912.06
5.4.130.0100.04512.05
5.4.120.0090.04812.00
5.4.110.0120.04512.00
5.4.100.0040.04112.00
5.4.90.0070.04012.00
5.4.80.0080.03712.00
5.4.70.0070.04112.00
5.4.60.0060.03912.00
5.4.50.0040.04212.00
5.4.40.0050.03911.98
5.4.30.0070.03811.98
5.4.20.0100.04311.98
5.4.10.0110.04511.98
5.4.00.0100.04711.48
5.3.290.0070.04512.80
5.3.280.0070.05012.71
5.3.270.0090.03912.73
5.3.260.0090.03912.72
5.3.250.0100.05112.72
5.3.240.0060.05412.72
5.3.230.0090.05112.71
5.3.220.0080.04412.68
5.3.210.0060.04812.68
5.3.200.0100.03812.68
5.3.190.0120.04712.68
5.3.180.0100.04912.67
5.3.170.0060.04412.67
5.3.160.0080.03812.68
5.3.150.0080.03612.68
5.3.140.0060.03712.66
5.3.130.0070.03912.66
5.3.120.0060.04212.66
5.3.110.0090.03612.66
5.3.100.0090.03612.11
5.3.90.0110.03812.09
5.3.80.0060.04012.09
5.3.70.0050.03912.09
5.3.60.0110.03212.07
5.3.50.0060.03612.02
5.3.40.0080.03412.02
5.3.30.0060.03911.98
5.3.20.0060.04211.75
5.3.10.0080.05511.72
5.3.00.0080.03711.71
5.2.170.0050.0389.21
5.2.160.0120.0379.22
5.2.150.0070.0409.21
5.2.140.0050.0469.21
5.2.130.0040.0349.17
5.2.120.0070.0419.17
5.2.110.0060.0319.18
5.2.100.0060.0299.18
5.2.90.0060.0379.18
5.2.80.0080.0429.17
5.2.70.0060.0309.17
5.2.60.0050.0309.13
5.2.50.0060.0289.09
5.2.40.0040.0319.07
5.2.30.0060.0319.04
5.2.20.0050.0339.04
5.2.10.0040.0308.94
5.2.00.0050.0328.80
5.1.60.0070.0258.08
5.1.50.0040.0288.07
5.1.40.0070.0238.05
5.1.30.0030.0288.40
5.1.20.0000.0328.43
5.1.10.0030.0278.15
5.1.00.0050.0318.15
5.0.50.0060.0196.63
5.0.40.0040.0196.49
5.0.30.0050.0306.31
5.0.20.0050.0186.27
5.0.10.0040.0216.25
5.0.00.0050.0296.25
4.4.90.0070.0134.78
4.4.80.0020.0194.76
4.4.70.0030.0164.75
4.4.60.0030.0164.76
4.4.50.0010.0194.77
4.4.40.0050.0294.71
4.4.30.0040.0164.76
4.4.20.0030.0174.84
4.4.10.0010.0174.85
4.4.00.0050.0234.76
4.3.110.0020.0184.67
4.3.100.0000.0184.67
4.3.90.0010.0174.64
4.3.80.0050.0244.58
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0050.0254.63
4.3.40.0040.0334.54
4.3.30.0050.0203.29
4.3.20.0030.0163.28
4.3.10.0010.0243.23
4.3.00.0070.0207.44

preferences:
54.63 ms | 401 KiB | 5 Q