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($k); 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.70.0140.00718.25
8.3.60.0150.00416.63
8.3.50.0080.01016.58
8.3.40.0090.00618.77
8.3.30.0100.00618.50
8.3.20.0000.00820.34
8.3.10.0000.00821.90
8.3.00.0050.00319.38
8.2.180.0040.01216.88
8.2.170.0070.00722.96
8.2.160.0110.00420.35
8.2.150.0090.00024.18
8.2.140.0000.01024.66
8.2.130.0000.00821.00
8.2.120.0040.00426.35
8.2.110.0030.00721.05
8.2.100.0080.00318.16
8.2.90.0090.00019.17
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0030.00617.93
8.2.50.0060.00318.10
8.2.40.0000.00720.59
8.2.30.0080.00021.20
8.2.20.0000.00718.03
8.2.10.0070.00018.09
8.2.00.0000.00718.15
8.1.280.0070.00725.92
8.1.270.0070.00022.19
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00023.83
8.1.230.0090.00319.10
8.1.220.0030.00517.78
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0030.00518.65
8.1.160.0070.00019.03
8.1.150.0070.00020.57
8.1.140.0000.00817.53
8.1.130.0050.00318.97
8.1.120.0040.00417.34
8.1.110.0040.00417.39
8.1.100.0000.00817.46
8.1.90.0030.00517.50
8.1.80.0070.00017.47
8.1.70.0000.00717.44
8.1.60.0080.00017.52
8.1.50.0050.00517.54
8.1.40.0000.00817.45
8.1.30.0030.00517.63
8.1.20.0000.01117.58
8.1.10.0040.00417.54
8.1.00.0000.00917.53
8.0.300.0000.00718.77
8.0.290.0060.00316.63
8.0.280.0000.00718.36
8.0.270.0070.00017.20
8.0.260.0040.00416.73
8.0.250.0000.00716.88
8.0.240.0050.00316.95
8.0.230.0000.00716.88
8.0.220.0050.00216.76
8.0.210.0070.00016.89
8.0.200.0040.00416.87
8.0.190.0070.00316.88
8.0.180.0050.00316.84
8.0.170.0050.00316.89
8.0.160.0070.00017.01
8.0.150.0030.00316.89
8.0.140.0030.00316.88
8.0.130.0030.00313.39
8.0.120.0040.00416.87
8.0.110.0000.00817.00
8.0.100.0040.00416.91
8.0.90.0000.00816.93
8.0.80.0000.01716.84
8.0.70.0000.00716.74
8.0.60.0030.00516.91
8.0.50.0070.00016.81
8.0.30.0080.01017.05
8.0.20.0110.00917.40
8.0.10.0040.00417.03
8.0.00.0140.00716.77
7.4.330.0000.00615.55
7.4.320.0000.00716.63
7.4.300.0000.00716.67
7.4.290.0000.00816.61
7.4.280.0050.00316.54
7.4.270.0000.00816.55
7.4.260.0030.00316.54
7.4.250.0000.00716.49
7.4.240.0070.00016.52
7.4.230.0030.00316.74
7.4.220.0070.01116.57
7.4.210.0030.01516.59
7.4.200.0040.00416.61
7.4.160.0090.00816.53
7.4.150.0110.00517.40
7.4.140.0120.01017.86
7.4.130.0120.00616.78
7.4.120.0150.00716.60
7.4.110.0190.00316.43
7.4.100.0160.00616.51
7.4.90.0160.00816.59
7.4.80.0080.01519.39
7.4.70.0140.00316.50
7.4.60.0090.00616.61
7.4.50.0030.01316.55
7.4.40.0090.00816.61
7.4.30.0070.01716.41
7.4.00.0070.00715.16
7.3.330.0030.00313.23
7.3.320.0030.00313.28
7.3.310.0030.00316.26
7.3.300.0000.00716.41
7.3.290.0060.01016.34
7.3.280.0090.00716.39
7.3.270.0240.00017.40
7.3.260.0100.00816.36
7.3.250.0120.00716.44
7.3.240.0120.00516.46
7.3.230.0080.00816.50
7.3.210.0080.00816.64
7.3.200.0040.01216.69
7.3.190.0080.00816.46
7.3.180.0000.01516.48
7.3.170.0140.00716.52
7.3.160.0130.00816.68
7.3.120.0100.00714.96
7.3.110.0120.00414.74
7.3.100.0030.00714.69
7.3.90.0070.00714.86
7.3.80.0110.00414.88
7.3.70.0050.00514.66
7.3.60.0040.00715.02
7.3.50.0030.00914.66
7.3.40.0090.00314.90
7.3.30.0060.00614.70
7.3.20.0080.00816.32
7.3.10.0080.00316.55
7.3.00.0040.01116.76
7.2.330.0150.00816.45
7.2.320.0030.01316.80
7.2.310.0080.00816.72
7.2.300.0140.00316.90
7.2.290.0110.00716.73
7.2.240.0130.00315.21
7.2.230.0070.00715.20
7.2.220.0110.00015.02
7.2.210.0090.00615.11
7.2.200.0000.01414.73
7.2.190.0030.00815.06
7.2.180.0090.00615.14
7.2.170.0090.00314.89
7.2.160.0050.00515.05
7.2.150.0040.00816.66
7.2.140.0070.01116.99
7.2.130.0080.00816.73
7.2.120.0000.01417.05
7.2.110.0030.00916.61
7.2.100.0030.00716.67
7.2.90.0060.00916.85
7.2.80.0050.00517.02
7.2.70.0120.00617.05
7.2.60.0060.00916.87
7.2.50.0100.00317.07
7.2.40.0060.00616.70
7.2.30.0140.00016.90
7.2.20.0060.00617.13
7.2.10.0060.00916.80
7.2.00.0050.00718.21
7.1.330.0060.00615.85
7.1.320.0070.00715.70
7.1.310.0030.00715.85
7.1.300.0110.00415.64
7.1.290.0040.00915.75
7.1.280.0030.00615.41
7.1.270.0060.00815.74
7.1.260.0000.00915.85
7.1.250.0150.00015.86
7.1.200.0030.00915.58
7.1.100.0100.00317.98
7.1.70.0040.00816.93
7.1.60.0160.01335.14
7.1.50.0140.01034.87
7.1.40.0140.01134.39
7.1.30.0070.01834.20
7.1.20.0190.00634.54
7.1.10.0040.00816.61
7.1.00.0030.00916.60
7.0.200.0060.00616.67
7.0.190.0000.01116.77
7.0.180.0070.00616.18
7.0.170.0030.00916.37
7.0.160.0030.00916.37
7.0.150.0070.00716.18
7.0.140.0030.00916.32
7.0.130.0080.00416.29
7.0.120.0000.01216.64
7.0.110.0040.00716.09
7.0.100.0040.00816.20
7.0.90.0030.00916.35
7.0.80.0080.00416.26
7.0.70.0060.00616.36
7.0.60.0000.01216.15
7.0.50.0030.01016.29
7.0.40.0000.01216.46
7.0.30.0030.00916.58
7.0.20.0000.01116.43
7.0.10.0090.00316.36
7.0.00.0030.00916.35

preferences:
85.45 ms | 401 KiB | 5 Q