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 teste($arr) { $newArr = array(); foreach( $arr as $k => $v ) { if( is_array($v) && count($v) == 1 ) { var_dump($v); $newArr[$k] = $v; } elseif( is_array($v) && count($v) > 1 ) { //$newArr = array_merge($newArr, teste($v)); } } return $newArr; } $rst = teste($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.0150.00716.63
8.3.50.0080.00616.35
8.3.40.0140.00418.70
8.3.30.0160.00018.68
8.3.20.0070.00720.03
8.3.10.0030.00621.79
8.3.00.0030.00519.34
8.2.180.0160.00318.41
8.2.170.0090.00622.96
8.2.160.0060.01020.34
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00020.94
8.2.120.0040.00426.35
8.2.110.0000.01021.04
8.2.100.0060.00618.22
8.2.90.0080.00019.30
8.2.80.0040.00418.04
8.2.70.0060.00317.75
8.2.60.0040.00418.04
8.2.50.0090.00018.10
8.2.40.0040.00420.47
8.2.30.0000.00820.97
8.2.20.0040.00418.20
8.2.10.0050.00318.14
8.2.00.0000.00718.15
8.1.280.0160.00625.92
8.1.270.0050.00322.20
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00623.97
8.1.230.0040.00719.10
8.1.220.0030.00617.78
8.1.210.0080.00018.77
8.1.200.0030.00717.35
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0040.00418.64
8.1.160.0030.00518.96
8.1.150.0040.00420.55
8.1.140.0040.00419.51
8.1.130.0070.00418.83
8.1.120.0090.00017.56
8.1.110.0000.00817.44
8.1.100.0040.00417.39
8.1.90.0090.00017.48
8.1.80.0030.00517.54
8.1.70.0030.00617.36
8.1.60.0030.00517.63
8.1.50.0000.00817.55
8.1.40.0030.00617.46
8.1.30.0050.00317.66
8.1.20.0080.00017.66
8.1.10.0000.00817.55
8.1.00.0000.00717.44
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0050.00318.48
8.0.270.0000.00717.28
8.0.260.0030.00316.81
8.0.250.0030.00316.96
8.0.240.0050.00216.98
8.0.230.0000.00716.90
8.0.220.0020.00516.89
8.0.210.0030.00316.83
8.0.200.0070.00016.87
8.0.190.0060.00317.00
8.0.180.0110.00016.95
8.0.170.0030.00317.01
8.0.160.0000.00716.95
8.0.150.0000.00716.88
8.0.140.0000.00716.77
8.0.130.0030.00613.43
8.0.120.0030.00516.84
8.0.110.0070.00016.90
8.0.100.0000.00816.85
8.0.90.0000.00816.96
8.0.80.0000.01816.94
8.0.70.0000.00816.78
8.0.60.0030.00516.91
8.0.50.0040.00416.88
8.0.30.0120.00817.18
8.0.20.0110.01017.40
8.0.10.0040.00416.90
8.0.00.0150.00316.52
7.4.330.0050.00015.55
7.4.320.0030.00316.68
7.4.300.0060.00016.55
7.4.290.0070.00016.62
7.4.280.0000.00716.52
7.4.270.0030.00316.65
7.4.260.0040.00416.54
7.4.250.0000.00716.49
7.4.240.0040.00416.67
7.4.230.0030.00316.50
7.4.220.0120.00616.53
7.4.210.0040.01016.57
7.4.200.0040.00416.71
7.4.160.0160.00316.63
7.4.150.0120.00417.40
7.4.140.0130.00717.86
7.4.130.0100.01016.50
7.4.120.0130.00916.59
7.4.110.0140.01116.61
7.4.100.0070.01116.41
7.4.90.0070.01016.49
7.4.80.0030.01419.39
7.4.70.0100.00816.69
7.4.60.0140.00316.44
7.4.50.0120.00016.34
7.4.40.0100.00716.48
7.4.30.0190.00016.55
7.4.00.0040.00715.13
7.3.330.0050.00013.39
7.3.320.0050.00013.40
7.3.310.0030.00316.49
7.3.300.0070.00016.26
7.3.290.0070.00016.23
7.3.280.0090.00916.41
7.3.270.0130.01317.40
7.3.260.0130.00916.44
7.3.250.0150.00516.50
7.3.240.0060.01116.45
7.3.230.0110.00716.44
7.3.210.0090.00916.58
7.3.200.0060.01016.40
7.3.190.0090.00916.27
7.3.180.0100.00716.59
7.3.170.0070.01116.64
7.3.160.0090.00716.39
7.2.330.0180.00716.70
7.2.320.0130.00516.70
7.2.310.0090.01516.64
7.2.300.0060.01216.64
7.2.290.0150.00316.88
7.2.80.0070.00316.53
7.2.60.0110.00417.05
7.2.00.0090.00319.52
7.1.200.0110.00015.87
7.1.100.0000.01418.28
7.1.70.0080.00417.29
7.1.60.0200.00635.14
7.1.50.0130.01334.92
7.1.40.0190.00634.49
7.1.30.0190.00634.54
7.1.20.0170.00934.33
7.1.10.0040.00816.52
7.1.00.0060.00616.64
7.0.200.0030.00916.71
7.0.190.0080.00416.73
7.0.180.0060.00616.18
7.0.170.0000.01216.37
7.0.160.0030.00916.20
7.0.150.0060.00616.30
7.0.140.0060.00616.41
7.0.130.0030.00916.48
7.0.120.0030.00816.61
7.0.110.0060.00616.34
7.0.100.0060.00616.15
7.0.90.0040.00816.36
7.0.80.0030.00916.51
7.0.70.0000.01316.32
7.0.60.0060.00616.26
7.0.50.0000.01116.32
7.0.40.0030.01116.44
7.0.30.0060.00616.60
7.0.20.0030.00816.38
7.0.10.0090.00316.68
7.0.00.0040.00816.35

preferences:
40.73 ms | 400 KiB | 5 Q