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) { foreach($arr as $k => $v) { var_dump($v); if(is_array($v)){ } else { } } } $newArr = array(); $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.0050.01016.50
8.3.50.0070.00716.40
8.3.40.0120.00918.71
8.3.30.0150.00018.59
8.3.20.0080.00020.38
8.3.10.0030.00521.78
8.3.00.0030.00619.38
8.2.180.0060.01218.31
8.2.170.0110.00322.96
8.2.160.0140.00020.38
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00020.98
8.2.120.0040.00426.35
8.2.110.0090.00022.25
8.2.100.0080.00318.16
8.2.90.0040.00419.30
8.2.80.0030.00617.97
8.2.70.0000.00917.63
8.2.60.0040.00418.16
8.2.50.0000.00818.10
8.2.40.0050.00320.42
8.2.30.0000.00721.05
8.2.20.0050.00218.04
8.2.10.0040.00418.03
8.2.00.0030.00518.06
8.1.280.0100.01025.92
8.1.270.0040.00422.01
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.01019.26
8.1.230.0080.00419.10
8.1.220.0050.00317.78
8.1.210.0000.00918.77
8.1.200.0060.00317.36
8.1.190.0000.00817.00
8.1.180.0050.00318.10
8.1.170.0040.00418.33
8.1.160.0040.00418.97
8.1.150.0040.00420.55
8.1.140.0000.00719.61
8.1.130.0050.00518.83
8.1.120.0070.00017.51
8.1.110.0000.00717.46
8.1.100.0000.00817.48
8.1.90.0030.00517.55
8.1.80.0000.00717.38
8.1.70.0000.00717.39
8.1.60.0030.00517.50
8.1.50.0040.00417.43
8.1.40.0080.00017.52
8.1.30.0050.00317.63
8.1.20.0090.00317.75
8.1.10.0000.00717.51
8.1.00.0030.00517.45
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.39
8.0.270.0000.00717.30
8.0.260.0000.00716.75
8.0.250.0030.00316.95
8.0.240.0000.00716.91
8.0.230.0030.00316.95
8.0.220.0050.00216.80
8.0.210.0000.00716.97
8.0.200.0000.00716.97
8.0.190.0040.00416.99
8.0.180.0040.00416.92
8.0.170.0040.00416.88
8.0.160.0040.00416.99
8.0.150.0040.00416.77
8.0.140.0000.00816.78
8.0.130.0060.00013.33
8.0.120.0040.00416.88
8.0.110.0030.00516.95
8.0.100.0030.00516.79
8.0.90.0040.00416.82
8.0.80.0060.01016.93
8.0.70.0000.00716.88
8.0.60.0050.00316.82
8.0.50.0000.00716.86
8.0.30.0090.00916.96
8.0.20.0090.01417.40
8.0.10.0000.00817.04
8.0.00.0110.00616.67
7.4.330.0020.00215.55
7.4.320.0000.00716.54
7.4.300.0000.00616.58
7.4.290.0030.00316.63
7.4.280.0040.00416.63
7.4.270.0070.00016.51
7.4.260.0030.00316.61
7.4.250.0080.00016.45
7.4.240.0080.00016.52
7.4.230.0030.00316.64
7.4.220.0090.01116.61
7.4.210.0070.00716.62
7.4.200.0080.00016.68
7.4.160.0130.00316.57
7.4.150.0060.01317.40
7.4.140.0100.01117.86
7.4.130.0110.01516.35
7.4.120.0110.00716.51
7.4.110.0090.00916.73
7.4.100.0180.00716.63
7.4.90.0150.00516.49
7.4.80.0030.01519.39
7.4.70.0140.00316.46
7.4.60.0080.00816.62
7.4.50.0090.00616.51
7.4.40.0090.00916.38
7.4.30.0060.01216.48
7.4.00.0100.00614.89
7.3.330.0060.00013.38
7.3.320.0000.00513.18
7.3.310.0030.00316.25
7.3.300.0030.00316.27
7.3.290.0080.00616.38
7.3.280.0080.01016.38
7.3.270.0110.00817.40
7.3.260.0050.01316.44
7.3.250.0130.00716.45
7.3.240.0100.01116.48
7.3.230.0120.00616.44
7.3.210.0000.01816.31
7.3.200.0030.01316.30
7.3.190.0090.00916.25
7.3.180.0100.00716.63
7.3.170.0160.00016.65
7.3.160.0100.00616.45
7.3.120.0040.01415.09
7.3.110.0030.01314.91
7.3.100.0030.00914.71
7.3.90.0030.00914.66
7.3.80.0030.00614.98
7.3.70.0030.01014.93
7.3.60.0100.00315.00
7.3.50.0090.00614.79
7.3.40.0060.00914.75
7.3.30.0030.00914.83
7.3.20.0100.00716.57
7.3.10.0100.00716.87
7.3.00.0120.00316.39
7.2.330.0170.00616.73
7.2.320.0110.00716.58
7.2.310.0080.01116.51
7.2.300.0000.01716.73
7.2.290.0150.00916.80
7.2.250.0070.01115.37
7.2.240.0060.01215.32
7.2.230.0040.01414.86
7.2.220.0030.00915.27
7.2.210.0130.00015.00
7.2.200.0000.01215.26
7.2.190.0030.01015.16
7.2.180.0000.01515.11
7.2.170.0130.00315.03
7.2.60.0030.00916.79
7.2.00.0000.01219.43
7.1.330.0080.00615.63
7.1.320.0040.00715.68
7.1.310.0100.00315.78
7.1.300.0040.01215.77
7.1.290.0030.01215.55
7.1.280.0060.00315.67
7.1.270.0060.00615.89
7.1.260.0060.00915.82
7.1.200.0030.00615.95
7.1.100.0040.01117.99
7.1.70.0000.01017.34
7.1.60.0030.00717.25
7.1.50.0030.00716.70
7.1.40.0070.00416.55
7.1.30.0040.00716.50
7.1.20.0050.00516.59
7.1.10.0020.00516.46
7.1.00.0080.00316.67
7.0.200.0030.00316.65
7.0.190.0030.00616.73
7.0.180.0040.00416.26
7.0.170.0030.00616.22
7.0.160.0020.00516.25
7.0.150.0040.00416.30
7.0.140.0040.00416.18
7.0.130.0040.00416.53
7.0.120.0000.00716.57
7.0.110.0040.00416.17
7.0.100.0000.00716.20
7.0.90.0000.00716.42
7.0.80.0020.00516.21
7.0.70.0030.00916.36
7.0.60.0070.00315.89
7.0.50.0070.00016.32
7.0.40.0000.00815.58
7.0.30.0060.00315.58
7.0.20.0020.00515.58
7.0.10.0040.00415.58
7.0.00.0040.00415.58

preferences:
45.57 ms | 400 KiB | 5 Q