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 ) { if( is_array($v) && count($v) == 1 ) { $newArr[$k] = $v; } elseif( is_array($v) && count($v) > 1 ) { teste($v); } } } $newArr = array(); teste($arr); var_dump($newArr);

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.0160.00016.38
8.3.50.0100.01016.56
8.3.40.0180.00418.83
8.3.30.0120.00318.70
8.3.20.0070.00020.13
8.3.10.0080.00021.88
8.3.00.0050.00319.38
8.2.180.0090.00618.16
8.2.170.0060.00922.96
8.2.160.0040.01120.30
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0050.00321.12
8.2.120.0050.00226.35
8.2.110.0090.00020.92
8.2.100.0040.00718.07
8.2.90.0050.00319.23
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0050.00318.04
8.2.50.0030.00518.10
8.2.40.0000.00720.59
8.2.30.0000.00821.16
8.2.20.0000.00718.24
8.2.10.0030.00618.16
8.2.00.0040.00418.21
8.1.280.0120.00925.92
8.1.270.0080.00023.90
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00423.98
8.1.230.0000.01019.09
8.1.220.0090.00017.78
8.1.210.0000.00818.77
8.1.200.0030.00817.38
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0000.00818.70
8.1.160.0000.00718.93
8.1.150.0000.00820.71
8.1.140.0000.00819.67
8.1.130.0060.00318.84
8.1.120.0000.01117.42
8.1.110.0050.00217.39
8.1.100.0060.00317.55
8.1.90.0070.00017.50
8.1.80.0070.00017.46
8.1.70.0000.00717.53
8.1.60.0000.00717.52
8.1.50.0000.00817.58
8.1.40.0050.00317.59
8.1.30.0040.00417.70
8.1.20.0000.00917.66
8.1.10.0070.00017.54
8.1.00.0000.00817.49
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0070.00018.47
8.0.270.0030.00317.30
8.0.260.0060.00016.74
8.0.250.0000.00616.89
8.0.240.0030.00316.98
8.0.230.0040.00417.03
8.0.220.0000.00716.89
8.0.210.0030.00316.93
8.0.200.0040.00417.03
8.0.190.0060.00317.01
8.0.180.0060.00316.94
8.0.170.0000.00716.97
8.0.160.0050.00216.91
8.0.150.0070.00016.89
8.0.140.0000.00716.88
8.0.130.0090.00013.38
8.0.120.0080.00016.94
8.0.110.0000.00716.91
8.0.100.0030.00616.93
8.0.90.0070.00016.86
8.0.80.0070.01016.89
8.0.70.0030.00517.04
8.0.60.0030.00516.89
8.0.50.0040.00416.79
8.0.30.0080.00917.12
8.0.20.0140.01417.40
8.0.10.0070.00017.01
8.0.00.0080.01116.80
7.4.330.0000.00515.55
7.4.320.0030.00316.55
7.4.300.0000.00616.56
7.4.290.0030.00316.71
7.4.280.0080.00016.61
7.4.270.0070.00016.66
7.4.260.0070.00016.51
7.4.250.0000.00716.50
7.4.240.0040.00416.40
7.4.230.0070.00016.71
7.4.220.0030.02116.57
7.4.210.0080.00616.55
7.4.200.0000.00816.59
7.4.160.0070.00916.57
7.4.150.0140.00317.40
7.4.140.0080.01017.86
7.4.130.0160.00416.59
7.4.120.0140.01016.52
7.4.110.0090.00916.57
7.4.100.0090.01216.67
7.4.90.0080.00816.58
7.4.80.0070.01019.39
7.4.70.0100.00616.47
7.4.60.0060.00916.51
7.4.50.0090.00316.30
7.4.40.0130.01016.52
7.4.30.0060.01116.58
7.4.10.0040.01115.10
7.4.00.0090.00814.99
7.3.330.0020.00213.37
7.3.320.0050.00013.47
7.3.310.0040.00416.43
7.3.300.0000.00616.27
7.3.290.0000.00716.32
7.3.280.0070.01016.38
7.3.270.0120.00617.40
7.3.260.0120.00816.51
7.3.250.0060.01316.57
7.3.240.0090.00916.51
7.3.230.0030.01316.53
7.3.210.0060.00916.54
7.3.200.0030.01216.66
7.3.190.0110.01116.46
7.3.180.0100.00616.68
7.3.170.0060.00916.34
7.3.160.0030.01316.37
7.3.130.0030.01315.05
7.3.120.0070.01214.89
7.3.110.0100.00915.05
7.3.100.0030.01114.77
7.3.90.0040.00914.94
7.3.80.0060.00414.62
7.3.70.0090.00914.77
7.3.60.0120.00314.84
7.3.50.0040.00814.88
7.3.40.0050.01214.77
7.3.30.0070.01014.91
7.3.20.0080.00716.66
7.3.10.0060.00616.82
7.3.00.0050.00716.61
7.2.330.0160.01016.86
7.2.320.0120.00416.75
7.2.310.0140.00716.38
7.2.300.0000.01716.82
7.2.290.0060.01216.80
7.2.260.0110.00714.84
7.2.250.0080.01015.17
7.2.240.0060.01315.19
7.2.230.0020.01215.08
7.2.220.0020.01515.25
7.2.210.0090.00614.89
7.2.200.0060.00715.10
7.2.190.0030.01315.07
7.2.180.0050.00615.21
7.2.170.0060.00915.11
7.2.160.0070.01015.25
7.2.150.0080.00817.19
7.2.140.0000.01417.06
7.2.130.0000.01416.64
7.2.120.0090.00616.68
7.2.110.0000.01516.91
7.2.100.0090.00616.71
7.2.90.0040.00816.98
7.2.80.0030.00716.92
7.2.70.0080.00816.84
7.2.60.0050.01216.86
7.2.50.0100.00716.74
7.2.40.0030.00817.02
7.2.30.0120.00316.64
7.2.20.0120.00416.79
7.2.10.0030.01017.01
7.2.00.0040.00918.21
7.1.330.0050.01115.69
7.1.320.0080.00515.79
7.1.310.0060.00815.73
7.1.300.0070.00715.92
7.1.290.0100.00315.64
7.1.280.0070.00915.79
7.1.270.0050.00915.76
7.1.260.0050.00515.64
7.1.250.0060.00615.78
7.1.240.0100.00615.96
7.1.230.0110.00815.58
7.1.220.0160.00315.96
7.1.210.0040.00815.77
7.1.200.0030.01015.88
7.1.190.0040.00715.74
7.1.180.0000.00915.75
7.1.170.0110.00015.76
7.1.160.0040.01115.91
7.1.150.0040.01215.63
7.1.140.0090.00315.66
7.1.130.0060.00915.61
7.1.120.0040.01115.64
7.1.110.0060.00615.88
7.1.100.0040.00816.73
7.1.90.0030.01015.66
7.1.80.0040.01115.93
7.1.70.0050.00816.34
7.1.60.0080.01325.53
7.1.50.0180.00325.30
7.1.40.0100.01025.08
7.1.30.0140.00625.15
7.1.20.0120.00825.10
7.1.10.0050.01116.16
7.1.00.0050.01016.31
7.0.330.0040.01115.32
7.0.320.0070.00715.46
7.0.310.0130.00315.54
7.0.300.0030.00815.20
7.0.290.0080.00815.43
7.0.280.0030.01015.29
7.0.270.0070.00715.52
7.0.260.0040.00415.14
7.0.250.0070.00715.39
7.0.240.0000.01215.43
7.0.230.0000.01115.24
7.0.220.0030.00715.32
7.0.210.0140.00315.22
7.0.200.0070.00715.88
7.0.190.0020.00915.98
7.0.180.0040.01015.80
7.0.170.0020.01215.87
7.0.160.0030.01115.66
7.0.150.0060.00915.93
7.0.140.0050.00915.86
7.0.130.0050.00915.95
7.0.120.0050.00916.06
7.0.110.0070.00616.01
7.0.100.0070.00815.73
7.0.90.0050.00815.81
7.0.80.0060.00615.64
7.0.70.0020.01015.88
7.0.60.0070.00715.63
7.0.50.0050.00615.99
7.0.40.0070.00814.90
7.0.30.0050.00914.95
7.0.20.0030.00914.88
7.0.10.0050.00914.96
7.0.00.0040.00815.03
5.6.400.0000.01714.64
5.6.390.0000.00914.46
5.6.380.0060.01014.74
5.6.370.0060.00314.49
5.6.360.0040.01214.42
5.6.350.0100.00314.61
5.6.340.0060.00614.48
5.6.330.0030.00714.55
5.6.320.0050.00514.36
5.6.310.0120.00614.46
5.6.300.0030.01214.83
5.6.290.0100.00614.41
5.6.280.0070.01114.43
5.6.270.0070.00714.54
5.6.260.0070.00714.33
5.6.250.0000.01114.36
5.6.240.0000.01614.33
5.6.230.0100.00714.61
5.6.220.0030.01014.59
5.6.210.0030.01114.07
5.6.200.0090.00614.51
5.6.190.0080.00514.35
5.6.180.0060.01514.65
5.6.170.0030.01614.49
5.6.160.0160.00014.41
5.6.150.0030.00914.44
5.6.140.0060.00714.50
5.6.130.0000.01614.43
5.6.120.0070.00714.51
5.6.110.0090.00614.55
5.6.100.0030.01314.36
5.6.90.0080.00514.22
5.6.80.0090.00914.55
5.6.70.0040.01314.36
5.6.60.0090.00914.46
5.6.50.0080.00414.30
5.6.40.0060.00614.30
5.6.30.0030.01214.62
5.6.20.0030.01014.31
5.6.10.0110.00614.38
5.6.00.0030.01014.33

preferences:
39.3 ms | 401 KiB | 5 Q