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:"; function teste($arr) { $ret = array() ; foreach($arr as $k => $v) { if(is_array($v)){ $ret = teste($v); } else { //var_dump($k.' - '.$v); } } return $ret; } $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.00716.88
8.3.50.0110.00716.40
8.3.40.0100.00318.79
8.3.30.0150.00318.70
8.3.20.0040.00420.30
8.3.10.0000.00821.90
8.3.00.0090.00017.72
8.2.180.0140.00416.75
8.2.170.0110.00422.96
8.2.160.0070.00720.53
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00421.08
8.2.120.0080.00026.35
8.2.110.0030.00721.11
8.2.100.0090.00318.16
8.2.90.0080.00019.18
8.2.80.0000.00817.97
8.2.70.0000.01017.50
8.2.60.0050.00317.93
8.2.50.0050.00318.10
8.2.40.0000.00820.64
8.2.30.0030.00621.04
8.2.20.0050.00218.04
8.2.10.0000.00718.13
8.2.00.0050.00318.14
8.1.280.0040.01125.92
8.1.270.0040.00421.92
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00323.80
8.1.230.0100.00019.15
8.1.220.0000.00817.78
8.1.210.0030.00518.77
8.1.200.0000.00917.35
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0040.00418.70
8.1.160.0000.00719.03
8.1.150.0040.00418.81
8.1.140.0030.00619.59
8.1.130.0000.00718.89
8.1.120.0020.00517.52
8.1.110.0000.00817.35
8.1.100.0000.00717.40
8.1.90.0030.00717.37
8.1.80.0070.00017.46
8.1.70.0070.00017.45
8.1.60.0040.00417.61
8.1.50.0050.00317.59
8.1.40.0040.00417.52
8.1.30.0040.00417.69
8.1.20.0040.00417.67
8.1.10.0030.00617.42
8.1.00.0000.00717.39
8.0.300.0070.00018.77
8.0.290.0000.00916.63
8.0.280.0070.00018.33
8.0.270.0070.00017.30
8.0.260.0030.00316.71
8.0.250.0000.00716.84
8.0.240.0070.00416.89
8.0.230.0030.00616.88
8.0.220.0070.00016.88
8.0.210.0050.00316.95
8.0.200.0000.00716.90
8.0.190.0030.00616.86
8.0.180.0050.00216.81
8.0.170.0080.00016.95
8.0.160.0110.00016.94
8.0.150.0080.00016.75
8.0.140.0000.00716.87
8.0.130.0030.00313.32
8.0.120.0000.00716.73
8.0.110.0000.00716.94
8.0.100.0000.00716.90
8.0.90.0050.00216.92
8.0.80.0100.00616.93
8.0.70.0000.00716.86
8.0.60.0080.00016.97
8.0.50.0070.00016.72
8.0.30.0130.00717.06
8.0.20.0120.00717.40
8.0.10.0000.00716.90
8.0.00.0130.00616.61
7.4.330.0020.00215.55
7.4.320.0000.00616.54
7.4.300.0030.00316.41
7.4.290.0070.00416.47
7.4.280.0030.00516.51
7.4.270.0030.00316.59
7.4.260.0040.00413.25
7.4.250.0000.00816.46
7.4.240.0030.00516.63
7.4.230.0070.00016.40
7.4.220.0170.01016.63
7.4.210.0080.01016.55
7.4.200.0000.00816.51
7.4.160.0060.01016.61
7.4.150.0070.01117.40
7.4.140.0110.01117.86
7.4.130.0070.01016.48
7.4.120.0140.01016.52
7.4.110.0030.01316.51
7.4.100.0090.00716.50
7.4.90.0070.01016.43
7.4.80.0030.01319.39
7.4.70.0110.00816.40
7.4.60.0100.00616.54
7.4.50.0110.00416.57
7.4.40.0030.01316.50
7.4.30.0120.00916.59
7.4.10.0110.00715.20
7.4.00.0080.00915.16
7.3.330.0030.00313.29
7.3.320.0030.00213.45
7.3.310.0030.00316.42
7.3.300.0000.00716.39
7.3.290.0070.00016.41
7.3.280.0090.00916.34
7.3.270.0090.01217.40
7.3.260.0110.01016.44
7.3.250.0120.00816.46
7.3.240.0060.01116.47
7.3.230.0060.01116.31
7.3.210.0100.01016.54
7.3.200.0040.01216.47
7.3.190.0130.00316.27
7.3.180.0070.00916.32
7.3.170.0060.00916.50
7.3.160.0100.00516.68
7.3.130.0070.01115.10
7.3.120.0100.00715.09
7.3.110.0090.00914.58
7.3.100.0120.00314.58
7.3.90.0030.00614.81
7.3.80.0100.00714.80
7.3.70.0060.00914.57
7.3.60.0090.00614.83
7.3.50.0090.00614.83
7.3.40.0130.00714.53
7.3.30.0100.00714.90
7.3.20.0060.00616.81
7.3.10.0060.00916.55
7.3.00.0000.01316.64
7.2.330.0200.00016.66
7.2.320.0130.01016.82
7.2.310.0030.01416.56
7.2.300.0110.00516.64
7.2.290.0110.00516.59
7.2.260.0030.01415.01
7.2.250.0030.01414.95
7.2.240.0040.01114.98
7.2.230.0060.00314.99
7.2.220.0090.00615.19
7.2.210.0030.01015.23
7.2.200.0090.00615.10
7.2.190.0060.00914.86
7.2.180.0060.00615.28
7.2.170.0130.00315.11
7.2.160.0000.01715.02
7.2.150.0000.01416.77
7.2.140.0030.00716.94
7.2.130.0060.00316.63
7.2.120.0090.00516.76
7.2.110.0080.00816.81
7.2.100.0100.00916.82
7.2.90.0090.00716.85
7.2.80.0110.00516.76
7.2.70.0100.00616.91
7.2.60.0080.00717.00
7.2.50.0130.00417.04
7.2.40.0090.00417.02
7.2.30.0120.00616.92
7.2.20.0050.01116.70
7.2.10.0100.00516.96
7.2.00.0040.00717.86
7.1.330.0000.01515.83
7.1.320.0100.00415.60
7.1.310.0070.00715.45
7.1.300.0120.00915.77
7.1.290.0070.01015.73
7.1.280.0040.00416.01
7.1.270.0040.01115.77
7.1.260.0070.00315.66
7.1.250.0040.01116.07
7.1.240.0090.00715.78
7.1.230.0090.00615.83
7.1.220.0100.00615.71
7.1.210.0060.00915.78
7.1.200.0090.00615.81
7.1.190.0090.00515.87
7.1.180.0080.00415.56
7.1.170.0070.00715.84
7.1.160.0130.00215.83
7.1.150.0040.00915.90
7.1.140.0090.00415.88
7.1.130.0060.00515.79
7.1.120.0060.00715.67
7.1.110.0090.00715.83
7.1.100.0070.00516.44
7.1.90.0040.00715.78
7.1.80.0050.00915.94
7.1.70.0070.00616.35
7.1.60.0080.00922.20
7.1.50.0070.00922.01
7.1.40.0100.00921.93
7.1.30.0070.01021.95
7.1.20.0100.00722.01
7.1.10.0040.01116.01
7.1.00.0010.01115.94
7.0.330.0000.01515.12
7.0.320.0050.01115.20
7.0.310.0030.01015.49
7.0.300.0090.00515.29
7.0.290.0050.01015.51
7.0.280.0090.00815.27
7.0.270.0050.01015.48
7.0.260.0110.00415.23
7.0.250.0060.00915.29
7.0.240.0070.00615.39
7.0.230.0040.00715.24
7.0.220.0070.00515.45
7.0.210.0050.00715.44
7.0.200.0040.00615.88
7.0.190.0060.00515.86
7.0.180.0030.00915.56
7.0.170.0070.00615.85
7.0.160.0060.00815.72
7.0.150.0070.00715.82
7.0.140.0050.00715.69
7.0.130.0070.00715.66
7.0.120.0080.00615.83
7.0.110.0040.01015.69
7.0.100.0060.00715.65
7.0.90.0080.00315.71
7.0.80.0060.00715.72
7.0.70.0040.00915.70
7.0.60.0070.00815.61
7.0.50.0050.00915.73
7.0.40.0050.00814.63
7.0.30.0050.00714.45
7.0.20.0070.00614.38
7.0.10.0050.00814.50
7.0.00.0060.00714.47
5.6.400.0040.00414.41
5.6.390.0040.00714.61
5.6.380.0080.00614.33
5.6.370.0030.01014.31
5.6.360.0030.01014.41
5.6.350.0030.00614.52
5.6.340.0030.01314.35
5.6.330.0030.01014.64
5.6.320.0000.01314.68
5.6.310.0030.01414.68
5.6.300.0150.00314.51
5.6.290.0030.01114.19
5.6.280.0130.00314.50
5.6.270.0060.00914.25
5.6.260.0040.01114.18
5.6.250.0060.00614.13
5.6.240.0040.01114.34
5.6.230.0040.01214.36
5.6.220.0030.00614.56
5.6.210.0000.01714.40
5.6.200.0000.01514.25
5.6.190.0030.01014.43
5.6.180.0090.00314.41
5.6.170.0060.00914.30
5.6.160.0060.00914.40
5.6.150.0030.00914.57
5.6.140.0100.00614.17
5.6.130.0110.00414.34
5.6.120.0040.01114.41
5.6.110.0030.00914.32
5.6.100.0090.00614.29
5.6.90.0000.01114.27
5.6.80.0000.01214.40
5.6.70.0030.01114.49
5.6.60.0060.00614.18
5.6.50.0090.00614.16
5.6.40.0080.00814.31
5.6.30.0070.00714.46
5.6.20.0060.00914.45
5.6.10.0000.00914.63
5.6.00.0000.00814.13

preferences:
68.39 ms | 401 KiB | 5 Q