3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="UTF-8"?> <translations> <translation id="title"> <english name="name1" ad="ad1">Hello there, how are you?</english> <italian name="name2" ad="ad2">Ciao, come stai?</italian> </translation> <translation id="text2"> <english name="name3" ad="ad4">222Hello there, how are you?</english> <italian name="name3" ad="ad4">222Ciao, come stai?</italian> </translation> <translation id="text3"> <english name="name5" ad="ad5">333Hello there, how are you?</english> <italian name="name6" ad="ad6">333Ciao, come stai?</italian> </translation> </translations>'; $xml = new SimpleXMLElement($xml); //echo $xml->translation->english['ad'].PHP_EOL; echo $xml->translation->italian['name']; foreach ($xml->translation as $element) { foreach($element as $key => $val) { echo $element['id']."{$key}: {$val}".PHP_EOL; } }

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.0110.00418.55
8.3.50.0070.01016.50
8.3.40.0040.01118.96
8.3.30.0040.01119.20
8.3.20.0040.00420.59
8.3.10.0040.00423.83
8.3.00.0000.00819.50
8.2.180.0150.00916.47
8.2.170.0110.00322.96
8.2.160.0070.00720.51
8.2.150.0040.00424.18
8.2.140.0070.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00422.16
8.2.110.0000.01022.34
8.2.100.0090.00317.88
8.2.90.0040.00419.48
8.2.80.0080.00017.97
8.2.70.0060.00317.73
8.2.60.0040.00418.18
8.2.50.0030.00618.07
8.2.40.0060.00320.07
8.2.30.0000.00718.24
8.2.20.0050.00317.91
8.2.10.0070.00018.32
8.2.00.0050.00318.02
8.1.280.0110.00325.92
8.1.270.0000.00924.16
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00524.14
8.1.230.0050.00519.35
8.1.220.0000.00817.88
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0050.00317.38
8.1.180.0040.00418.10
8.1.170.0060.00318.83
8.1.160.0040.00422.24
8.1.150.0040.00419.11
8.1.140.0040.00417.57
8.1.130.0000.00718.07
8.1.120.0000.00717.75
8.1.110.0000.00717.75
8.1.100.0070.00017.56
8.1.90.0040.00417.70
8.1.80.0040.00417.63
8.1.70.0040.00417.69
8.1.60.0060.00317.87
8.1.50.0030.00617.68
8.1.40.0060.00317.65
8.1.30.0000.00817.91
8.1.20.0030.00617.79
8.1.10.0050.00217.64
8.1.00.0040.00417.62
8.0.300.0080.00018.77
8.0.290.0080.00017.00
8.0.280.0030.00318.66
8.0.270.0030.00317.50
8.0.260.0030.00317.48
8.0.250.0000.00717.08
8.0.240.0000.00617.25
8.0.230.0070.00317.07
8.0.220.0000.00717.15
8.0.210.0000.00717.13
8.0.200.0030.00317.19
8.0.190.0040.00417.08
8.0.180.0050.00317.07
8.0.170.0000.00817.20
8.0.160.0030.00317.09
8.0.150.0040.00417.16
8.0.140.0000.00716.97
8.0.130.0030.00313.50
8.0.120.0080.00017.14
8.0.110.0000.00717.01
8.0.100.0000.00717.03
8.0.90.0000.00717.05
8.0.80.0160.00617.16
8.0.70.0040.00417.14
8.0.60.0040.00417.03
8.0.50.0040.00416.93
8.0.30.0110.01117.43
8.0.20.0080.01317.40
8.0.10.0000.00717.33
8.0.00.0110.00616.89
7.4.330.0020.00215.25
7.4.320.0030.00316.84
7.4.300.0040.00416.71
7.4.290.0040.00416.82
7.4.280.0000.00916.66
7.4.270.0040.00416.70
7.4.260.0030.00316.73
7.4.250.0070.00016.66
7.4.240.0020.00516.81
7.4.230.0000.00716.59
7.4.220.0100.00716.79
7.4.210.0060.00916.79
7.4.200.0000.00716.63
7.4.160.0120.00316.83
7.4.150.0030.01617.40
7.4.140.0150.01817.86
7.4.130.0090.01016.66
7.4.120.0150.00516.66
7.4.110.0070.01016.68
7.4.100.0090.00916.98
7.4.90.0060.01216.70
7.4.80.0120.00619.39
7.4.70.0130.01016.63
7.4.60.0090.00916.68
7.4.50.0030.00516.83
7.4.40.0100.00716.65
7.4.30.0100.00716.63
7.4.10.0110.00615.02
7.4.00.0060.01215.15
7.3.330.0000.00513.44
7.3.320.0000.00513.25
7.3.310.0000.00916.39
7.3.300.0070.00016.32
7.3.290.0080.00716.53
7.3.280.0100.01016.56
7.3.270.0090.00917.40
7.3.260.0000.01716.74
7.3.250.0130.00416.67
7.3.240.0160.00316.59
7.3.230.0120.00716.61
7.3.210.0160.00616.50
7.3.200.0160.00319.39
7.3.190.0230.00016.81
7.3.180.0100.00716.62
7.3.170.0160.00016.61
7.3.160.0080.00816.53
7.3.130.0040.01414.72
7.3.120.0100.00615.02
7.3.110.0040.01414.83
7.3.100.0040.01014.97
7.3.90.0080.00815.10
7.3.80.0090.00514.70
7.3.70.0040.00514.90
7.3.60.0040.00914.91
7.3.50.0050.00914.91
7.3.40.0050.00514.79
7.3.30.0100.00714.88
7.3.20.0050.00716.89
7.3.10.0090.00516.81
7.3.00.0050.00616.71
7.2.330.0140.00316.84
7.2.320.0040.01416.71
7.2.310.0070.01016.68
7.2.300.0130.01016.94
7.2.290.0090.00917.06
7.2.260.0060.01214.96
7.2.250.0020.01415.10
7.2.240.0070.00815.30
7.2.230.0060.01115.30
7.2.220.0030.01015.37
7.2.210.0080.00715.26
7.2.200.0020.01015.23
7.2.190.0050.01015.28
7.2.180.0020.00915.26
7.2.170.0080.00815.30
7.2.160.0030.00915.25
7.2.150.0060.00616.98
7.2.140.0040.01417.07
7.2.130.0090.00017.06
7.2.120.0070.00717.11
7.2.110.0030.01317.05
7.2.100.0060.00717.16
7.2.90.0070.00716.79
7.2.80.0060.01016.83
7.2.70.0060.00917.05
7.2.60.0070.01116.93
7.2.50.0060.00617.19
7.2.40.0070.00717.02
7.2.30.0040.01116.99
7.2.20.0090.00617.23
7.2.10.0070.01117.03
7.2.00.0030.01018.59
7.1.330.0050.01015.98
7.1.320.0040.00715.87
7.1.310.0050.00415.86
7.1.300.0100.00516.06
7.1.290.0050.00715.85
7.1.280.0080.00715.89
7.1.270.0020.01015.72
7.1.260.0000.01115.91
7.1.250.0060.00616.09
7.1.240.0100.00315.82
7.1.230.0030.01216.04
7.1.220.0120.00016.08
7.1.210.0080.00416.08
7.1.200.0110.00415.85
7.1.190.0080.00615.83
7.1.180.0000.01115.63
7.1.170.0130.00315.60
7.1.160.0030.00615.88
7.1.150.0090.00915.90
7.1.140.0000.00915.93
7.1.130.0040.01115.77
7.1.120.0080.00315.83
7.1.110.0000.01215.96
7.1.100.0070.00617.18
7.1.90.0060.00815.98
7.1.80.0030.01016.10
7.1.70.0070.00716.52
7.1.60.0050.01517.38
7.1.50.0050.01316.33
7.1.40.0060.00915.62
7.1.30.0040.01115.82
7.1.20.0030.00915.65
7.1.10.0040.01515.84
7.1.00.0050.04119.18
7.0.330.0070.00715.49
7.0.320.0030.01015.48
7.0.310.0030.01015.76
7.0.300.0130.00015.27
7.0.290.0030.00715.61
7.0.280.0090.00615.51
7.0.270.0070.00715.55
7.0.260.0090.00315.35
7.0.250.0030.00615.25
7.0.240.0000.01515.57
7.0.230.0000.01515.52
7.0.220.0000.01715.70
7.0.210.0110.00315.39
7.0.200.0210.00815.17
7.0.190.0030.01015.28
7.0.180.0100.00315.69
7.0.170.0110.00415.64
7.0.160.0060.00615.33
7.0.150.0120.00015.60
7.0.140.0000.04318.98
7.0.130.0090.00315.53
7.0.120.0000.01715.51
7.0.110.0060.00315.56
7.0.100.0060.00815.48
7.0.90.0000.00815.42
7.0.80.0030.01315.66
7.0.70.0070.00715.46
7.0.60.0050.04417.94
7.0.50.0050.03016.83
7.0.40.0080.04516.78
7.0.30.0200.02516.88
7.0.20.0210.02216.96
7.0.10.0090.04816.89
7.0.00.0090.03817.01
5.6.400.0040.01114.31
5.6.390.0030.00614.45
5.6.380.0040.00414.47
5.6.370.0090.00614.64
5.6.360.0060.00614.56
5.6.350.0060.00914.71
5.6.340.0060.01014.50
5.6.330.0110.00314.44
5.6.320.0060.00314.66
5.6.310.0000.01314.41
5.6.300.0090.00614.31
5.6.290.0110.00314.56
5.6.280.0030.04217.93
5.6.270.0030.01214.80
5.6.260.0110.00314.43
5.6.250.0090.00214.58
5.6.240.0030.01014.47
5.6.230.0030.00714.34
5.6.220.0070.00714.84
5.6.210.0090.04417.48
5.6.200.0050.02916.42
5.6.190.0090.04517.52
5.6.180.0120.05017.52
5.6.170.0170.03217.49
5.6.160.0080.02517.54
5.6.150.0100.03816.49
5.6.140.0020.04916.31
5.6.130.0070.04216.60
5.6.120.0100.02117.74
5.6.110.0100.03917.79
5.6.100.0050.04617.64
5.6.90.0070.04917.70
5.6.80.0100.03217.36
5.6.70.1990.01617.42
5.6.60.0000.00914.25
5.6.50.0000.01414.45
5.6.40.0040.01114.66
5.6.30.0070.01014.32
5.6.20.0060.00314.70
5.6.10.0090.00614.52
5.6.00.0040.01214.38
5.5.380.0080.00514.55
5.5.370.0100.00314.58
5.5.360.0030.00514.48
5.5.350.0080.03317.50
5.5.340.0050.04116.40
5.5.330.0070.03517.66
5.5.320.0230.03217.40
5.5.310.0200.04017.38
5.5.300.0050.02716.28
5.5.290.0020.02816.25
5.5.280.0050.04617.53
5.5.270.0070.03517.61
5.5.260.0070.04517.79
5.5.250.0140.03417.59
5.5.240.0200.03817.28
5.5.230.0060.00614.32
5.5.220.0080.00414.16
5.5.210.0000.01414.09
5.5.200.0060.01214.43
5.5.190.0130.00014.30
5.5.180.0110.00414.48
5.5.170.0110.00614.33
5.5.160.0000.00914.23
5.5.150.0030.00614.50
5.5.140.0000.01514.05
5.5.130.0080.00314.50
5.5.120.0060.00614.11
5.5.110.0090.00314.59
5.5.100.0000.01414.56
5.5.90.0040.00814.50
5.5.80.0150.00314.39
5.5.70.0070.00714.44
5.5.60.0060.00314.42
5.5.50.0040.01114.51
5.5.40.0030.01014.21
5.5.30.0040.00714.37
5.5.20.0140.00014.19
5.5.10.0000.01314.20
5.5.00.0030.00614.34
5.4.450.0440.03515.45
5.4.440.0520.03615.44
5.4.430.0440.02815.51
5.4.420.0260.03815.42
5.4.410.0130.02815.47
5.4.400.0510.02815.14
5.4.390.0100.02715.21
5.4.380.0460.02915.17
5.4.370.0480.03315.19
5.4.360.0530.03315.27
5.4.350.0370.03715.10
5.4.340.0070.01911.71
5.4.330.0030.01011.08
5.4.320.0020.02811.90
5.4.310.0040.02811.88
5.4.300.0030.02511.77
5.4.290.0020.02611.93
5.4.280.0060.02111.78
5.4.270.0050.02311.80
5.4.260.0070.02011.77
5.4.250.0060.02211.84
5.4.240.0020.02511.95
5.4.230.0080.02111.77
5.4.220.0030.02211.76
5.4.210.0040.02511.83
5.4.200.0080.02011.86
5.4.190.0040.02311.65
5.4.180.0010.02411.83
5.4.170.0050.02211.91
5.4.160.0070.02311.75
5.4.150.0050.02211.90
5.4.140.0060.02011.62
5.4.130.0060.02611.59
5.4.120.0020.02111.54
5.4.110.0050.02111.60
5.4.100.0050.01911.65
5.4.90.0020.02511.71
5.4.80.0020.02311.55
5.4.70.0020.02411.73
5.4.60.0060.02111.67
5.4.50.0040.02211.56
5.4.40.0050.02211.63
5.4.30.0020.02511.65
5.4.20.0060.02011.59
5.4.10.0090.01611.57
5.4.00.0040.02211.34
5.3.290.0030.04112.89
5.3.280.0040.03912.82
5.3.270.0030.04212.82
5.3.260.0040.04112.83
5.3.250.0050.03812.82
5.3.240.0060.03712.82
5.3.230.0060.03712.82
5.3.220.0080.04012.79
5.3.210.0020.04212.79
5.3.200.0080.03412.79
5.3.190.0050.03812.79
5.3.180.0040.03812.79
5.3.170.0050.04212.78
5.3.160.0060.03612.79
5.3.150.0070.04512.78
5.3.140.0060.03912.77
5.3.130.0040.04112.77
5.3.120.0050.04212.77
5.3.110.0070.04212.77
5.3.100.0050.03912.25
5.3.90.0070.03812.24
5.3.80.0040.04112.22
5.3.70.0050.03812.23
5.3.60.0070.03512.22
5.3.50.0070.03612.16
5.3.40.0040.03812.16
5.3.30.0060.03512.12
5.3.20.0040.03711.90
5.3.10.0030.03611.86
5.3.00.0060.03511.85
5.2.170.0030.0329.36
5.2.160.0070.0279.36
5.2.150.0080.0279.36
5.2.140.0060.0299.36
5.2.130.0060.0279.32
5.2.120.0040.0309.32
5.2.110.0080.0259.32
5.2.100.0040.0289.31
5.2.90.0050.0289.31
5.2.80.0030.0329.31
5.2.70.0060.0299.31
5.2.60.0030.0339.26
5.2.50.0090.0319.23
5.2.40.0050.0289.21
5.2.30.0040.0309.18
5.2.20.0050.0289.17
5.2.10.0050.0269.09
5.2.00.0050.0288.95
5.1.60.0050.0298.23
5.1.50.0050.0318.23
5.1.40.0080.0308.21
5.1.30.0040.0268.57
5.1.20.0080.0238.58
5.1.10.0050.0278.30
5.1.00.0050.0268.30
5.0.50.0010.0236.79
5.0.40.0060.0196.64
5.0.30.0030.0326.46
5.0.20.0050.0186.44
5.0.10.0010.0256.41
5.0.00.0040.0306.41
4.4.90.0040.0204.78
4.4.80.0030.0144.76
4.4.70.0020.0164.75
4.4.60.0030.0154.76
4.4.50.0040.0144.77
4.4.40.0040.0274.70
4.4.30.0040.0144.76
4.4.20.0010.0174.85
4.4.10.0030.0154.84
4.4.00.0020.0254.76
4.3.110.0040.0144.67
4.3.100.0030.0144.66
4.3.90.0040.0134.63
4.3.80.0020.0244.58
4.3.70.0020.0154.63
4.3.60.0030.0214.63
4.3.50.0020.0164.63
4.3.40.0020.0244.54
4.3.30.0030.0153.29
4.3.20.0020.0233.26
4.3.10.0030.0183.22
4.3.00.0170.0276.91

preferences:
64.64 ms | 400 KiB | 5 Q