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 ) { $newArr[$k] = $v; } elseif( is_array($v) && count($v) > 1 ) { var_dump($v); $tmp = teste($v); //$newArr = array_merge($newArr, $tmp); } } 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.00316.88
8.3.50.0030.01016.59
8.3.40.0000.01418.96
8.3.30.0120.00318.65
8.3.20.0120.00320.34
8.3.10.0080.00021.73
8.3.00.0030.00619.38
8.2.180.0140.00318.33
8.2.170.0120.00622.96
8.2.160.0070.00720.44
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0040.00419.49
8.2.110.0100.00020.57
8.2.100.0070.00717.84
8.2.90.0040.00419.21
8.2.80.0040.00418.03
8.2.70.0000.00817.63
8.2.60.0060.00317.93
8.2.50.0000.00818.10
8.2.40.0070.00020.42
8.2.30.0040.00421.15
8.2.20.0040.00418.07
8.2.10.0030.00618.06
8.2.00.0040.00418.02
8.1.280.0070.01125.92
8.1.270.0070.00022.24
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0050.00523.83
8.1.230.0090.00317.71
8.1.220.0080.00017.77
8.1.210.0040.00418.77
8.1.200.0030.00717.35
8.1.190.0030.00617.22
8.1.180.0000.00818.10
8.1.170.0040.00418.53
8.1.160.0070.00018.89
8.1.150.0040.00420.58
8.1.140.0050.00319.61
8.1.130.0050.00518.88
8.1.120.0030.00717.49
8.1.110.0000.00817.38
8.1.100.0000.00817.55
8.1.90.0060.00317.39
8.1.80.0000.00717.36
8.1.70.0000.00717.47
8.1.60.0030.00517.50
8.1.50.0040.00417.58
8.1.40.0040.00417.44
8.1.30.0020.00517.60
8.1.20.0080.00017.74
8.1.10.0040.00417.48
8.1.00.0070.00017.49
8.0.300.0000.00718.77
8.0.290.0030.00516.75
8.0.280.0030.00318.37
8.0.270.0070.00017.20
8.0.260.0080.00016.81
8.0.250.0040.00417.03
8.0.240.0000.00716.89
8.0.230.0030.00316.89
8.0.220.0030.00316.91
8.0.210.0000.00716.89
8.0.200.0000.00716.85
8.0.190.0040.00416.88
8.0.180.0040.00416.82
8.0.170.0040.00416.91
8.0.160.0000.00716.99
8.0.150.0000.00816.83
8.0.140.0000.00716.91
8.0.130.0050.00013.33
8.0.120.0040.00416.80
8.0.110.0040.00416.79
8.0.100.0030.00516.82
8.0.90.0040.00417.04
8.0.80.0070.00716.91
8.0.70.0040.00416.98
8.0.60.0070.00016.80
8.0.50.0000.00816.96
8.0.30.0100.00917.09
8.0.20.0100.01017.41
8.0.10.0000.00817.04
8.0.00.0120.00616.54
7.4.330.0060.00015.55
7.4.320.0060.00016.50
7.4.300.0040.00416.65
7.4.290.0030.00316.43
7.4.280.0090.00016.63
7.4.270.0050.00316.64
7.4.260.0000.00916.45
7.4.250.0040.00416.38
7.4.240.0020.00516.39
7.4.230.0030.00316.45
7.4.220.0140.00816.54
7.4.210.0070.00816.63
7.4.200.0030.00516.44
7.4.160.0100.00516.47
7.4.150.0090.01017.40
7.4.140.0100.00817.86
7.4.130.0030.01516.49
7.4.120.0130.01016.55
7.4.110.0030.01416.80
7.4.100.0130.00816.58
7.4.90.0030.01416.55
7.4.80.0080.00819.39
7.4.70.0110.00516.66
7.4.60.0030.01316.58
7.4.50.0030.01016.41
7.4.40.0030.01316.68
7.4.30.0030.01316.64
7.4.00.0030.01415.24
7.3.330.0030.00313.25
7.3.320.0000.00513.32
7.3.310.0030.00316.21
7.3.300.0020.00516.28
7.3.290.0070.00016.41
7.3.280.0090.00816.35
7.3.270.0080.00817.40
7.3.260.0070.00916.70
7.3.250.0130.00616.44
7.3.240.0100.00716.64
7.3.230.0070.01116.45
7.3.210.0160.00616.52
7.3.200.0040.01116.34
7.3.190.0030.01316.55
7.3.180.0160.00016.42
7.3.170.0100.01016.34
7.3.160.0090.01216.44
7.2.330.0080.00916.59
7.2.320.0070.01016.62
7.2.310.0120.00516.90
7.2.300.0100.00716.62
7.2.290.0060.01116.83
7.2.60.0100.00616.94
7.2.00.0000.01219.56
7.1.200.0060.00915.92
7.1.100.0060.00618.09
7.1.70.0060.00617.33
7.1.60.0160.01035.04
7.1.50.0240.00034.76
7.1.40.0130.01634.40
7.1.30.0110.01534.48
7.1.20.0220.00334.53
7.1.10.0060.00616.63
7.1.00.0060.00616.82
7.0.200.0080.00816.75
7.0.190.0030.00816.54
7.0.180.0030.01216.24
7.0.170.0000.01216.38
7.0.160.0030.00916.35
7.0.150.0000.01216.30
7.0.140.0040.00816.39
7.0.130.0050.00516.53
7.0.120.0030.01016.50
7.0.110.0060.00616.25
7.0.100.0000.01416.27
7.0.90.0000.01116.36
7.0.80.0030.00916.27
7.0.70.0000.01316.24
7.0.60.0000.01115.89
7.0.50.0040.00816.57
7.0.40.0090.00316.47
7.0.30.0060.00616.52
7.0.20.0060.00616.55
7.0.10.0060.00616.23
7.0.00.0000.01216.47

preferences:
40.25 ms | 400 KiB | 5 Q