3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<EOF <people> <person name="Person 1"> <child/> <child/> <child/> </person> <person name="Person 2"> <child/> <child/> <child/> <child/> <child/> </person> </people> EOF; $elem = new SimpleXMLElement($xml); foreach ($elem as $person) { printf("%s has got %d children.\n", $person['name'], $person->count()); } ?>

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.0130.00718.40
8.3.50.0120.01022.14
8.3.40.0180.00418.74
8.3.30.0120.00319.20
8.3.20.0040.00420.59
8.3.10.0080.00021.89
8.3.00.0000.00919.18
8.2.180.0130.01018.41
8.2.170.0070.00722.96
8.2.160.0030.01020.64
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00019.90
8.2.110.0100.00022.51
8.2.100.0040.00819.76
8.2.90.0030.00518.13
8.2.80.0040.00419.09
8.2.70.0000.01017.63
8.2.60.0080.00018.04
8.2.50.0030.00618.07
8.2.40.0080.00018.34
8.2.30.0000.00718.34
8.2.20.0040.00417.97
8.2.10.0050.00218.38
8.2.00.0000.00718.03
8.1.280.0060.00925.92
8.1.270.0100.00719.07
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0060.00320.45
8.1.230.0080.00317.89
8.1.220.0030.00617.91
8.1.210.0090.00018.77
8.1.200.0060.00317.60
8.1.190.0030.00617.48
8.1.180.0040.00418.10
8.1.170.0080.00018.74
8.1.160.0000.00719.16
8.1.150.0040.00419.04
8.1.140.0040.00417.56
8.1.130.0040.00417.95
8.1.120.0070.00017.60
8.1.110.0000.00717.58
8.1.100.0000.00817.63
8.1.90.0040.00417.70
8.1.80.0000.00717.73
8.1.70.0070.00017.55
8.1.60.0060.00317.77
8.1.50.0030.00517.65
8.1.40.0030.00617.77
8.1.30.0030.00617.89
8.1.20.0000.00717.88
8.1.10.0060.00317.85
8.1.00.0040.00417.71
8.0.300.0000.00718.77
8.0.290.0090.00017.00
8.0.280.0000.00718.52
8.0.270.0030.00317.38
8.0.260.0000.00717.34
8.0.250.0070.00017.25
8.0.240.0030.00817.18
8.0.230.0000.00717.09
8.0.220.0030.00317.04
8.0.210.0040.00417.06
8.0.200.0030.00317.27
8.0.190.0070.00017.06
8.0.180.0050.00217.08
8.0.170.0030.00517.24
8.0.160.0080.00017.19
8.0.150.0000.00817.12
8.0.140.0000.00817.16
8.0.130.0000.00613.69
8.0.120.0000.00817.05
8.0.110.0000.00917.23
8.0.100.0000.00817.18
8.0.90.0040.00417.21
8.0.80.0090.00617.30
8.0.70.0000.00717.27
8.0.60.0040.00417.09
8.0.50.0000.00717.13
8.0.30.0090.01517.33
8.0.20.0120.01017.40
8.0.10.0000.00717.15
8.0.00.0120.01017.19
7.4.330.0060.00015.03
7.4.320.0030.00316.75
7.4.300.0000.00616.70
7.4.290.0000.00716.79
7.4.280.0030.00516.68
7.4.270.0000.00616.79
7.4.260.0060.00316.65
7.4.250.0000.00916.73
7.4.240.0060.00216.84
7.4.230.0000.00716.62
7.4.220.0100.01016.66
7.4.210.0070.01116.89
7.4.200.0040.00416.48
7.4.160.0030.01416.76
7.4.150.0100.01017.40
7.4.140.0110.00817.86
7.4.130.0110.00616.84
7.4.120.0040.01316.71
7.4.110.0120.01216.87
7.4.100.0120.00916.63
7.4.90.0070.01016.75
7.4.80.0060.01619.39
7.4.70.0100.00716.76
7.4.60.0160.00016.78
7.4.50.0040.00416.79
7.4.40.0040.01216.84
7.4.30.0120.01216.72
7.4.00.0100.00814.89
7.3.330.0000.00513.32
7.3.320.0000.00613.52
7.3.310.0050.00316.64
7.3.300.0030.00316.59
7.3.290.0070.00716.52
7.3.280.0060.01316.53
7.3.270.0120.00617.40
7.3.260.0170.00316.74
7.3.250.0120.00616.68
7.3.240.0130.00416.65
7.3.230.0100.00716.60
7.3.210.0070.01116.53
7.3.200.0090.00919.39
7.3.190.0030.01316.82
7.3.180.0070.00916.75
7.3.170.0120.00616.67
7.3.160.0120.00316.60
7.3.120.0070.01015.05
7.3.110.0110.00715.07
7.3.100.0030.01314.73
7.3.90.0000.01515.02
7.3.80.0040.00814.86
7.3.70.0070.00715.04
7.3.60.0060.00914.76
7.3.50.0000.00815.10
7.3.40.0030.01014.93
7.3.30.0040.01114.90
7.3.20.0040.01116.72
7.3.10.0030.01016.60
7.3.00.0100.00216.73
7.2.330.0090.00916.75
7.2.320.0070.01016.87
7.2.310.0060.01016.65
7.2.300.0110.01116.64
7.2.290.0110.00616.90
7.2.250.0000.01915.14
7.2.240.0100.01015.01
7.2.230.0030.01415.33
7.2.220.0060.00315.11
7.2.210.0080.00415.13
7.2.200.0030.01015.23
7.2.190.0070.00314.93
7.2.180.0000.01315.12
7.2.170.0050.00515.35
7.2.130.0040.01217.11
7.2.120.0110.00417.04
7.2.110.0070.00417.00
7.2.100.0070.01017.23
7.2.90.0100.00317.00
7.2.80.0040.00716.89
7.2.70.0040.01117.18
7.2.60.0090.00317.07
7.2.50.0080.00416.81
7.2.40.0030.01317.28
7.2.30.0040.00717.13
7.2.20.0100.00317.04
7.2.10.0040.01116.98
7.2.00.0060.00818.16
7.1.330.0030.01015.95
7.1.320.0030.00715.81
7.1.310.0060.01215.75
7.1.300.0040.00415.65
7.1.290.0040.00815.89
7.1.280.0100.00615.96
7.1.270.0080.00615.81
7.1.260.0040.01115.96
7.1.250.0060.00315.98
7.1.240.0060.00616.05
7.1.230.0060.00615.97
7.1.220.0070.00715.70
7.1.210.0060.00616.04
7.1.200.0050.00815.79
7.1.190.0040.00716.11
7.1.180.0000.01515.74
7.1.170.0070.00716.08
7.1.160.0030.00715.80
7.1.150.0070.00716.04
7.1.140.0030.01215.93
7.1.130.0060.00316.07
7.1.120.0060.00916.10
7.1.110.0060.00615.68
7.1.100.0090.00117.02
7.1.90.0080.00315.55
7.1.80.0080.00315.59
7.1.70.0030.00516.49
7.1.60.0110.00817.59
7.1.50.0030.00816.37
7.1.40.0030.00716.05
7.1.30.0040.01115.80
7.1.20.0060.00615.70
7.1.10.0030.00615.94
7.1.00.0110.03619.14
7.0.330.0070.00415.55
7.0.320.0120.00015.54
7.0.310.0060.00615.30
7.0.300.0000.01115.46
7.0.290.0000.00815.50
7.0.280.0070.00715.62
7.0.270.0060.00915.60
7.0.260.0030.00715.41
7.0.250.0100.00315.45
7.0.240.0000.01215.51
7.0.230.0030.00915.61
7.0.220.0060.00615.59
7.0.210.0000.01315.42
7.0.200.0000.01016.20
7.0.190.0060.00615.63
7.0.180.0030.00715.34
7.0.170.0040.00815.50
7.0.160.0100.00315.37
7.0.150.0070.00715.51
7.0.140.0070.02718.69
7.0.130.0100.00315.60
7.0.120.0000.00915.34
7.0.110.0070.03917.87
7.0.100.0020.05117.85
7.0.90.0050.05017.72
7.0.80.0030.03717.84
7.0.70.0050.04117.87
7.0.60.0080.04117.67
7.0.50.0070.02517.85
7.0.40.0130.04016.68
7.0.30.0050.02816.78
7.0.20.0030.04416.60
7.0.10.0050.03016.73
7.0.00.0070.04216.77
5.6.380.0040.01114.07
5.6.370.0060.00914.07
5.6.360.0070.00314.30
5.6.350.0090.00614.10
5.6.340.0000.01114.67
5.6.330.0090.00014.57
5.6.320.0090.00314.52
5.6.310.0090.00014.48
5.6.300.0080.00414.36
5.6.290.0070.00314.45
5.6.280.0070.03717.73
5.6.270.0080.00414.29
5.6.260.0030.04817.76
5.6.250.0050.04317.46
5.6.240.0100.03817.53
5.6.230.0020.04717.54
5.6.220.0070.04317.57
5.6.210.0050.02517.64
5.6.200.0070.03617.55
5.6.190.0070.04117.60
5.6.180.0110.04117.66
5.6.170.0070.03017.50
5.6.160.0070.04117.50
5.6.150.0050.04117.53
5.6.140.0040.03517.41
5.6.130.0100.02217.58
5.6.120.0080.04217.54
5.6.110.0090.03317.62
5.6.100.0000.05417.52
5.6.90.0070.04317.36
5.6.80.0100.04017.22
5.6.70.0100.04017.32
5.6.60.0070.04517.21
5.6.50.0070.02217.10
5.6.40.0050.04617.15
5.6.30.0080.04117.29
5.6.20.0050.03117.23
5.6.10.0070.04317.10
5.6.00.0050.03917.09
5.5.380.0060.04214.29
5.5.370.0050.02614.39
5.5.360.0020.04514.55
5.5.350.0030.03814.36
5.5.340.0060.02814.68
5.5.330.0020.03714.67
5.5.320.0060.04114.62
5.5.310.0060.02114.64
5.5.300.0070.04014.81
5.5.290.0030.03814.55
5.5.280.0070.04214.63
5.5.270.0070.04014.86
5.5.260.0060.04214.81
5.5.250.0080.03714.46
5.5.240.0050.03114.40
5.5.230.0080.03814.28
5.5.220.0030.03814.13
5.5.210.0020.03814.23
5.5.200.0060.03314.05
5.5.190.0070.03814.51
5.5.180.0050.03814.30
5.5.170.0070.00011.09
5.5.160.0050.02314.19
5.5.150.0090.03314.26
5.5.140.0030.04014.17
5.5.130.0070.04614.21
5.5.120.0100.02014.39
5.5.110.0050.02014.43
5.5.100.0090.02314.33
5.5.90.0030.04114.45
5.5.80.0030.03814.28
5.5.70.0070.04314.23
5.5.60.0080.03814.14
5.5.50.0030.02514.15
5.5.40.0070.04214.10
5.5.30.0080.03914.09
5.5.20.0080.03514.32
5.5.10.0000.04514.15
5.5.00.0080.03614.17
5.4.450.0050.04015.43
5.4.440.0070.03715.24
5.4.430.0060.03315.20
5.4.420.0020.02215.39
5.4.410.0060.03315.09
5.4.400.0080.04015.22
5.4.390.0050.03715.13
5.4.380.0070.01815.06
5.4.370.0060.01815.16
5.4.360.0070.03815.00
5.4.350.0050.02315.10
5.4.340.0050.04215.10
5.4.330.0030.00911.20
5.4.320.0080.02315.07
5.4.310.0070.02215.25
5.4.300.0050.03315.04
5.4.290.0070.02515.08
5.4.280.0020.04415.11
5.4.270.0110.03615.17
5.4.260.0050.04015.08
5.4.250.0070.04115.15
5.4.240.0070.02315.10
5.4.230.0040.03315.17
5.4.220.0070.02515.13
5.4.210.0080.03514.99
5.4.200.0090.03415.14
5.4.190.0020.02614.94
5.4.180.0030.03415.20
5.4.170.0140.03515.13
5.4.160.0060.03114.97
5.4.150.0060.03315.12
5.4.140.0000.03213.78
5.4.130.0050.03813.86
5.4.120.0050.02413.74
5.4.110.0050.02313.82
5.4.100.0020.04013.92
5.4.90.0050.03713.84
5.4.80.0090.03513.86
5.4.70.0070.03213.62
5.4.60.0080.02313.58
5.4.50.0050.04013.82
5.4.40.0000.02313.99
5.4.30.0100.03313.65
5.4.20.0070.03313.84
5.4.10.0050.04213.86
5.4.00.0070.03413.38
5.3.290.0020.04012.52
5.3.280.0030.02812.63
5.3.270.0030.03812.67
5.3.260.0090.04012.68
5.3.250.0030.02212.66
5.3.240.0050.04112.53
5.3.230.0080.03812.68
5.3.220.0050.03512.49
5.3.210.0030.03512.52
5.3.200.0020.03712.52
5.3.190.0070.03212.59
5.3.180.0060.02312.68
5.3.170.0070.03812.57
5.3.160.0070.02112.63
5.3.150.0030.02612.67
5.3.140.0020.03312.65
5.3.130.0070.03212.59
5.3.120.0030.02912.53
5.3.110.0040.04212.45
5.3.100.0050.03912.29
5.3.90.0100.03312.34
5.3.80.0050.04012.21
5.3.70.0040.04412.18
5.3.60.0050.03312.32
5.3.50.0110.02012.29
5.3.40.0060.03912.34
5.3.30.0080.02012.29
5.3.20.0050.03812.15
5.3.10.0070.03712.05
5.3.00.0030.03911.94
5.2.170.0020.03111.42
5.2.160.0060.03011.42
5.2.150.0120.02311.42
5.2.140.0030.03311.42
5.2.130.0030.03211.42
5.2.120.0030.02711.42
5.2.110.0070.02511.42
5.2.100.0020.03511.42
5.2.90.0030.03311.42
5.2.80.0030.03711.42
5.2.70.0030.03111.42
5.2.60.0030.02811.42
5.2.50.0070.02511.42
5.2.40.0060.02311.42
5.2.30.0040.03311.42
5.2.20.0020.03011.42
5.2.10.0060.01811.42
5.2.00.0000.03711.42
5.1.60.0050.02711.42
5.1.50.0050.02511.42
5.1.40.0050.02311.42
5.1.30.0050.02811.42
5.1.20.0020.02911.42
5.1.10.0050.02811.42
5.1.00.0050.02811.42
5.0.50.0020.02211.42
5.0.40.0040.02011.42
5.0.30.0000.03511.42
5.0.20.0010.02111.42
5.0.10.0030.01311.42
5.0.00.0020.03111.42
4.4.90.0030.01011.42
4.4.80.0030.01811.42
4.4.70.0030.00811.42
4.4.60.0000.01211.42
4.4.50.0070.01311.42
4.4.40.0020.02911.42
4.4.30.0000.01311.42
4.4.20.0020.01311.42
4.4.10.0020.01111.42
4.4.00.0020.01711.42
4.3.110.0010.01111.42
4.3.100.0010.01611.42
4.3.90.0020.01211.42
4.3.80.0000.01711.42
4.3.70.0020.01811.42
4.3.60.0010.02011.42
4.3.50.0040.01411.42
4.3.40.0030.01811.42
4.3.30.0020.01011.42
4.3.20.0020.01511.42
4.3.10.0000.01211.42
4.3.00.0000.01211.42

preferences:
48.82 ms | 401 KiB | 5 Q