3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $arr["Intercambio"]["0"]["Versao"]["0"] = "2"; $arr["Intercambio"]["0"]["TipoIdentificacaoRemetente"]["0"] = "cnpj"; $arr["Intercambio"]["0"]["IdentificacaoRemetente"]["0"] = "02089969001420"; $arr["TextosCodificados"]["TextoCodificado"]["0"]["QualificadorAssunto"]["0"] = "ALL"; $arr["TextosCodificados"]["TextoCodificado"]["0"]["Texto"] = "Vnd mer.adq.rec.ter.op.mer.sj.rg.sub.trb.cnd.sub.t"; $arr["TextosCodificados"]["TextoCodificado"]["1"]["QualificadorAssunto"]["0"] = "AAI"; $arr["TextosCodificados"]["TextoCodificado"]["1"]["Texto"] = "Protocolo ICMS 18809 e 1192012 ICMS Retido Art 313W"; $arr["TextosCodificados"]["TextoCodificado"]["2"]["QualificadorAssunto"]["0"] = "IVN"; $arr["TextosCodificados"]["TextoCodificado"]["2"]["Texto"] = "Pedido Interno:0000283278 ID da Carga:"; function recursive_show_array($arr, $tmp = array()) { foreach($arr as $k => $value) { if(is_array($value)) { $tmp = recursive_show_array($value, $tmp); } else { $tmp[$k] = $value; } } var_dump($tmp);die; return $tmp; } $rst = recursive_show_array($arr); //var_dump($rst);

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.0120.00616.48
8.3.50.0100.00316.37
8.3.40.0040.01518.82
8.3.30.0150.00018.71
8.3.20.0000.00820.07
8.3.10.0080.00023.50
8.3.00.0040.00419.26
8.2.180.0140.00318.54
8.2.170.0090.00622.96
8.2.160.0130.00420.53
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00421.00
8.2.120.0030.00526.35
8.2.110.0030.00621.13
8.2.100.0000.01217.91
8.2.90.0090.00019.15
8.2.80.0000.00818.03
8.2.70.0070.00317.63
8.2.60.0090.00018.05
8.2.50.0040.00418.10
8.2.40.0080.00020.59
8.2.30.0050.00321.16
8.2.20.0040.00418.13
8.2.10.0030.00518.03
8.2.00.0000.00818.15
8.1.280.0140.00725.92
8.1.270.0050.00323.90
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.00323.92
8.1.230.0110.00019.02
8.1.220.0000.00817.78
8.1.210.0030.00518.77
8.1.200.0050.00517.48
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0040.00418.49
8.1.160.0040.00419.09
8.1.150.0070.00020.67
8.1.140.0000.00719.57
8.1.130.0030.00318.93
8.1.120.0070.00017.51
8.1.110.0070.00017.52
8.1.100.0040.00417.48
8.1.90.0060.00317.43
8.1.80.0070.00017.43
8.1.70.0000.00717.54
8.1.60.0030.00617.65
8.1.50.0040.00417.51
8.1.40.0000.00817.59
8.1.30.0040.00417.70
8.1.20.0000.00817.78
8.1.10.0040.00417.62
8.1.00.0040.00417.41
8.0.300.0000.00818.77
8.0.290.0000.00816.75
8.0.280.0030.00318.38
8.0.270.0030.00317.26
8.0.260.0030.00317.02
8.0.250.0000.00717.06
8.0.240.0070.00016.94
8.0.230.0030.00317.08
8.0.220.0030.00316.95
8.0.210.0000.00716.96
8.0.200.0040.00417.04
8.0.190.0040.00417.08
8.0.180.0100.00016.94
8.0.170.0040.00417.02
8.0.160.0080.00016.96
8.0.150.0070.00016.93
8.0.140.0040.00416.84
8.0.130.0030.00313.38
8.0.120.0040.00416.89
8.0.110.0000.00717.03
8.0.100.0070.00016.81
8.0.90.0000.00916.98
8.0.80.0060.00916.97
8.0.70.0030.00517.03
8.0.60.0030.00516.97
8.0.50.0040.00417.02
8.0.30.0040.01517.20
8.0.20.0110.01217.44
8.0.10.0040.00417.13
8.0.00.0090.00916.88
7.4.330.0020.00215.55
7.4.320.0030.00316.56
7.4.300.0000.00616.64
7.4.290.0030.00616.64
7.4.280.0000.00816.63
7.4.270.0030.00316.55
7.4.260.0000.00716.54
7.4.250.0040.00416.53
7.4.240.0070.00016.70
7.4.230.0030.00316.66
7.4.220.0040.01216.59
7.4.210.0060.00816.56
7.4.200.0050.00216.29
7.4.160.0060.00916.51
7.4.150.0150.01517.40
7.4.140.0090.01117.86
7.4.130.0130.00616.70
7.4.120.0130.00916.60
7.4.110.0070.01116.75
7.4.100.0000.02016.59
7.4.90.0040.01516.61
7.4.80.0090.01219.39
7.4.70.0030.01316.59
7.4.60.0080.01216.43
7.4.50.0150.00416.61
7.4.40.0060.01016.54
7.4.30.0070.01116.46
7.4.00.0090.00615.07
7.3.330.0050.00013.43
7.3.320.0050.00013.29
7.3.310.0070.00016.46
7.3.300.0030.00316.39
7.3.290.0050.00216.38
7.3.280.0090.00916.44
7.3.270.0090.00917.40
7.3.260.0130.00816.51
7.3.250.0090.01016.44
7.3.240.0090.00916.60
7.3.230.0080.00816.70
7.3.210.0100.00716.49
7.3.200.0060.01016.49
7.3.190.0110.01116.50
7.3.180.0060.00916.74
7.3.170.0110.00616.46
7.3.160.0080.00816.50
7.2.330.0060.01216.66
7.2.320.0140.00316.77
7.2.310.0030.02016.77
7.2.300.0100.00716.73
7.2.290.0090.01216.61
7.2.60.0040.00416.73
7.1.200.0070.00715.60
7.1.100.0040.00717.98
7.1.70.0040.00717.32
7.1.60.0070.01735.18
7.1.50.0130.01034.88
7.1.40.0160.00934.51
7.1.30.0160.01034.43
7.1.20.0130.01334.54
7.1.10.0070.01016.52
7.1.00.0060.00816.77
7.0.200.0000.01016.52
7.0.190.0110.00016.83
7.0.180.0060.00616.33
7.0.170.0000.01316.46
7.0.160.0090.00316.18
7.0.150.0060.00916.18
7.0.140.0030.01316.27
7.0.130.0030.00916.62
7.0.120.0030.01016.34
7.0.110.0000.01216.44
7.0.100.0000.01316.14
7.0.90.0000.01116.55
7.0.80.0030.00916.40
7.0.70.0060.01016.28
7.0.60.0000.01216.15
7.0.50.0120.00016.48
7.0.40.0000.01216.41
7.0.30.0000.01216.58
7.0.20.0090.00316.38
7.0.10.0080.00416.50
7.0.00.0040.00816.51

preferences:
46.51 ms | 400 KiB | 5 Q