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 { $t = array(); $t[$k] = $value; $tmp = array_merge($tmp, $t); } } 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.0070.01416.63
8.3.50.0120.00616.35
8.3.40.0070.00718.80
8.3.30.0070.00718.67
8.3.20.0100.00020.39
8.3.10.0030.00721.73
8.3.00.0040.00419.25
8.2.180.0140.00318.28
8.2.170.0040.01122.96
8.2.160.0070.01020.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00421.03
8.2.120.0080.00026.35
8.2.110.0030.00621.03
8.2.100.0090.00318.31
8.2.90.0000.00819.34
8.2.80.0000.00818.05
8.2.70.0080.00417.63
8.2.60.0080.00017.93
8.2.50.0040.00418.10
8.2.40.0030.00620.50
8.2.30.0080.00021.18
8.2.20.0040.00418.14
8.2.10.0050.00218.24
8.2.00.0080.00018.03
8.1.280.0150.00625.92
8.1.270.0130.00622.18
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00423.80
8.1.230.0040.00818.97
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0090.00317.48
8.1.190.0050.00317.36
8.1.180.0060.00318.10
8.1.170.0060.00318.46
8.1.160.0000.00718.96
8.1.150.0060.00320.63
8.1.140.0000.00719.66
8.1.130.0040.00418.81
8.1.120.0030.00317.46
8.1.110.0040.00417.42
8.1.100.0070.00017.38
8.1.90.0050.00517.51
8.1.80.0050.00317.35
8.1.70.0070.00017.46
8.1.60.0030.00617.59
8.1.50.0030.00617.58
8.1.40.0080.00017.57
8.1.30.0030.00517.67
8.1.20.0060.00317.66
8.1.10.0050.00217.56
8.1.00.0040.00417.54
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.48
8.0.270.0000.00717.28
8.0.260.0000.00616.81
8.0.250.0060.00016.86
8.0.240.0000.00716.95
8.0.230.0000.00717.02
8.0.220.0070.00016.91
8.0.210.0030.00316.95
8.0.200.0040.00416.94
8.0.190.0060.00316.88
8.0.180.0000.00916.98
8.0.170.0070.00017.01
8.0.160.0070.00016.94
8.0.150.0040.00416.86
8.0.140.0040.00416.78
8.0.130.0030.00313.36
8.0.120.0000.00716.89
8.0.110.0000.00716.75
8.0.100.0000.00716.93
8.0.90.0070.00016.88
8.0.80.0090.00616.96
8.0.70.0000.00816.78
8.0.60.0030.00516.97
8.0.50.0040.00416.82
8.0.30.0100.01017.13
8.0.20.0110.01217.40
8.0.10.0040.00416.93
8.0.00.0150.00416.74
7.4.330.0020.00215.55
7.4.320.0030.00316.46
7.4.300.0070.00016.53
7.4.290.0000.00916.53
7.4.280.0040.00416.53
7.4.270.0040.00416.61
7.4.260.0030.00616.63
7.4.250.0000.00716.64
7.4.240.0030.00316.69
7.4.230.0030.00316.44
7.4.220.0110.00716.67
7.4.210.0110.00516.65
7.4.200.0040.00416.66
7.4.160.0030.01316.59
7.4.150.0120.00617.40
7.4.140.0120.00917.86
7.4.130.0070.01116.76
7.4.120.0070.01516.64
7.4.110.0100.00716.43
7.4.100.0090.01516.50
7.4.90.0070.01216.55
7.4.80.0150.00619.39
7.4.70.0030.01516.78
7.4.60.0030.01316.54
7.4.50.0100.00616.70
7.4.40.0060.01016.39
7.4.30.0130.01016.68
7.4.00.0060.00915.10
7.3.330.0000.00513.23
7.3.320.0000.00513.33
7.3.310.0030.00316.30
7.3.300.0030.00316.33
7.3.290.0030.00316.27
7.3.280.0100.00916.40
7.3.270.0120.00617.40
7.3.260.0100.00716.41
7.3.250.0120.00716.39
7.3.240.0070.01116.36
7.3.230.0030.01516.45
7.3.210.0090.00916.68
7.3.200.0180.00316.52
7.3.190.0110.00716.50
7.3.180.0060.01016.72
7.3.170.0060.01116.48
7.3.160.0060.01016.35
7.3.120.0100.01014.78
7.3.110.0110.00714.88
7.3.100.0070.01014.81
7.3.90.0040.01514.89
7.3.80.0070.00315.02
7.3.70.0030.01014.82
7.3.60.0030.01014.76
7.3.50.0040.01114.72
7.3.40.0060.00614.80
7.3.30.0060.00615.01
7.3.20.0070.01116.87
7.3.10.0050.00816.76
7.3.00.0020.01016.51
7.2.330.0110.00716.68
7.2.320.0090.01216.77
7.2.310.0090.01316.73
7.2.300.0150.00616.52
7.2.290.0120.00616.72
7.2.250.0040.01515.26
7.2.240.0100.00615.18
7.2.230.0060.01015.00
7.2.220.0000.01415.09
7.2.210.0030.01415.09
7.2.200.0030.01014.95
7.2.190.0110.00315.11
7.2.180.0030.01015.27
7.2.170.0060.01014.91
7.2.130.0040.00916.88
7.2.120.0060.00816.94
7.2.110.0060.00616.93
7.2.100.0060.00716.94
7.2.90.0080.00416.98
7.2.80.0060.00916.80
7.2.70.0060.00817.04
7.2.60.0070.00516.90
7.2.50.0040.00916.93
7.2.40.0060.00816.91
7.2.30.0030.00916.91
7.2.20.0060.00716.92
7.2.10.0050.00717.01
7.2.00.0060.00717.61
7.1.330.0090.00615.77
7.1.320.0060.00615.45
7.1.310.0030.00715.93
7.1.300.0030.01016.00
7.1.290.0030.00615.57
7.1.280.0060.01315.93
7.1.270.0110.00715.78
7.1.260.0090.00615.98
7.1.250.0050.00715.91
7.1.200.0070.00615.70
7.1.100.0050.00518.30
7.1.70.0220.00315.46
7.1.60.0240.01233.25
7.1.50.0260.01133.10
7.1.40.0280.00732.55
7.1.30.0270.01032.88
7.1.20.0260.01032.94
7.1.10.0070.00714.82
7.1.00.0190.00314.98
7.0.200.0140.01015.10
7.0.190.0180.00414.96
7.0.180.0130.00314.68
7.0.170.0170.00914.42
7.0.160.0210.00314.53
7.0.150.0110.01114.46
7.0.140.0160.00614.72
7.0.130.0820.00914.73
7.0.120.0110.01114.72
7.0.110.0160.00614.53
7.0.100.0130.01314.55
7.0.90.0100.01314.81
7.0.80.0250.00314.61
7.0.70.0140.00714.82
7.0.60.0140.01014.55
7.0.50.0180.00414.40
7.0.40.0120.00814.88
7.0.30.0170.00414.70
7.0.20.0180.00714.61
7.0.10.0150.00914.74
7.0.00.0150.00814.68

preferences:
45.72 ms | 401 KiB | 5 Q