3v4l.org

run code in 300+ PHP versions simultaneously
<?php $datos = array( "Nombre" => "Adrian", "Apellido" => "MadroƱal", "Nacionalidad" => "Argentino", "Edad" => 28, "Telefono" => array( 'Casa' => array('cod' => '011', 'tel' => '45565486'), 'Celular' => array('cod' => '011', 'tel' => '5548846'), 'Trabajo' => '32154846' ) ); foreach ($datos as $elementos => $data){ echo $elementos. ": ". $data. "<br>"; } if (is_array($data)){ foreach($data as $mas){ echo $mas. "<br>"; } } else { echo "no"; } ?>

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.0040.01118.64
8.3.50.0110.00722.12
8.3.40.0130.00718.70
8.3.30.0100.00319.14
8.3.20.0080.00019.93
8.3.10.0080.00021.87
8.3.00.0040.00422.43
8.2.180.0130.00316.32
8.2.170.0070.00722.96
8.2.160.0140.00420.95
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00619.36
8.2.110.0080.00322.26
8.2.100.0070.00719.64
8.2.90.0000.00719.17
8.2.80.0050.00319.66
8.2.70.0030.00617.75
8.2.60.0030.00617.80
8.2.50.0030.00518.07
8.2.40.0030.00618.22
8.2.30.0000.00718.06
8.2.20.0000.00717.54
8.2.10.0040.00419.45
8.2.00.0030.00917.62
8.1.280.0170.00325.92
8.1.270.0030.00522.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.71
8.1.230.0060.00619.01
8.1.220.0000.00717.74
8.1.210.0050.00318.77
8.1.200.0030.00717.23
8.1.190.0080.00017.51
8.1.180.0040.00418.10
8.1.170.0030.00618.53
8.1.160.0030.00321.89
8.1.150.0040.00418.58
8.1.140.0030.00717.38
8.1.130.0000.00817.83
8.1.120.0030.00417.38
8.1.110.0040.00417.47
8.1.100.0040.00417.42
8.1.90.0000.00817.45
8.1.80.0040.00417.42
8.1.70.0030.00317.40
8.1.60.0050.00317.55
8.1.50.0000.00717.46
8.1.40.0040.00417.50
8.1.30.0040.00417.54
8.1.20.0060.00317.54
8.1.10.0060.00317.51
8.1.00.0000.00717.34
8.0.300.0000.00818.77
8.0.290.0060.00317.18
8.0.280.0000.00718.51
8.0.270.0000.00717.30
8.0.260.0030.00316.95
8.0.250.0050.00217.05
8.0.240.0040.00417.02
8.0.230.0000.00716.88
8.0.220.0020.00516.84
8.0.210.0030.00316.91
8.0.200.0000.00717.00
8.0.190.0000.00817.03
8.0.180.0050.00217.05
8.0.170.0050.00317.02
8.0.160.0000.00716.97
8.0.150.0000.00716.80
8.0.140.0070.00316.65
8.0.130.0030.00313.32
8.0.120.0040.00416.91
8.0.110.0040.00417.00
8.0.100.0040.00416.99
8.0.90.0000.00716.76
8.0.80.0100.01116.88
8.0.70.0040.00417.07
8.0.60.0070.00016.83
8.0.50.0040.00416.84
8.0.30.0100.01017.13
8.0.20.0090.00817.40
8.0.10.0040.00416.95
8.0.00.0120.00516.73
7.4.330.0000.00515.00
7.4.320.0040.00416.60
7.4.300.0060.00016.36
7.4.290.0070.00316.43
7.4.280.0070.00016.42
7.4.270.0070.00016.47
7.4.260.0030.00316.63
7.4.250.0030.00516.48
7.4.240.0000.00716.56
7.4.230.0040.00416.44
7.4.220.0110.00716.63
7.4.210.0060.01016.58
7.4.200.0000.00716.58
7.4.190.0050.00316.67
7.4.160.0080.01116.46
7.4.150.0080.01117.40
7.4.140.0140.01017.86
7.4.130.0140.00416.44
7.4.120.0100.01016.68
7.4.110.0060.01216.41
7.4.100.0080.00916.31
7.4.90.0120.00616.42
7.4.80.0090.00919.39
7.4.70.0100.01016.50
7.4.60.0100.00616.45
7.4.50.0040.00416.44
7.4.40.0100.00622.77
7.4.30.0120.00316.54
7.4.00.0100.00615.00
7.3.330.0050.00013.30
7.3.320.0000.00613.10
7.3.310.0000.00716.28
7.3.300.0030.00316.36
7.3.290.0050.00816.35
7.3.280.0120.00716.34
7.3.270.0100.00717.40
7.3.260.0070.01016.37
7.3.250.0110.00616.36
7.3.240.0130.00716.31
7.3.230.0070.01016.39
7.3.210.0150.00716.48
7.3.200.0190.00319.39
7.3.190.0100.00716.44
7.3.180.0070.00716.32
7.3.170.0080.00816.38
7.3.160.0040.01216.28
7.3.120.0070.01015.11
7.2.330.0060.02016.63
7.2.320.0120.01216.62
7.2.310.0160.00016.79
7.2.300.0070.01016.67
7.2.290.0040.01316.34
7.2.110.0380.00716.46
7.2.100.0130.00616.29
7.2.90.0370.00416.61
7.2.80.0100.00316.67
7.2.70.0080.01216.85
7.2.60.0130.00916.96
7.2.50.0190.00016.68
7.2.40.0180.00316.96
7.2.30.0110.00816.82
7.2.20.0130.00416.95
7.2.10.0100.00516.94
7.2.00.0070.01018.26
7.1.230.0050.01015.61
7.1.220.0140.00315.41
7.1.210.0100.01015.51
7.1.200.0060.00615.63
7.1.190.0350.00315.77
7.1.180.0180.00715.70
7.1.170.0190.00315.62
7.1.160.0090.01215.84
7.1.150.0090.00915.65
7.1.140.0230.00615.60
7.1.130.0080.00515.65
7.1.120.0110.00415.82
7.1.110.0110.00515.86
7.1.100.0080.00516.93
7.1.90.0120.00615.76
7.1.80.0100.00615.75
7.1.70.0070.00616.30
7.1.60.0080.00917.80
7.1.50.0070.01216.23
7.1.40.0110.00715.81
7.1.30.0090.01315.97
7.1.20.0180.00315.81
7.1.10.0000.01615.41
7.1.00.0020.04419.14
7.0.310.0100.00615.08
7.0.300.0070.00715.20
7.0.290.0210.00315.25
7.0.280.0130.00315.32
7.0.270.0060.01015.43
7.0.260.0370.00015.43
7.0.250.0130.00015.35
7.0.240.0140.00015.29
7.0.230.0330.00715.48
7.0.220.0130.00615.22
7.0.210.0110.00415.28
7.0.200.0050.00516.06
7.0.190.0070.00715.47
7.0.180.0130.00315.14
7.0.170.0030.01115.59
7.0.160.0110.00315.21
7.0.150.0040.01115.49
7.0.140.0060.04018.66
7.0.130.0150.00315.52
7.0.120.0120.00615.39
7.0.110.0150.00015.45
7.0.100.0100.03317.66
7.0.90.0060.02517.72
7.0.80.0100.04017.68
7.0.70.0080.02717.69
7.0.60.0140.03817.58
7.0.50.0270.04217.91
7.0.40.0100.02816.81
7.0.30.0090.03816.80
7.0.20.0080.02916.70
7.0.10.0110.03716.65
7.0.00.0050.03716.75
5.6.380.0120.00414.66
5.6.370.0130.00414.04
5.6.360.0040.01214.52
5.6.350.0070.00514.16
5.6.340.0120.00614.10
5.6.330.0140.00314.22
5.6.320.0060.01014.30
5.6.310.0000.01614.22
5.6.300.0080.00314.48
5.6.290.0100.00614.49
5.6.280.0090.03817.81
5.6.270.0120.00414.25
5.6.260.0150.00414.61
5.6.250.0070.03517.60
5.6.240.0100.04117.42
5.6.230.0060.03117.54
5.6.220.0100.04217.32
5.6.210.0090.04317.55
5.6.200.0140.03717.71
5.6.190.0120.02217.55
5.6.180.0120.02917.65
5.6.170.0060.04717.65
5.6.160.0050.04117.71
5.6.150.0100.02617.62
5.6.140.0160.03317.62
5.6.130.0120.04717.73
5.6.120.0080.04517.68
5.6.110.0160.03817.78
5.6.100.0050.02817.57
5.6.90.0120.04017.71
5.6.80.0100.05017.38
5.6.70.0070.02317.41
5.6.60.0020.02617.41
5.6.50.0100.02617.35
5.6.40.0090.04217.19
5.6.30.0060.04417.27
5.6.20.0080.02717.24
5.6.10.0070.03917.27
5.6.00.0140.03717.39
5.5.380.0090.03716.62
5.5.370.0100.04216.56
5.5.360.0080.04816.57
5.5.350.0090.04016.56
5.5.340.0170.03516.78
5.5.330.0060.04316.78
5.5.320.0090.03216.85
5.5.310.0150.03516.86
5.5.300.0080.04216.83
5.5.290.0110.02316.78
5.5.280.0100.04216.79
5.5.270.0080.04116.83
5.5.260.0090.04316.71
5.5.250.0050.02916.67
5.5.240.0050.03516.53
5.5.230.0130.02816.47
5.5.220.0080.02616.54
5.5.210.0080.03916.45
5.5.200.0120.03816.47
5.5.190.0120.01816.45
5.5.180.0100.03716.39
5.5.170.0030.01014.09
5.5.160.0060.04416.53
5.5.150.0120.03516.53
5.5.140.0100.04016.47
5.5.130.0100.03816.50
5.5.120.0130.03616.48
5.5.110.0100.03816.45
5.5.100.0050.03016.48
5.5.90.0070.02816.41
5.5.80.0030.02816.44
5.5.70.0120.04016.47
5.5.60.0080.04116.42
5.5.50.0090.03716.42
5.5.40.0100.03616.42
5.5.30.0120.01916.42
5.5.20.0090.03516.42
5.5.10.0080.03516.42
5.5.00.0070.04216.43
5.4.450.0090.03716.11
5.4.440.0090.03016.10
5.4.430.0050.04416.12
5.4.420.0070.04516.12
5.4.410.0090.04116.05
5.4.400.0140.03715.79
5.4.390.0120.02515.91
5.4.380.0080.03715.91
5.4.370.0080.04015.79
5.4.360.0080.03915.94
5.4.350.0050.02415.95
5.4.340.0090.03715.94
5.4.330.0100.00312.79
5.4.320.0020.03815.96
5.4.310.0120.03115.92
5.4.300.0130.03415.79
5.4.290.0070.03915.86
5.4.280.0080.04015.80
5.4.270.0060.02715.92
5.4.260.0080.02215.96
5.4.250.0080.02515.92
5.4.240.0070.02215.91
5.4.230.0060.03015.91
5.4.220.0020.03715.95
5.4.210.0100.03515.80
5.4.200.0100.04115.90
5.4.190.0050.04215.90
5.4.180.0070.02115.79
5.4.170.0040.03915.87
5.4.160.0030.02915.91
5.4.150.0070.03415.94
5.4.140.0090.03114.53
5.4.130.0020.02614.57
5.4.120.0050.03814.57
5.4.110.0130.03514.57
5.4.100.0090.02114.58
5.4.90.0070.04014.50
5.4.80.0090.03814.54
5.4.70.0070.03514.58
5.4.60.0090.03514.60
5.4.50.0080.03014.57
5.4.40.0090.03614.62
5.4.30.0030.03914.54
5.4.20.0090.03514.50
5.4.10.0090.03814.50
5.4.00.0110.02014.31
5.3.290.0100.04013.73
5.3.280.0080.03313.64
5.3.270.0100.03813.70
5.3.260.0050.04113.68
5.3.250.0080.03813.61
5.3.240.0090.03213.66
5.3.230.0080.03013.65
5.3.220.0060.04613.61
5.3.210.0060.03113.63
5.3.200.0110.03713.66
5.3.190.0050.04213.61
5.3.180.0070.03913.67
5.3.170.0040.04113.67
5.3.160.0090.04013.67
5.3.150.0070.03413.67
5.3.140.0100.03313.67
5.3.130.0120.02213.59
5.3.120.0020.03113.66
5.3.110.0080.03513.65
5.3.100.0080.01913.39
5.3.90.0090.03513.38
5.3.80.0090.01813.39
5.3.70.0080.03813.39
5.3.60.0090.04113.32
5.3.50.0060.04013.29
5.3.40.0060.02113.30
5.3.30.0090.02413.34
5.3.20.0060.03813.12
5.3.10.0080.01713.21
5.3.00.0070.02213.14
5.2.170.0070.02012.55
5.2.160.0050.02512.55
5.2.150.0040.03712.55
5.2.140.0080.01712.55
5.2.130.0020.02712.55
5.2.120.0020.03712.55
5.2.110.0080.02912.55
5.2.100.0010.02612.55
5.2.90.0040.02512.55
5.2.80.0040.03412.55
5.2.70.0060.03212.55
5.2.60.0080.02712.55
5.2.50.0090.02512.55
5.2.40.0010.02412.55
5.2.30.0060.03312.55
5.2.20.0040.01912.55
5.2.10.0020.03912.55
5.2.00.0030.03712.55
5.1.60.0060.02912.55
5.1.50.0030.01912.55
5.1.40.0070.03012.55
5.1.30.0070.01512.55
5.1.20.0080.01612.55
5.1.10.0080.02612.55
5.1.00.0030.01812.55
5.0.50.0050.01512.55
5.0.40.0060.02012.55
5.0.30.0020.03112.55
5.0.20.0030.01812.55
5.0.10.0060.02212.55
5.0.00.0050.03212.55
4.4.90.0040.01512.55
4.4.80.0030.01912.55
4.4.70.0030.00812.55
4.4.60.0040.01512.55
4.4.50.0040.01212.55
4.4.40.0020.01612.55
4.4.30.0040.00912.55
4.4.20.0030.01212.55
4.4.10.0040.01812.55
4.4.00.0020.03212.55
4.3.110.0040.01712.55
4.3.100.0020.01212.55
4.3.90.0050.01712.55
4.3.80.0040.01512.55
4.3.70.0030.01812.55
4.3.60.0060.00812.55
4.3.50.0070.01712.55
4.3.40.0050.02512.55
4.3.30.0020.01012.55
4.3.20.0040.01712.55
4.3.10.0040.01812.55
4.3.00.0020.01112.55

preferences:
41 ms | 401 KiB | 5 Q