3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $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.0140.00716.63
8.3.50.0110.00416.63
8.3.40.0070.00718.93
8.3.30.0110.00418.97
8.3.20.0080.00020.39
8.3.10.0080.00021.91
8.3.00.0000.00819.51
8.2.180.0170.00318.49
8.2.170.0120.00322.96
8.2.160.0160.00020.52
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0000.00721.00
8.2.120.0090.00626.35
8.2.110.0030.00620.39
8.2.100.0040.00817.97
8.2.90.0000.00819.05
8.2.80.0030.00517.97
8.2.70.0050.00317.75
8.2.60.0070.00017.92
8.2.50.0030.00518.10
8.2.40.0000.00920.64
8.2.30.0040.00421.03
8.2.20.0000.00718.14
8.2.10.0050.00318.15
8.2.00.0070.00018.02
8.1.280.0150.00325.92
8.1.270.0100.00622.05
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0120.00922.62
8.1.230.0110.00017.82
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0030.00617.10
8.1.180.0040.00418.10
8.1.170.0050.00520.11
8.1.160.0000.00819.00
8.1.150.0040.00418.86
8.1.140.0040.00419.59
8.1.130.0030.00318.89
8.1.120.0040.00417.41
8.1.110.0040.00417.47
8.1.100.0040.00417.39
8.1.90.0040.00417.29
8.1.80.0040.00417.36
8.1.70.0000.00717.25
8.1.60.0030.00617.58
8.1.50.0000.00817.47
8.1.40.0060.00317.61
8.1.30.0040.00417.68
8.1.20.0100.00017.51
8.1.10.0030.00517.67
8.1.00.0030.00517.50
8.0.300.0040.00418.77
8.0.290.0050.00516.75
8.0.280.0030.00318.33
8.0.270.0000.00717.26
8.0.260.0030.00316.77
8.0.250.0030.00317.01
8.0.240.0040.00416.86
8.0.230.0000.00717.00
8.0.220.0030.00316.92
8.0.210.0000.00716.92
8.0.200.0000.00716.97
8.0.190.0030.01016.88
8.0.180.0030.00616.90
8.0.170.0030.00316.84
8.0.160.0060.00316.91
8.0.150.0040.00416.96
8.0.140.0000.00716.93
8.0.130.0030.00313.30
8.0.120.0040.00416.87
8.0.110.0070.00016.79
8.0.100.0030.00516.80
8.0.90.0040.00416.95
8.0.80.0080.00816.92
8.0.70.0030.00516.94
8.0.60.0000.00816.87
8.0.50.0050.00216.70
8.0.30.0060.01217.17
8.0.20.0100.01117.40
8.0.10.0040.00417.04
8.0.00.0170.00716.80
7.4.330.0050.00015.55
7.4.320.0060.00016.61
7.4.300.0060.00016.53
7.4.290.0070.00016.45
7.4.280.0030.00516.46
7.4.270.0000.00716.49
7.4.260.0030.00316.36
7.4.250.0000.00816.41
7.4.240.0040.00416.47
7.4.230.0040.00416.30
7.4.220.0160.00316.55
7.4.210.0150.00016.39
7.4.200.0030.00316.61
7.4.160.0120.00416.65
7.4.150.0090.00917.40
7.4.140.0070.01117.86
7.4.130.0140.00716.50
7.4.120.0090.01016.59
7.4.110.0140.01016.53
7.4.100.0100.01016.39
7.4.90.0040.01416.34
7.4.80.0200.00319.39
7.4.70.0130.00316.48
7.4.60.0090.00916.45
7.4.50.0120.00316.33
7.4.40.0070.01016.68
7.4.30.0080.01116.40
7.4.00.0110.00414.78
7.3.330.0000.00613.18
7.3.320.0000.00513.14
7.3.310.0030.00316.18
7.3.300.0070.00016.38
7.3.290.0070.01016.32
7.3.280.0110.00816.32
7.3.270.0080.00817.40
7.3.260.0100.00716.43
7.3.250.0170.00716.48
7.3.240.0050.01216.37
7.3.230.0120.00916.46
7.3.210.0090.00916.54
7.3.200.0140.00916.50
7.3.190.0090.00916.24
7.3.180.0090.01216.55
7.3.170.0080.00416.28
7.3.160.0080.00816.45
7.2.330.0110.01416.40
7.2.320.0120.00616.83
7.2.310.0060.01216.61
7.2.300.0030.01416.67
7.2.290.0070.01016.81
7.2.120.0030.01216.54
7.2.110.0030.00616.64
7.2.100.0040.00916.56
7.2.90.0040.01116.80
7.2.80.0040.01116.64
7.2.70.0130.00016.95
7.2.60.0050.00516.67
7.2.50.0070.01016.76
7.2.40.0070.01016.78
7.2.30.0080.00416.78
7.2.20.0060.00916.95
7.2.10.0070.00716.75
7.2.00.0000.01016.76
7.1.240.0060.00915.93
7.1.230.0040.01115.61
7.1.220.0030.01215.79
7.1.210.0110.00015.55
7.1.200.0050.00715.50
7.1.190.0070.00715.82
7.1.180.0090.00315.89
7.1.170.0060.00315.54
7.1.160.0090.00615.79
7.1.150.0060.00615.52
7.1.140.0000.01115.71
7.1.130.0040.01115.72
7.1.120.0100.00715.73
7.1.110.0030.00615.79
7.1.100.0160.00015.88
7.1.90.0070.00315.48
7.1.80.0090.00315.60
7.1.70.0040.01016.31
7.1.60.0140.01025.36
7.1.50.0090.01525.27
7.1.40.0070.01324.84
7.1.30.0130.00725.14
7.1.20.0120.00724.96
7.1.10.0050.00816.25
7.1.00.0030.00816.19
7.0.320.0090.00315.48
7.0.310.0000.01115.51
7.0.300.0140.00015.19
7.0.290.0100.00315.52
7.0.280.0030.00915.36
7.0.270.0000.01215.56
7.0.260.0030.01015.39
7.0.250.0090.00315.47
7.0.240.0100.00315.62
7.0.230.0070.00715.18
7.0.220.0030.00915.52
7.0.210.0070.00315.58
7.0.200.0060.00816.00
7.0.190.0060.00716.08
7.0.180.0070.00615.85
7.0.170.0030.01015.88
7.0.160.0100.00315.92
7.0.150.0070.00615.75
7.0.140.0050.00716.07
7.0.130.0070.00615.89
7.0.120.0050.00915.77
7.0.110.0090.00615.84
7.0.100.0060.00515.71
7.0.90.0060.00815.85
7.0.80.0050.00815.71
7.0.70.0050.00815.91
7.0.60.0020.01115.85
7.0.50.0050.01015.88
7.0.40.0030.01015.01
7.0.30.0030.00915.13
7.0.20.0050.00914.93
7.0.10.0050.00715.11
7.0.00.0080.00414.99
5.6.380.0060.01014.46

preferences:
49.08 ms | 404 KiB | 6 Q