3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlstr='<mainGroup> <groupHeading type="heading">This is a sample heading</groupHeading> <group type="groupType1"> <title>Title1</title> <date when="0001"></date> </group> <group type="groupType1"> <title>Title2</title> <date when="0002"></date> </group> <group type="groupType2"> <title>Title3</title> <date when="0003"></date> </group> </mainGroup>'; $xml=simplexml_load_string($xmlstr); // now loop through all <groupheading>, we use an xpath-query... foreach ($xml->xpath("//groupheading") as $gh) { echo $gh; } ?>

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.00916.98
8.3.50.0110.00617.80
8.3.40.0070.01019.00
8.3.30.0080.00818.96
8.3.20.0000.00819.17
8.3.10.0030.00620.78
8.3.00.0080.00019.50
8.2.180.0100.01018.91
8.2.170.0130.00622.96
8.2.160.0090.00919.33
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0050.00319.32
8.2.110.0060.00319.43
8.2.100.0030.00718.09
8.2.90.0030.00619.52
8.2.80.0060.00319.64
8.2.70.0000.00817.88
8.2.60.0040.00418.41
8.2.50.0050.00318.07
8.2.40.0110.00018.47
8.2.30.0030.00620.23
8.2.20.0090.00019.77
8.2.10.0000.00718.11
8.2.00.0040.00418.27
8.1.280.0070.01025.92
8.1.270.0060.00324.66
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0150.00722.37
8.1.230.0110.00021.35
8.1.220.0030.00518.77
8.1.210.0050.00319.54
8.1.200.0100.00017.72
8.1.190.0040.00418.04
8.1.180.0000.00818.10
8.1.170.0040.00419.15
8.1.160.0030.00519.29
8.1.150.0000.00819.00
8.1.140.0000.00717.79
8.1.130.0000.00718.24
8.1.120.0030.00717.92
8.1.110.0030.00517.88
8.1.100.0080.00017.89
8.1.90.0070.00017.71
8.1.80.0000.00717.91
8.1.70.0070.00017.77
8.1.60.0040.00418.02
8.1.50.0040.00417.94
8.1.40.0000.00717.88
8.1.30.0000.00817.93
8.1.20.0040.00418.10
8.1.10.0050.00217.76
8.1.00.0000.00717.75
8.0.300.0040.00420.31
8.0.290.0040.00417.13
8.0.280.0030.00318.80
8.0.270.0030.00317.61
8.0.260.0000.00717.12
8.0.250.0000.00817.37
8.0.240.0070.00417.38
8.0.230.0030.00317.32
8.0.220.0000.00717.31
8.0.210.0000.00717.08
8.0.200.0030.00317.16
8.0.190.0090.00017.29
8.0.180.0050.00317.38
8.0.170.0000.00817.10
8.0.160.0040.00417.42
8.0.150.0000.00817.26
8.0.140.0000.00817.20
8.0.130.0060.00013.73
8.0.120.0000.00717.05
8.0.110.0000.00717.27
8.0.100.0040.00417.23
8.0.90.0050.00217.24
8.0.80.0130.00717.24
8.0.70.0040.00417.31
8.0.60.0040.00417.14
8.0.50.0090.00017.11
8.0.30.0150.00617.73
8.0.20.0110.01117.29
8.0.10.0040.00417.41
8.0.00.0080.01317.12
7.4.330.0020.00213.32
7.4.320.0030.00316.92
7.4.300.0000.00616.79
7.4.290.0030.00317.02
7.4.280.0070.00016.95
7.4.270.0000.00716.82
7.4.260.0030.00313.62
7.4.250.0040.00417.04
7.4.240.0000.00717.04
7.4.230.0030.00316.96
7.4.220.0100.01016.92
7.4.210.0120.00916.94
7.4.200.0030.00316.96
7.4.190.0000.00717.02
7.4.160.0060.00916.95
7.4.150.0150.00916.79
7.4.140.0070.01016.95
7.4.130.0130.00416.96
7.4.120.0130.01016.90
7.4.110.0060.01516.96
7.4.100.0080.00816.84
7.4.90.0100.00716.77
7.4.80.0090.00919.39
7.4.70.0130.00316.75
7.4.60.0000.01816.98
7.4.50.0050.00016.86
7.4.40.0060.01216.77
7.4.30.0030.01316.94
7.4.00.0100.00715.12
7.3.330.0000.00513.36
7.3.320.0050.00013.31
7.3.310.0000.00716.67
7.3.300.0070.00016.61
7.3.290.0050.00916.54
7.3.280.0120.00316.62
7.3.270.0090.00916.88
7.3.260.0030.01416.75
7.3.250.0130.00816.88
7.3.240.0130.00316.67
7.3.230.0140.00416.57
7.3.210.0100.00716.56
7.3.200.0150.00816.70
7.3.190.0140.00316.54
7.3.180.0080.00716.95
7.3.170.0080.00916.48
7.3.160.0030.01317.04
7.3.120.0150.00215.03
7.3.110.0040.01514.80
7.3.100.0030.00915.05
7.3.90.0060.00914.91
7.3.80.0100.00714.83
7.3.70.0000.01315.06
7.3.60.0050.00515.09
7.3.50.0000.01214.96
7.3.40.0060.00614.84
7.3.30.0030.00814.91
7.3.20.0080.00616.85
7.3.10.0060.00616.89
7.3.00.0040.01216.75
7.2.330.0130.00317.02
7.2.320.0170.00317.04
7.2.310.0090.01317.01
7.2.300.0150.00316.90
7.2.290.0080.00816.84
7.2.250.0120.00615.34
7.2.240.0070.01415.04
7.2.230.0110.00715.20
7.2.220.0070.01015.22
7.2.210.0000.01015.43
7.2.200.0060.00315.01
7.2.190.0030.01315.41
7.2.180.0070.00715.04
7.2.170.0130.00015.19
7.2.00.0130.00319.51
7.1.330.0070.01015.87
7.1.320.0070.00316.04
7.1.310.0030.00615.98
7.1.300.0120.00315.74
7.1.290.0040.00415.77
7.1.280.0040.01115.75
7.1.270.0080.00315.90
7.1.260.0030.00715.91
7.1.100.0000.01318.24
7.1.70.0040.00417.30
7.1.60.0120.01219.31
7.1.50.0030.01416.70
7.1.00.0070.07022.66
7.0.200.0000.00817.01
7.0.140.0100.06722.27
7.0.120.0000.07722.35
7.0.60.0130.08020.12
7.0.50.0170.07018.01
7.0.40.0170.05720.14
7.0.30.0200.04720.21
7.0.20.0370.07720.24
7.0.10.0200.07320.40
7.0.00.0070.09020.23
5.6.280.0100.06721.15
5.6.210.0130.07720.83
5.6.200.0100.08018.34
5.6.190.0070.03720.57
5.6.180.3830.03720.63
5.6.170.0270.05320.65
5.6.160.0130.08020.66
5.6.150.0000.05318.30
5.6.140.0070.08718.34
5.6.130.0200.05018.41
5.6.120.0000.04321.04
5.6.110.0070.04021.28
5.6.100.0100.08321.20
5.6.90.0170.06721.15
5.6.80.0000.04320.57
5.5.350.0270.07720.58
5.5.340.0100.03318.21
5.5.330.0030.04020.65
5.5.320.0330.07720.47
5.5.310.0330.07020.54
5.5.300.0200.07318.10
5.5.290.0130.08018.10
5.5.280.0100.07720.98
5.5.270.0130.08321.08
5.5.260.0170.07320.94
5.5.250.0170.07020.79
5.5.240.0170.05720.46
5.4.450.0100.07019.63
5.4.440.0130.07319.60
5.4.430.0030.05319.71
5.4.420.0070.08319.34
5.4.410.0130.07319.49
5.4.400.0130.07319.23
5.4.390.0070.07719.40
5.4.380.0030.05319.21
5.4.370.0130.05719.46
5.4.360.0000.08719.46
5.4.350.0130.06719.39
5.4.340.0070.07319.00
5.4.320.0000.07719.27
5.4.310.0070.06319.00
5.4.300.0030.05319.13
5.4.290.0000.04719.15
5.4.280.0030.08019.36
5.4.270.0030.07719.27
5.4.260.0170.05019.15
5.4.250.0030.08019.36
5.4.240.0130.07319.35
5.4.230.0100.05019.38
5.4.220.0130.06319.35
5.4.210.0070.05319.31
5.4.200.0070.07719.38
5.4.190.0000.04019.30
5.4.180.0070.03319.39
5.4.170.0130.02719.29
5.4.160.0030.04319.29
5.4.150.0030.03718.92
5.4.140.0030.03316.42
5.4.130.0070.03016.63
5.4.120.0070.03716.60
5.4.110.0070.03316.43
5.4.100.0030.03316.59
5.4.90.0100.06316.40
5.4.80.0000.04016.39
5.4.70.0000.03716.38
5.4.60.0030.03316.57
5.4.50.0030.03316.55
5.4.40.0070.03316.50
5.4.30.0070.03016.46
5.4.20.0070.05016.50
5.4.10.0000.03716.50
5.4.00.0000.03716.07
5.3.290.0030.08014.76
5.3.280.0070.04314.80
5.3.270.0030.03714.76
5.3.260.0070.04014.84
5.3.250.0000.03714.68
5.3.240.0030.05014.65
5.3.230.0000.04014.75
5.3.220.0000.04014.63
5.3.210.0070.03314.72
5.3.200.0030.03714.73
5.3.190.0030.05014.73
5.3.180.0000.04714.64
5.3.170.0000.03714.70
5.3.160.0000.04314.73
5.3.150.0030.03714.73
5.3.140.0000.04014.55
5.3.130.0000.04014.79
5.3.120.0030.03714.70
5.3.110.0030.04014.55
5.3.100.0070.03314.09
5.3.90.0000.04314.18
5.3.80.0000.03714.18
5.3.70.0070.03313.98
5.3.60.0030.03314.16
5.3.50.0000.03714.15
5.3.40.0030.03314.11
5.3.30.0000.04014.13
5.3.20.0000.04013.89
5.3.10.0000.03713.81
5.3.00.0070.03013.85
5.2.170.0030.03011.21
5.2.160.0000.03011.32
5.2.150.0030.03011.21
5.2.140.0030.02711.21
5.2.130.0030.03011.30
5.2.120.0070.02711.31
5.2.110.0000.03011.28
5.2.100.0100.02011.33
5.2.90.0030.02711.31
5.2.80.0030.03011.25
5.2.70.0030.02711.29
5.2.60.0030.03011.28
5.2.50.0030.04011.24
5.2.40.0100.05711.20
5.2.30.0030.06011.19
5.2.20.0100.04311.11
5.2.10.0070.06011.01
5.2.00.0100.04710.94
5.1.60.0000.03710.16
5.1.50.0030.04010.22
5.1.40.0070.04310.21
5.1.30.0000.06010.55
5.1.20.0070.05310.57
5.1.10.0030.05710.26
5.1.00.0030.05710.30
5.0.50.0030.0408.73
5.0.40.0030.0278.64
5.0.30.0170.0508.37
5.0.20.0100.0408.34
5.0.10.0030.0378.36
5.0.00.0070.0578.35
4.4.90.0000.0208.08
4.4.80.0100.0238.08
4.4.70.0030.0208.08
4.4.60.0030.0178.08
4.4.50.0030.0338.08
4.4.40.0000.0438.08
4.4.30.0000.0408.08
4.4.20.0130.0208.08
4.4.10.0070.0338.08
4.4.00.0030.0438.08
4.3.110.0100.0308.08
4.3.100.0000.0308.08
4.3.90.0030.0308.08
4.3.80.0030.0538.08
4.3.70.0070.0208.08
4.3.60.0030.0308.08
4.3.50.0070.0208.08
4.3.40.0100.0338.08
4.3.30.0000.0278.08
4.3.20.0070.0308.08
4.3.10.0030.0278.08
4.3.00.0000.0378.08

preferences:
46.96 ms | 401 KiB | 5 Q