3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyXML extends SimpleXMLElement { public function firstChild() { $children = $this->children(); foreach ($children as $key => $value) break; return $value; } } $s = '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>'. '<request>'. ' <body>'. ' <rows>'. ' <row id="1"/>'. ' <row id="2"/>'. ' <row id="3"/>'. ' <row2 ver="2.0">test data</row2>'. ' </rows>'. ' </body>'. '</request>'; $obj = new MyXML($s); var_dump($obj->firstChild());

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.00416.88
8.3.50.0140.00522.04
8.3.40.0150.00019.02
8.3.30.0100.01019.36
8.3.20.0040.00420.59
8.3.10.0050.00323.77
8.3.00.0060.00319.25
8.2.180.0060.01018.63
8.2.170.0100.01022.96
8.2.160.0030.01020.66
8.2.150.0110.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0080.00022.38
8.2.110.0040.00422.45
8.2.100.0080.00417.97
8.2.90.0030.00619.43
8.2.80.0080.00017.97
8.2.70.0030.00617.88
8.2.60.0090.00018.05
8.2.50.0040.00418.07
8.2.40.0000.00820.20
8.2.30.0000.00818.35
8.2.20.0040.00417.88
8.2.10.0040.00418.24
8.2.00.0030.00617.90
8.1.280.0030.01725.92
8.1.270.0080.00023.96
8.1.260.0060.00326.35
8.1.250.0030.00628.09
8.1.240.0040.00423.82
8.1.230.0040.00719.39
8.1.220.0000.00917.89
8.1.210.0060.00318.77
8.1.200.0040.00417.48
8.1.190.0080.00017.48
8.1.180.0070.00318.10
8.1.170.0050.00318.64
8.1.160.0000.00822.16
8.1.150.0040.00418.86
8.1.140.0000.00817.68
8.1.130.0030.00318.05
8.1.120.0040.00417.56
8.1.110.0020.00517.75
8.1.100.0050.00217.59
8.1.90.0030.00517.71
8.1.80.0000.00817.74
8.1.70.0000.00717.58
8.1.60.0030.00617.73
8.1.50.0030.00517.63
8.1.40.0000.00917.70
8.1.30.0050.00317.87
8.1.20.0000.00817.75
8.1.10.0000.00817.84
8.1.00.0040.00417.73
8.0.300.0000.00718.77
8.0.290.0040.00417.43
8.0.280.0000.00718.54
8.0.270.0000.00717.46
8.0.260.0000.00717.47
8.0.250.0000.00817.09
8.0.240.0030.00617.16
8.0.230.0030.00317.14
8.0.220.0070.00017.08
8.0.210.0040.00416.93
8.0.200.0000.00617.20
8.0.190.0070.00017.13
8.0.180.0070.00417.10
8.0.170.0050.00317.11
8.0.160.0000.00717.23
8.0.150.0070.00017.00
8.0.140.0030.00616.99
8.0.130.0030.00313.63
8.0.120.0040.00417.09
8.0.110.0030.00617.04
8.0.100.0040.00416.97
8.0.90.0080.00017.18
8.0.80.0070.01017.18
8.0.70.0000.00817.18
8.0.60.0050.00217.13
8.0.50.0030.00617.17
8.0.30.0060.01317.22
8.0.20.0080.01217.51
8.0.10.0050.00317.18
8.0.00.0130.00617.10
7.4.330.0030.00315.00
7.4.320.0000.00716.64
7.4.300.0030.00316.80
7.4.290.0050.00316.82
7.4.280.0000.00716.72
7.4.270.0070.00016.75
7.4.260.0000.00816.68
7.4.250.0040.00416.88
7.4.240.0060.00216.74
7.4.230.0030.00316.73
7.4.220.0130.01316.93
7.4.210.0080.00916.75
7.4.200.0000.00716.64
7.4.190.0000.00716.63
7.4.160.0100.00716.70
7.4.150.0070.01017.40
7.4.140.0150.00617.86
7.4.130.0100.00716.71
7.4.120.0060.01116.75
7.4.110.0090.00916.87
7.4.100.0130.00616.74
7.4.90.0160.00916.82
7.4.80.0140.01016.64
7.4.70.0170.00016.57
7.4.60.0100.01616.60
7.4.50.0030.00616.50
7.4.40.0120.00616.77
7.4.30.0070.01116.77
7.4.10.0070.01214.87
7.4.00.0080.01015.04
7.3.330.0000.00713.50
7.3.320.0070.00013.36
7.3.310.0030.00316.58
7.3.300.0030.00316.51
7.3.290.0080.00516.48
7.3.280.0130.00616.49
7.3.270.0110.00817.40
7.3.260.0110.00616.48
7.3.250.0100.00916.54
7.3.240.0120.00516.59
7.3.230.0040.01616.49
7.3.210.0150.00916.76
7.3.200.0040.01319.39
7.3.190.0090.00916.81
7.3.180.0060.01116.65
7.3.170.0080.00916.59
7.3.160.0080.00816.92
7.3.130.0060.01314.87
7.3.120.0070.01114.88
7.3.110.0070.01014.96
7.3.100.0050.01114.77
7.3.90.0070.01014.89
7.3.80.0060.00714.94
7.3.70.0070.00614.81
7.3.60.0070.00814.94
7.3.50.0050.01014.72
7.3.40.0040.00814.88
7.3.30.0030.01014.82
7.3.20.0060.00916.67
7.3.10.0050.00916.76
7.3.00.0090.00716.71
7.2.330.0130.00716.79
7.2.320.0090.00916.64
7.2.310.0150.00316.92
7.2.300.0110.00616.91
7.2.290.0140.00416.76
7.2.260.0080.01115.01
7.2.250.0040.01315.15
7.2.240.0040.01115.27
7.2.230.0090.00915.28
7.2.220.0040.01415.19
7.2.210.0090.00715.25
7.2.200.0050.01015.11
7.2.190.0060.00715.16
7.2.180.0070.00815.14
7.2.170.0050.00814.99
7.2.160.0050.00915.15
7.2.150.0060.00817.02
7.2.140.0090.00716.88
7.2.130.0070.00817.04
7.2.120.0100.00616.95
7.2.110.0080.00917.10
7.2.100.0090.00717.04
7.2.90.0080.00417.00
7.2.80.0070.00717.10
7.2.70.0030.01217.04
7.2.60.0080.00916.96
7.2.50.0090.00717.11
7.2.40.0040.00717.08
7.2.30.0010.01217.03
7.2.20.0080.00816.92
7.2.10.0040.01016.92
7.2.00.0070.00517.59
7.1.330.0110.00415.96
7.1.320.0060.01015.80
7.1.310.0060.01015.83
7.1.300.0030.01215.87
7.1.290.0080.00615.90
7.1.280.0060.00715.88
7.1.270.0080.00515.84
7.1.260.0030.01015.83
7.1.250.0050.01015.79
7.1.240.0030.00915.95
7.1.230.0090.00115.96
7.1.220.0040.01015.78
7.1.210.0040.00715.81
7.1.200.0070.00515.91
7.1.190.0080.00315.85
7.1.180.0080.00615.90
7.1.170.0010.01115.97
7.1.160.0070.00615.95
7.1.150.0020.01015.90
7.1.140.0060.00915.91
7.1.130.0040.00815.80
7.1.120.0070.00515.82
7.1.110.0050.00715.85
7.1.100.0060.00616.49
7.1.90.0070.00715.95
7.1.80.0040.00915.87
7.1.70.0040.00716.27
7.1.60.0080.00616.87
7.1.50.0060.01316.21
7.1.40.0090.00615.97
7.1.30.0020.00815.90
7.1.20.0050.00915.85
7.1.10.0050.01015.76
7.1.00.0050.02517.57
7.0.330.0030.00815.48
7.0.320.0090.00515.36
7.0.310.0070.00615.61
7.0.300.0040.00915.39
7.0.290.0070.00315.53
7.0.280.0030.00915.44
7.0.270.0070.00615.52
7.0.260.0090.00315.43
7.0.250.0030.00915.39
7.0.240.0050.00815.47
7.0.230.0050.00815.61
7.0.220.0090.00515.42
7.0.210.0040.00815.49
7.0.200.0020.01115.84
7.0.190.0030.01015.50
7.0.180.0010.01015.49
7.0.170.0080.00515.41
7.0.160.0060.00515.44
7.0.150.0050.01115.51
7.0.140.0060.02217.22
7.0.130.0090.00615.56
7.0.120.0070.00715.49
7.0.110.0080.00815.52
7.0.100.0070.00715.43
7.0.90.0050.00815.47
7.0.80.0090.00515.53
7.0.70.0070.00515.48
7.0.60.0050.02517.05
7.0.50.0070.02217.21
7.0.40.0060.02715.15
7.0.30.0060.02415.14
7.0.20.0040.02715.11
7.0.10.0050.02715.22
7.0.00.0050.02515.22
5.6.400.0070.00714.71
5.6.390.0030.01114.44
5.6.380.0050.00914.45
5.6.370.0030.01214.42
5.6.360.0080.00714.51
5.6.350.0080.00514.39
5.6.340.0030.01414.46
5.6.330.0020.01114.42
5.6.320.0050.00814.44
5.6.310.0070.00814.57
5.6.300.0060.00814.37
5.6.290.0040.01014.48
5.6.280.0050.02216.13
5.6.270.0080.00514.48
5.6.260.0080.00614.46
5.6.250.0070.00414.49
5.6.240.0050.00914.57
5.6.230.0070.00814.42
5.6.220.0060.00714.52
5.6.210.0060.02415.96
5.6.200.0060.02116.17
5.6.190.0060.02616.17
5.6.180.0060.02716.22
5.6.170.0090.02215.95
5.6.160.0070.02316.05
5.6.150.0070.01816.02
5.6.140.0050.01816.08
5.6.130.0070.02315.99
5.6.120.0040.02616.11
5.6.110.0080.01716.11
5.6.100.0070.02416.01
5.6.90.0070.02416.08
5.6.80.0050.02615.70
5.6.70.0070.02516.04
5.6.60.0070.02316.01
5.6.50.0070.02415.82
5.6.40.0070.01815.77
5.6.30.0090.02415.79
5.6.20.0070.02015.86
5.6.10.0080.02215.90
5.6.00.0090.02115.82
5.5.380.0100.00614.40
5.5.370.0050.00814.27
5.5.360.0060.01014.63
5.5.350.0060.02615.84
5.5.340.0080.02516.08
5.5.330.0060.01815.97
5.5.320.0030.02715.99
5.5.310.0040.02215.99
5.5.300.0070.01916.05
5.5.290.0050.01616.05
5.5.280.0060.02516.04
5.5.270.0060.02315.94
5.5.260.0060.02215.91
5.5.250.0060.01915.88
5.5.240.0050.02615.90
5.5.230.0020.02915.84
5.5.220.0070.02215.86
5.5.210.0050.02315.77
5.5.200.0050.02415.87
5.5.190.0080.02415.73
5.5.180.0070.02115.73
5.5.170.0060.00814.36
5.5.160.0050.02415.81
5.5.150.0070.01715.83
5.5.140.0050.01515.76
5.5.130.0030.01815.84
5.5.120.0080.01215.80
5.5.110.0060.01215.81
5.5.100.0030.01515.64
5.5.90.0080.01215.71
5.5.80.0050.01315.83
5.5.70.0060.01415.72
5.5.60.0060.01515.81
5.5.50.0030.01415.63
5.5.40.0040.01415.71
5.5.30.0040.01415.71
5.5.20.0080.00915.69
5.5.10.0050.01515.75
5.5.00.0050.01515.67
5.4.450.0040.02613.30
5.4.440.0060.02413.34
5.4.430.0020.02313.31
5.4.420.0020.02413.42
5.4.410.0030.02513.16
5.4.400.0060.02513.31
5.4.390.0050.02213.24
5.4.380.0060.02313.29
5.4.370.0010.02413.18
5.4.360.0070.02113.25
5.4.350.0030.02213.23
5.4.340.0030.02313.32
5.4.330.0030.00911.24
5.4.320.0050.02113.30
5.4.310.0040.02213.23
5.4.300.0040.01413.27
5.4.290.0040.01413.26
5.4.280.0060.01313.15
5.4.270.0040.01313.27
5.4.260.0070.01113.29
5.4.250.0030.01313.35
5.4.240.0050.01113.24
5.4.230.0010.01613.20
5.4.220.0030.01413.19
5.4.210.0050.00813.22
5.4.200.0010.01413.24
5.4.190.0020.01513.17
5.4.180.0020.01113.30
5.4.170.0040.01413.32
5.4.160.0030.01213.27
5.4.150.0050.01113.13
5.4.140.0030.01212.56
5.4.130.0040.01212.54
5.4.120.0040.01012.64
5.4.110.0020.01412.60
5.4.100.0010.01312.55
5.4.90.0020.01512.68
5.4.80.0040.01212.60
5.4.70.0030.01512.67
5.4.60.0070.00812.64
5.4.50.0040.01112.62
5.4.40.0030.01112.63
5.4.30.0030.01212.59
5.4.20.0060.01112.65
5.4.10.0050.01212.53
5.4.00.0030.01112.46
5.3.290.0030.02311.86
5.3.280.0030.01211.86
5.3.270.0060.01111.95
5.3.260.0040.01211.90
5.3.250.0030.01411.89
5.3.240.0020.01411.88
5.3.230.0030.01211.84
5.3.220.0040.01211.83
5.3.210.0020.01411.87
5.3.200.0030.01211.84
5.3.190.0020.01411.79
5.3.180.0030.01011.87
5.3.170.0020.01511.94
5.3.160.0020.01611.89
5.3.150.0040.01311.87
5.3.140.0020.01211.92
5.3.130.0040.01411.89
5.3.120.0030.01311.80
5.3.110.0030.01211.81
5.3.100.0020.01211.76
5.3.90.0040.02511.82
5.3.80.0040.01511.65
5.3.70.0030.01011.72
5.3.60.0020.01811.82
5.3.50.0050.02211.73
5.3.40.0030.01911.69
5.3.30.0040.01411.77
5.3.20.0050.02211.70
5.3.10.0060.01911.62
5.3.00.0050.02111.56
5.2.170.0030.06711.35
5.2.160.0030.05011.30
5.2.150.0030.05711.25
5.2.140.0030.05311.27
5.2.130.0070.04311.25
5.2.120.0070.05711.34
5.2.110.0070.06011.09
5.2.100.0070.05711.07
5.2.90.0030.06011.07
5.2.80.0070.06011.21
5.2.70.0000.05311.08
5.2.60.0070.04711.29
5.2.50.0000.05711.14
5.2.40.0000.06011.10
5.2.30.0000.03311.09
5.2.20.0100.04010.98
5.2.10.0070.05710.89
5.2.00.0030.06310.71
5.1.60.0030.04310.25
5.1.50.0030.04310.14
5.1.40.0070.04010.21
5.1.30.0070.04710.45
5.1.20.0030.04310.58
5.1.10.0000.04010.16
5.1.00.0030.05710.19
5.0.50.0030.0339.38
5.0.40.0000.0379.38
5.0.30.0000.0409.38
5.0.20.0030.0439.38
5.0.10.0030.0479.38
5.0.00.0000.0679.38
4.4.90.0100.0239.38
4.4.80.0070.0309.38
4.4.70.0100.0279.38
4.4.60.0030.0239.38
4.4.50.0030.0339.38
4.4.40.0000.0539.38
4.4.30.0030.0339.38
4.4.20.0030.0379.38
4.4.10.0030.0239.38
4.4.00.0030.0439.38
4.3.110.0000.0239.38
4.3.100.0030.0339.38
4.3.90.0000.0339.38
4.3.80.0000.0509.38
4.3.70.0000.0339.38
4.3.60.0030.0379.38
4.3.50.0000.0309.38
4.3.40.0030.0439.38
4.3.30.0030.0339.38
4.3.20.0070.0339.38
4.3.10.0000.0309.38
4.3.00.0000.0309.38

preferences:
58.48 ms | 401 KiB | 5 Q