3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrVal = array ( '22' => array( '0' => 60, '29' => array( '0' => 6 ), '30' => array ( '0' => 5, '1' => 8 ), '31' => array ( '0' => 7, '1' => 9, '2' => 14, '3' => 26 ) ), '23' => 12, '35' => 10, '42' => 22 ); //60[6][5||8][7||9||14||26]|12|10|22 echo $constructedValue = implodeMultiArr($arrVal); function implodeMultiArr($arrVal) { foreach ( $arrVal as $key=>$value ) { if ( is_array($value) ) { $constructedValue .= "[".implodeMultiArr($value)."]"; } else { $constructedValue .= $value."||"; } } }

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.0110.01116.63
8.3.50.0100.00618.08
8.3.40.0100.00718.57
8.3.30.0000.01819.09
8.3.20.0100.00320.14
8.3.10.0040.00421.91
8.3.00.0030.00619.22
8.2.180.0040.01816.50
8.2.170.0090.00622.96
8.2.160.0040.01119.12
8.2.150.0040.00424.18
8.2.140.0070.00724.66
8.2.130.0050.00226.16
8.2.120.0060.00318.05
8.2.110.0100.00022.26
8.2.100.0040.00817.75
8.2.90.0060.00319.09
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0040.00417.93
8.2.50.0100.00018.07
8.2.40.0030.00618.03
8.2.30.0000.00718.19
8.2.20.0040.00417.87
8.2.10.0040.00418.20
8.2.00.0000.00717.85
8.1.280.0190.00325.92
8.1.270.0030.00620.73
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00323.83
8.1.230.0070.00418.75
8.1.220.0070.00017.78
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0070.00320.39
8.1.160.0070.00022.06
8.1.150.0000.00718.84
8.1.140.0040.00417.50
8.1.130.0000.00717.79
8.1.120.0030.00517.38
8.1.110.0040.00417.43
8.1.100.0070.00017.46
8.1.90.0000.00717.46
8.1.80.0070.00017.49
8.1.70.0030.00317.33
8.1.60.0000.00817.60
8.1.50.0000.00817.55
8.1.40.0050.00217.39
8.1.30.0060.00317.55
8.1.20.0040.00417.64
8.1.10.0050.00317.43
8.1.00.0040.00417.45
8.0.300.0030.00518.77
8.0.290.0070.00016.75
8.0.280.0070.00018.31
8.0.270.0030.00317.30
8.0.260.0030.00317.16
8.0.250.0000.00717.05
8.0.240.0000.00717.08
8.0.230.0000.00716.98
8.0.220.0030.00316.94
8.0.210.0070.00316.94
8.0.200.0000.00616.93
8.0.190.0000.00717.00
8.0.180.0070.00017.01
8.0.170.0080.00016.85
8.0.160.0050.00316.91
8.0.150.0040.00417.00
8.0.140.0070.00016.96
8.0.130.0000.00613.37
8.0.120.0040.00416.93
8.0.110.0040.00416.93
8.0.100.0030.00316.79
8.0.90.0050.00216.82
8.0.80.0090.00916.94
8.0.70.0050.00316.92
8.0.60.0000.00816.82
8.0.50.0000.00716.77
8.0.30.0090.01517.22
8.0.20.0090.01417.40
8.0.10.0000.00717.04
8.0.00.0070.00916.92
7.4.330.0050.00015.03
7.4.320.0030.00316.58
7.4.300.0060.00016.44
7.4.290.0000.00716.50
7.4.280.0050.00316.54
7.4.270.0080.00016.55
7.4.260.0030.00316.48
7.4.250.0000.00816.56
7.4.240.0060.00216.58
7.4.230.0070.00016.40
7.4.220.0150.00316.65
7.4.210.0070.00716.64
7.4.200.0050.00216.57
7.4.160.0060.00916.61
7.4.150.0060.01217.40
7.4.140.0120.01017.86
7.4.130.0110.00616.60
7.4.120.0090.00916.60
7.4.110.0100.00916.60
7.4.100.0090.01216.54
7.4.90.0060.01816.45
7.4.80.0120.01216.73
7.4.70.0140.00616.46
7.4.60.0090.00616.47
7.4.50.0000.00416.61
7.4.40.0160.00016.46
7.4.30.0170.00016.57
7.4.00.0070.00814.71
7.3.330.0000.00613.23
7.3.320.0130.00013.33
7.3.310.0030.00316.37
7.3.300.0070.00016.25
7.3.290.0000.00716.38
7.3.280.0070.01016.31
7.3.270.0110.00717.40
7.3.260.0110.00716.71
7.3.250.0140.00616.55
7.3.240.0040.01916.40
7.3.230.0200.02116.41
7.3.210.0130.00316.50
7.3.200.0100.00719.39
7.3.190.0030.01316.36
7.3.180.0060.00916.61
7.3.170.0160.00616.63
7.3.160.0100.00716.54
7.3.120.0060.01214.88
7.3.110.0110.00715.01
7.3.100.0070.00714.71
7.3.90.0100.00315.16
7.3.80.0110.00415.01
7.3.70.0030.01014.92
7.3.60.0060.00314.75
7.3.50.0060.00615.04
7.3.40.0030.00914.86
7.3.30.0070.00414.92
7.3.20.0060.00916.44
7.3.10.0070.00816.42
7.3.00.0040.01116.60
7.2.330.0090.01216.57
7.2.320.0000.01616.80
7.2.310.0120.00616.58
7.2.300.0030.01416.76
7.2.290.0160.00616.56
7.2.250.0030.01715.26
7.2.240.0060.01514.97
7.2.230.0060.01315.26
7.2.220.0030.01015.04
7.2.210.0130.00315.13
7.2.200.0060.00914.95
7.2.190.0100.00314.93
7.2.180.0030.00915.09
7.2.170.0070.00715.12
7.2.130.0050.00716.57
7.2.120.0110.00616.73
7.2.110.0070.01216.66
7.2.100.0090.01016.67
7.2.90.0080.01116.46
7.2.80.0050.01116.62
7.2.70.0220.00516.84
7.2.60.0070.01116.72
7.2.50.0130.00316.76
7.2.40.0110.00716.58
7.2.30.0140.00716.81
7.2.20.0070.00916.69
7.2.10.0050.01116.67
7.2.00.0060.00817.76
7.1.330.0090.00615.79
7.1.320.0080.00815.98
7.1.310.0030.01415.75
7.1.300.0040.01115.46
7.1.290.0040.00415.75
7.1.280.0040.00415.73
7.1.270.0120.00315.61
7.1.260.0000.00916.01
7.1.250.0090.00915.58
7.1.100.0140.00318.42
7.1.70.0000.00717.30
7.1.60.0070.01719.50
7.1.50.0070.01316.92
7.1.00.0100.07022.50
7.0.200.0780.00714.80
7.0.140.0030.07322.02
7.0.60.0030.04019.85
7.0.50.0070.04717.85
7.0.40.0070.06320.04
7.0.30.0270.07020.15
7.0.20.0200.05020.25
7.0.10.0270.07720.23
7.0.00.0100.07320.24
5.6.280.0000.07720.79
5.6.210.0000.06020.50
5.6.200.0030.06018.21
5.6.190.0130.03320.58
5.6.180.0170.04020.44
5.6.170.0370.05720.55
5.6.160.0000.04320.61
5.6.150.0000.04718.15
5.6.140.0070.05718.13
5.6.130.0130.04718.14
5.6.120.0000.04721.02
5.6.110.0100.08021.09
5.6.100.0030.08721.09
5.6.90.0030.09021.01
5.6.80.0070.04720.51
5.6.70.0330.07720.38
5.5.350.0170.07720.30
5.5.340.0030.07317.99
5.5.330.0070.05020.13
5.5.320.0100.07320.13
5.5.310.0300.08020.36
5.5.300.0070.08017.95
5.5.290.0200.06718.07
5.5.280.0100.07720.91
5.5.270.0070.05720.77
5.5.260.0100.08320.87
5.5.250.0130.07720.71
5.5.240.0070.04320.01
5.4.450.0830.04019.59
5.4.440.0800.06019.31
5.4.430.0930.06019.68
5.4.420.1000.05319.64
5.4.410.0800.06719.21
5.4.400.0270.05318.84
5.4.390.0330.05018.75
5.4.380.0270.06318.59
5.4.370.0300.05318.75
5.4.360.0330.04718.79
5.4.350.0400.06718.75
5.4.340.0270.05718.76
5.4.320.0230.06318.76
5.4.310.0370.06018.78
5.4.300.0430.05018.69
5.4.290.0300.05318.82
5.4.280.0400.04718.55
5.4.270.0370.05018.84
5.4.260.0370.07318.54
5.4.250.0270.06718.53
5.4.240.0230.06018.75
5.4.230.0370.04718.84
5.4.220.0330.05718.64
5.4.210.0370.04318.73
5.4.200.0400.04716.65
5.4.190.0430.04318.55
5.4.180.0530.06018.75
5.4.170.0300.05318.45
5.4.160.0200.06318.73
5.4.150.0330.05718.76
5.4.140.0300.05316.23
5.4.130.0330.04716.43
5.4.120.0300.05016.32
5.4.110.0270.05316.17
5.4.100.0330.04716.20
5.4.90.0300.05016.44
5.4.80.0330.05016.18
5.4.70.0300.05016.29
5.4.60.0270.05316.42
5.4.50.0330.04316.23
5.4.40.0230.08016.25
5.4.30.0370.05016.26
5.4.20.0330.06016.14
5.4.10.0300.05316.28
5.4.00.0300.05315.77
5.3.290.0330.05314.71
5.3.280.0300.05314.78
5.3.270.0370.04714.59
5.3.260.0270.05714.65
5.3.250.0500.07014.81
5.3.240.0270.05714.66
5.3.230.0330.05714.82
5.3.220.0500.05714.78
5.3.210.0200.06314.75
5.3.200.0300.05014.67
5.3.190.0370.05014.67
5.3.180.0330.05014.62
5.3.170.0300.06014.55
5.3.160.0330.07014.62
5.3.150.0300.05314.59
5.3.140.0300.05014.69
5.3.130.0270.07014.59
5.3.120.0330.05714.58
5.3.110.0330.05314.72
5.3.100.0300.06714.26
5.3.90.0370.05314.00
5.3.80.0370.06014.00
5.3.70.0370.06314.07
5.3.60.0300.05014.21
5.3.50.0270.05013.98
5.3.40.0300.05313.97
5.3.30.0500.03714.01
5.3.20.0330.04313.89
5.3.10.0330.04713.64
5.3.00.0370.04313.75
5.2.170.0200.05011.14
5.2.160.0330.03311.15
5.2.150.0330.03011.36
5.2.140.0300.04011.13
5.2.130.0330.03011.14
5.2.120.0270.03711.21
5.2.110.0230.03711.22
5.2.100.0230.04011.23
5.2.90.0230.04011.15
5.2.80.0230.04311.17
5.2.70.0270.05311.20
5.2.60.0370.05711.07
5.2.50.0200.04311.02
5.2.40.0170.04011.10
5.2.30.0270.04311.07
5.2.20.0270.03310.95
5.2.10.0200.03710.88
5.2.00.0200.04010.76
5.1.60.0170.03710.07
5.1.50.0230.03010.07
5.1.40.0130.04010.02
5.1.30.0170.03710.31
5.1.20.0170.03710.34
5.1.10.0200.03310.19
5.1.00.0230.03310.26
5.0.50.0100.0338.68
5.0.40.0200.0278.54
5.0.30.0070.0508.37
5.0.20.0100.0308.38
5.0.10.0070.0308.38
5.0.00.0130.0408.29
4.4.90.0070.0275.93
4.4.80.0130.0205.88
4.4.70.0200.0135.97
4.4.60.0130.0175.90
4.4.50.0100.0205.97
4.4.40.0100.0335.90
4.4.30.0100.0235.90
4.4.20.0100.0235.98
4.4.10.0100.0236.07
4.4.00.0130.0405.91
4.3.110.0130.0205.83
4.3.100.0130.0305.85
4.3.90.0100.0235.89
4.3.80.0130.0375.80
4.3.70.0100.0275.77
4.3.60.0100.0205.80
4.3.50.0100.0235.80
4.3.40.0100.0405.79
4.3.30.0000.0274.65
4.3.20.0070.0204.57
4.3.10.0100.0174.53
4.3.00.0130.0207.59

preferences:
39.43 ms | 400 KiB | 5 Q