3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ReadXml($str) { $xml = simplexml_load_string($str); echo $xml->getName() . "\n"; foreach($xml->children() as $parent) { echo $parent->getName() . ': ' . $parent . "\n"; } } ReadXml('<Address><to>James</to><from>Jani</from><heading>Reminder</heading><body>Please check your mail.</body></Address>');

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.0120.00918.55
8.3.50.0080.01322.12
8.3.40.0070.00719.01
8.3.30.0140.00018.92
8.3.20.0040.00418.76
8.3.10.0090.00021.09
8.3.00.0040.00422.04
8.2.180.0120.00917.00
8.2.170.0100.00722.96
8.2.160.0040.01420.65
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00419.89
8.2.110.0060.00320.70
8.2.100.0040.00717.72
8.2.90.0000.00719.34
8.2.80.0080.00017.97
8.2.70.0060.00617.63
8.2.60.0030.00618.16
8.2.50.0050.00318.07
8.2.40.0040.00418.33
8.2.30.0070.00021.30
8.2.20.0040.00417.70
8.2.10.0040.00417.79
8.2.00.0040.00417.96
8.1.280.0110.00425.92
8.1.270.0050.00323.99
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0100.00022.59
8.1.230.0050.00621.21
8.1.220.0070.00018.77
8.1.210.0000.00819.04
8.1.200.0070.00317.48
8.1.190.0040.00417.80
8.1.180.0040.00418.10
8.1.170.0040.00418.79
8.1.160.0050.00219.11
8.1.150.0030.00618.78
8.1.140.0050.00317.72
8.1.130.0000.00718.10
8.1.120.0000.00817.56
8.1.110.0030.00517.61
8.1.100.0080.00017.63
8.1.90.0040.00417.71
8.1.80.0000.00717.49
8.1.70.0070.00017.63
8.1.60.0040.00417.67
8.1.50.0000.00717.58
8.1.40.0050.00317.68
8.1.30.0040.00417.85
8.1.20.0000.00917.82
8.1.10.0000.00817.61
8.1.00.0030.00617.50
8.0.300.0000.00720.27
8.0.290.0040.00417.18
8.0.280.0070.00018.65
8.0.270.0000.00717.39
8.0.260.0060.00016.93
8.0.250.0070.00017.24
8.0.240.0000.00717.23
8.0.230.0000.00717.03
8.0.220.0000.00717.07
8.0.210.0030.00317.07
8.0.200.0060.00317.19
8.0.190.0000.00817.12
8.0.180.0000.00717.04
8.0.170.0040.00417.09
8.0.160.0040.00417.05
8.0.150.0000.00717.00
8.0.140.0050.00217.03
8.0.130.0050.00013.45
8.0.120.0040.00416.95
8.0.110.0050.00316.88
8.0.100.0070.00017.05
8.0.90.0000.00716.97
8.0.80.0150.00017.12
8.0.70.0000.00816.88
8.0.60.0000.00716.97
8.0.50.0000.00717.05
8.0.30.0050.01417.45
8.0.20.0080.01417.40
8.0.10.0080.00017.09
8.0.00.0050.01216.80
7.4.330.0000.00516.95
7.4.320.0030.00316.78
7.4.300.0060.00016.80
7.4.290.0030.00316.78
7.4.280.0030.00616.63
7.4.270.0000.00716.77
7.4.260.0000.00513.50
7.4.250.0000.00716.54
7.4.240.0050.00316.84
7.4.230.0000.00716.91
7.4.220.0060.01216.56
7.4.210.0080.00816.78
7.4.200.0000.00716.61
7.4.190.0000.00816.54
7.4.160.0050.01416.78
7.4.150.0150.00317.40
7.4.140.0110.00817.86
7.4.130.0080.00816.71
7.4.120.0090.00916.72
7.4.110.0140.00716.76
7.4.100.0070.01016.76
7.4.90.0100.00716.54
7.4.80.0070.01019.39
7.4.70.0110.00716.55
7.4.60.0070.01016.59
7.4.50.0040.00416.56
7.4.40.0070.01122.77
7.4.30.0100.01316.63
7.4.00.0090.00915.05
7.3.330.0060.00013.42
7.3.320.0050.00013.27
7.3.310.0030.00316.30
7.3.300.0030.00316.41
7.3.290.0050.00916.48
7.3.280.0080.00816.45
7.3.270.0120.01217.40
7.3.260.0130.01118.24
7.3.250.0090.00916.80
7.3.240.0100.01116.69
7.3.230.0110.00616.71
7.3.210.0070.01516.54
7.3.200.0170.00719.39
7.3.190.0060.01516.74
7.3.180.0130.00316.48
7.3.170.0110.00916.50
7.3.160.0140.00616.64
7.3.120.0070.01014.79
7.3.110.0080.01014.87
7.3.100.0060.01014.78
7.3.90.0030.00815.01
7.3.80.0040.00714.85
7.3.70.0070.00414.97
7.3.60.0090.00314.89
7.3.50.0060.00614.96
7.3.40.0030.00814.94
7.3.30.0050.00514.85
7.3.20.0080.00816.65
7.3.10.0040.00916.67
7.3.00.0080.00516.78
7.2.330.0090.00917.00
7.2.320.0070.01016.55
7.2.310.0100.00716.93
7.2.300.0090.00616.95
7.2.290.0120.00616.68
7.2.250.0130.00715.16
7.2.240.0120.00914.88
7.2.230.0070.01015.24
7.2.220.0070.00815.05
7.2.210.0030.01015.12
7.2.200.0060.00715.10
7.2.190.0020.01415.00
7.2.180.0120.00415.27
7.2.170.0000.01115.21
7.2.160.0060.00614.89
7.2.150.0070.01117.16
7.2.140.0100.01017.12
7.2.130.0040.01116.98
7.2.120.0070.00717.18
7.2.110.0080.00616.92
7.2.100.0060.00817.10
7.2.90.0100.00217.00
7.2.80.0080.00816.88
7.2.70.0090.00617.09
7.2.60.0060.00516.83
7.2.50.0090.00717.04
7.2.40.0050.01017.12
7.2.30.0040.01117.02
7.2.20.0070.01016.93
7.2.10.0090.00917.00
7.2.00.0050.01117.83
7.1.330.0070.01116.06
7.1.320.0050.01015.93
7.1.310.0080.00415.91
7.1.300.0020.01115.81
7.1.290.0050.00415.87
7.1.280.0060.00715.80
7.1.270.0060.00615.68
7.1.260.0060.01115.92
7.1.250.0030.00915.75
7.1.240.0060.00615.93
7.1.230.0040.00715.67
7.1.220.0060.00915.96
7.1.210.0000.01315.94
7.1.200.0040.01115.86
7.1.190.0120.00615.87
7.1.180.0030.01015.84
7.1.170.0070.00715.85
7.1.160.0040.01215.93
7.1.150.0060.00915.59
7.1.140.0030.00715.82
7.1.130.0040.01115.72
7.1.120.0000.01315.84
7.1.110.0090.00915.82
7.1.100.0040.00917.09
7.1.90.0030.01215.86
7.1.80.0070.01115.76
7.1.70.0000.01116.30
7.1.60.0060.01317.63
7.1.50.0120.00716.43
7.1.40.0030.00715.76
7.1.30.0100.00716.03
7.1.20.0030.00715.79
7.1.10.0070.00415.88
7.1.00.0070.01819.08
7.0.330.0030.01015.47
7.0.320.0000.01315.51
7.0.310.0030.00715.36
7.0.300.0030.00515.54
7.0.290.0100.00715.18
7.0.280.0110.00415.42
7.0.270.0100.00615.59
7.0.260.0030.01315.61
7.0.250.0030.01015.66
7.0.240.0000.01415.56
7.0.230.0090.00715.37
7.0.220.0040.01215.38
7.0.210.0090.00915.50
7.0.200.0150.00415.78
7.0.190.0090.00615.42
7.0.180.0000.00815.29
7.0.170.0060.00615.58
7.0.160.0060.00915.38
7.0.150.0000.00915.48
7.0.140.0070.03518.90
7.0.130.0060.00315.45
7.0.120.0060.00915.78
7.0.110.0030.00615.80
7.0.100.0090.00615.45
7.0.90.0030.01015.54
7.0.80.0110.00715.27
7.0.70.0100.04018.74
7.0.60.0070.04218.62
7.0.50.0100.03818.99
7.0.40.0030.03516.79
7.0.30.0050.03916.81
7.0.20.0050.03116.80
7.0.10.0080.01816.86
7.0.00.0020.02816.79
5.6.400.0100.00614.06
5.6.390.0090.00614.56
5.6.380.0060.00914.34
5.6.370.0060.00614.56
5.6.360.0090.00914.29
5.6.350.0060.01014.83
5.6.340.0110.00714.32
5.6.330.0100.00714.49
5.6.320.0050.00514.11
5.6.310.0070.01014.45
5.6.300.0030.01214.19
5.6.290.0040.01114.39
5.6.280.0050.03817.96
5.6.270.0030.00714.79
5.6.260.0060.00914.41
5.6.250.0030.00714.24
5.6.240.0080.00314.39
5.6.230.0080.01114.27
5.6.220.0120.04217.56
5.6.210.0070.04617.38
5.6.200.0050.04817.62
5.6.190.0060.03417.80
5.6.180.0040.05717.84
5.6.170.0020.03617.79
5.6.160.0080.04117.74
5.6.150.0040.04117.71
5.6.140.0030.03718.07
5.6.130.0100.02717.96
5.6.120.0070.02317.67
5.6.110.0070.04717.89
5.6.100.0050.02817.70
5.6.90.0050.05117.70
5.6.80.0030.04617.49
5.6.70.0050.04617.36
5.6.60.0030.04117.39
5.6.50.0030.03317.32
5.6.40.0080.04517.47
5.6.30.0050.04617.34
5.6.20.0050.02817.37
5.6.10.0050.03017.34
5.6.00.0080.03117.38
5.5.380.0000.01514.46
5.5.370.0070.01114.35
5.5.360.0100.04017.55
5.5.350.0050.02917.57
5.5.340.0070.02817.65
5.5.330.0040.02517.63
5.5.320.0030.04317.50
5.5.310.0080.03817.63
5.5.300.0050.03417.49
5.5.290.0060.02517.74
5.5.280.0080.04517.66
5.5.270.0070.04517.67
5.5.260.0030.04517.79
5.5.250.0050.03217.55
5.5.240.0050.04217.35
5.5.230.0040.03717.48
5.5.220.0070.03417.30
5.5.210.0000.03317.29
5.5.200.0050.03817.29
5.5.190.0050.03717.29
5.5.180.0080.02817.37
5.5.170.0060.00914.19
5.5.160.0050.02517.35
5.5.150.0020.04216.99
5.5.140.0100.04017.40
5.5.130.0050.04217.09
5.5.120.0050.04317.30
5.5.110.0020.04717.20
5.5.100.0070.04517.26
5.5.90.0050.04217.20
5.5.80.0080.04017.29
5.5.70.0020.04517.21
5.5.60.0090.03217.21
5.5.50.0080.02817.21
5.5.40.0000.03516.94
5.5.30.0070.04417.29
5.5.20.0080.04217.30
5.5.10.0060.03717.25
5.5.00.0090.04017.07
5.4.450.0030.04516.16
5.4.440.0020.03316.11
5.4.430.0060.03916.10
5.4.420.0050.03516.22
5.4.410.0070.04016.00
5.4.400.0020.04516.06
5.4.390.0020.03015.99
5.4.380.0060.04316.07
5.4.370.0080.04315.95
5.4.360.0010.04616.07
5.4.350.0080.02816.04
5.4.340.0030.03016.09
5.4.330.0110.00312.87
5.4.320.0060.03816.07
5.4.310.0050.03816.06
5.4.300.0040.03716.04
5.4.290.0060.04216.08
5.4.280.0060.03816.07
5.4.270.0050.03715.98
5.4.260.0040.03716.03
5.4.250.0020.02916.03
5.4.240.0090.03715.95
5.4.230.0030.04116.06
5.4.220.0100.02516.05
5.4.210.0030.03415.89
5.4.200.0080.03715.99
5.4.190.0070.03516.06
5.4.180.0030.03816.07
5.4.170.0020.03916.07
5.4.160.0020.04416.02
5.4.150.0070.04116.04
5.4.140.0030.03714.68
5.4.130.0030.04114.72
5.4.120.0060.04014.69
5.4.110.0030.02914.69
5.4.100.0050.01914.69
5.4.90.0030.02314.74
5.4.80.0090.03514.71
5.4.70.0030.04114.64
5.4.60.0030.03914.71
5.4.50.0030.03014.68
5.4.40.0030.04014.71
5.4.30.0050.03614.72
5.4.20.0080.02814.68
5.4.10.0030.04214.71
5.4.00.0030.03614.46
5.3.290.0030.03313.87
5.3.280.0020.04213.75
5.3.270.0060.04013.81
5.3.260.0020.04513.79
5.3.250.0050.03213.77
5.3.240.0030.03213.83
5.3.230.0020.03913.83
5.3.220.0030.03313.83
5.3.210.0050.03213.77
5.3.200.0030.03813.79
5.3.190.0060.03713.75
5.3.180.0000.04413.72
5.3.170.0020.03513.73
5.3.160.0000.03613.83
5.3.150.0020.04113.79
5.3.140.0100.03913.84
5.3.130.0020.04213.83
5.3.120.0050.04213.79
5.3.110.0060.04013.78
5.3.100.0020.04213.51
5.3.90.0020.03713.51
5.3.80.0020.02913.43
5.3.70.0030.02813.54
5.3.60.0070.03513.50
5.3.50.0060.03813.44
5.3.40.0030.03913.51
5.3.30.0030.03513.49
5.3.20.0020.03313.32
5.3.10.0020.03713.26
5.3.00.0060.03113.38
5.2.170.0030.04712.79
5.2.160.0030.06312.79
5.2.150.0000.06312.79
5.2.140.0030.05012.79
5.2.130.0030.06012.79
5.2.120.0100.05712.79
5.2.110.0000.05712.79
5.2.100.0030.05312.79
5.2.90.0070.06012.79
5.2.80.0000.06312.79
5.2.70.0130.05712.79
5.2.60.0030.06712.79
5.2.50.0000.05312.79
5.2.40.0100.05712.79
5.2.30.0030.03712.79
5.2.20.0030.04012.79
5.2.10.0000.06312.79
5.2.00.0030.06012.79
5.1.60.0030.04312.79
5.1.50.0100.05012.79
5.1.40.0000.07012.79
5.1.30.0100.04312.79
5.1.20.0030.03312.79
5.1.10.0070.04012.79
5.1.00.0000.05712.79
5.0.50.0030.04012.79
5.0.40.0000.04312.79
5.0.30.0030.06312.79
5.0.20.0000.04312.79
5.0.10.0030.03712.79
5.0.00.0030.06312.79
4.4.90.0000.03712.79
4.4.80.0000.03312.79
4.4.70.0000.03712.79
4.4.60.0000.03712.79
4.4.50.0030.02312.79
4.4.40.0030.05312.79
4.4.30.0000.03312.79
4.4.20.0000.03712.79
4.4.10.0070.03312.79
4.4.00.0000.06012.79
4.3.110.0000.03312.79
4.3.100.0000.02312.79
4.3.90.0000.03312.79
4.3.80.0000.05312.79
4.3.70.0030.03012.79
4.3.60.0070.02312.79
4.3.50.0030.02312.79
4.3.40.0030.05312.79
4.3.30.0000.04012.79
4.3.20.0000.03712.79
4.3.10.0000.04012.79
4.3.00.0000.03712.79

preferences:
41.91 ms | 401 KiB | 5 Q