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:"; var_dump($arr);die; function teste($arr) { foreach($arr as $k => $v) { if(is_array($v)){ } else { } } } $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.0070.01516.88
8.3.50.0110.00316.42
8.3.40.0040.01118.79
8.3.30.0070.00718.82
8.3.20.0050.00320.20
8.3.10.0080.00021.90
8.3.00.0030.00519.38
8.2.180.0160.00318.31
8.2.170.0070.01122.96
8.2.160.0070.00720.28
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00019.29
8.2.120.0050.00326.35
8.2.110.0060.00321.00
8.2.100.0120.00018.00
8.2.90.0060.00319.09
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0090.00018.04
8.2.50.0030.00518.10
8.2.40.0040.00420.21
8.2.30.0000.00820.98
8.2.20.0000.00718.15
8.2.10.0080.00018.16
8.2.00.0040.00418.07
8.1.280.0040.01125.92
8.1.270.0050.00322.27
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00322.69
8.1.230.0060.00619.22
8.1.220.0080.00017.79
8.1.210.0000.00818.77
8.1.200.0070.00317.23
8.1.190.0080.00017.23
8.1.180.0080.00018.10
8.1.170.0040.00418.52
8.1.160.0000.00719.01
8.1.150.0000.00820.49
8.1.140.0070.00019.46
8.1.130.0030.00318.86
8.1.120.0040.00417.34
8.1.110.0080.00017.43
8.1.100.0040.00417.47
8.1.90.0040.00417.41
8.1.80.0040.00417.42
8.1.70.0040.00417.45
8.1.60.0050.00317.61
8.1.50.0050.00317.45
8.1.40.0040.00417.51
8.1.30.0040.00417.54
8.1.20.0030.00717.64
8.1.10.0070.00017.63
8.1.00.0000.00917.55
8.0.300.0030.00518.77
8.0.290.0000.00917.00
8.0.280.0030.00318.47
8.0.270.0000.00717.14
8.0.260.0030.00316.86
8.0.250.0030.00316.98
8.0.240.0000.00716.98
8.0.230.0030.00317.02
8.0.220.0000.00816.93
8.0.210.0040.00416.86
8.0.200.0030.00516.88
8.0.190.0030.00817.00
8.0.180.0050.00316.91
8.0.170.0000.00716.93
8.0.160.0000.00716.99
8.0.150.0000.00716.79
8.0.140.0020.00516.93
8.0.130.0000.00513.35
8.0.120.0040.00416.95
8.0.110.0000.00716.97
8.0.100.0040.00416.95
8.0.90.0080.00017.03
8.0.80.0030.01316.92
8.0.70.0040.00416.77
8.0.60.0040.00416.88
8.0.50.0070.00016.82
8.0.30.0130.00517.10
8.0.20.0140.00517.40
8.0.10.0070.00017.07
8.0.00.0070.01016.69
7.4.330.0050.00015.55
7.4.320.0060.00016.50
7.4.300.0040.00416.58
7.4.290.0070.00016.50
7.4.280.0050.00316.44
7.4.270.0040.00416.54
7.4.260.0030.00316.45
7.4.250.0050.00316.42
7.4.240.0050.00316.59
7.4.230.0030.00316.47
7.4.220.0160.00316.48
7.4.210.0070.00716.51
7.4.200.0040.00416.67
7.4.160.0090.00916.61
7.4.150.0160.00517.40
7.4.140.0100.00917.86
7.4.130.0180.00716.51
7.4.120.0090.01216.49
7.4.110.0090.00916.54
7.4.100.0070.01616.52
7.4.90.0170.00316.64
7.4.80.0140.01019.39
7.4.70.0100.00716.67
7.4.60.0060.01016.39
7.4.50.0120.00316.63
7.4.40.0080.00816.63
7.4.30.0100.00716.54
7.4.00.0080.00615.07
7.3.330.0020.00213.30
7.3.320.0050.00013.12
7.3.310.0070.00016.38
7.3.300.0030.00316.31
7.3.290.0100.00416.36
7.3.280.0100.00816.32
7.3.270.0100.00717.40
7.3.260.0130.00516.34
7.3.250.0120.00616.52
7.3.240.0130.00616.46
7.3.230.0100.00716.54
7.3.210.0030.01516.50
7.3.200.0000.01616.31
7.3.190.0160.00316.45
7.3.180.0030.01216.57
7.3.170.0130.00716.36
7.3.160.0140.00416.43
7.3.120.0030.01614.73
7.3.110.0070.01314.91
7.3.100.0060.00914.94
7.3.90.0030.01014.73
7.3.80.0030.00914.87
7.3.70.0110.00414.89
7.3.60.0070.00714.91
7.3.50.0070.00414.71
7.3.40.0070.01014.63
7.3.30.0070.01114.86
7.3.20.0090.00616.33
7.3.10.0040.00816.77
7.3.00.0000.01416.48
7.2.330.0140.00716.66
7.2.320.0100.00816.62
7.2.310.0090.01216.55
7.2.300.0030.01716.58
7.2.290.0150.00416.47
7.2.250.0030.01314.82
7.2.240.0090.00615.00
7.2.230.0080.00815.23
7.2.220.0030.01015.22
7.2.210.0030.01214.90
7.2.200.0000.01215.15
7.2.190.0030.00914.93
7.2.180.0030.01314.90
7.2.170.0110.00715.15
7.2.60.0060.00316.93
7.2.00.0040.00819.25
7.1.330.0070.00715.81
7.1.320.0040.01115.83
7.1.310.0040.00815.73
7.1.300.0030.00615.85
7.1.290.0000.01315.46
7.1.280.0030.01015.62
7.1.270.0030.00915.50
7.1.260.0000.01215.72
7.1.200.0030.01015.65
7.1.100.0040.00818.08
7.1.70.0000.01217.29
7.1.60.0150.01235.09
7.1.50.0150.00934.86
7.1.40.0160.01034.39
7.1.30.0090.01734.39
7.1.20.0130.01334.40
7.1.10.0100.00316.57
7.1.00.0030.01016.54
7.0.200.0080.00316.61
7.0.190.0070.00416.63
7.0.180.0090.00316.20
7.0.170.0090.00416.36
7.0.160.0070.00716.16
7.0.150.0070.00716.27
7.0.140.0060.00616.20
7.0.130.0050.00916.65
7.0.120.0030.00916.64
7.0.110.0080.00416.07
7.0.100.0070.00516.37
7.0.90.0080.00416.26
7.0.80.0030.01316.32
7.0.70.0030.01016.48
7.0.60.0080.00416.12
7.0.50.0000.01216.42
7.0.40.0030.01116.40
7.0.30.0110.00316.43
7.0.20.0030.00916.39
7.0.10.0030.01016.51
7.0.00.0040.00816.68

preferences:
41.82 ms | 400 KiB | 5 Q