3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<'XML' <root xmlns:s="http://some-address.com"> <s:Label x="10" y="10" text="NOME"/> <s:TextInput id="NOME" x="10" y="21" width="290" tabIndex="1"/> <s:Label x="10" y="50" text="TELEFONE"/> <s:Label x="120" y="50" text="RAMAL"/> <s:TextInput id="RAMAL" x="120" y="61" width="102" tabIndex="5"/> <s:Label x="365" y="50" text="LOGIN"/> <s:TextInput id="LOGIN1" x="365" y="61" width="102" tabIndex="7"/> <s:TextInput id="TELEFONE" x="10" y="61" width="102" tabIndex="4"/> <s:Label x="308" y="11" text="EMAIL"/> <s:TextInput id="EMAIL" x="308" y="22" width="290" tabIndex="2"/> <s:Label x="605" y="10" text="MATRICULA"/> <s:TextInput id="MATRICULA" x="606" y="22" width="144" tabIndex="3"/> <s:Label x="627" y="91" text="NASCIMENTO"/> <s:TextInput id="NASCIMENTO" x="627" y="103" width="121" tabIndex="14"/> </root> XML; $simpleXML = new SimpleXMLElement($xml); $xpathTextInput = $simpleXML->xpath('s:TextInput'); foreach($xpathTextInput as $input) { echo $input['id'] . 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.4.120.0050.00522.96
8.4.110.0110.01022.95
8.4.100.0040.00517.98
8.4.90.0100.00919.09
8.4.80.0120.00818.43
8.4.70.0050.00419.98
8.4.60.0090.00918.21
8.4.50.0110.01022.87
8.4.40.0060.00317.99
8.4.30.0130.00620.79
8.4.20.0030.01318.09
8.4.10.0130.00320.71
8.3.250.0100.01019.25
8.3.240.0120.00816.90
8.3.230.0120.00817.02
8.3.220.0070.00117.71
8.3.210.0090.01016.85
8.3.200.0150.00416.87
8.3.190.0130.00917.56
8.3.180.0120.00919.28
8.3.170.0070.01117.29
8.3.160.0190.00017.07
8.3.150.0070.01316.84
8.3.140.0140.00417.04
8.3.130.0030.00618.61
8.3.120.0150.00319.33
8.3.110.0100.01020.94
8.3.100.0090.00324.06
8.3.90.0160.00326.77
8.3.80.0030.00717.10
8.3.70.0190.00316.74
8.3.60.0090.00918.80
8.3.50.0100.00423.83
8.3.40.0070.00719.20
8.3.30.0040.01119.17
8.3.20.0070.00021.23
8.3.10.0080.00022.27
8.3.00.0070.00319.05
8.2.290.0060.00620.81
8.2.280.0120.00716.95
8.2.270.0090.00919.10
8.2.260.0000.00817.47
8.2.250.0140.00417.10
8.2.240.0040.00417.60
8.2.230.0060.00322.58
8.2.220.0000.00837.54
8.2.210.0110.00726.77
8.2.200.0030.00616.88
8.2.190.0040.01117.13
8.2.180.0070.00719.04
8.2.170.0100.00722.96
8.2.160.0030.01020.69
8.2.150.0040.00724.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00820.39
8.2.110.0060.00621.41
8.2.100.0060.00618.16
8.2.90.0080.00018.34
8.2.80.0000.00819.52
8.2.70.0060.00317.88
8.2.60.0090.00018.00
8.2.50.0030.00518.05
8.2.40.0040.00418.72
8.2.30.0040.00419.97
8.2.20.0040.00418.46
8.2.10.0070.00019.69
8.2.00.0040.00419.83
8.1.330.0120.00922.06
8.1.320.0120.00816.64
8.1.310.0090.00617.06
8.1.300.0040.01217.04
8.1.290.0090.00018.88
8.1.280.0110.00425.92
8.1.270.0050.00321.14
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00322.43
8.1.230.0090.00321.21
8.1.220.0040.00718.04
8.1.210.0030.00619.18
8.1.200.0090.00017.60
8.1.190.0050.00317.61
8.1.180.0040.00418.10
8.1.170.0000.00817.75
8.1.160.0040.00419.38
8.1.150.0050.00219.29
8.1.140.0000.00819.36
8.1.130.0030.00320.75
8.1.120.0050.00517.72
8.1.110.0030.00517.70
8.1.100.0050.00217.91
8.1.90.0040.00417.82
8.1.80.0040.00417.87
8.1.70.0040.00417.90
8.1.60.0000.00817.97
8.1.50.0020.00517.74
8.1.40.0000.00817.76
8.1.30.0000.00918.12
8.1.20.0060.00318.02
8.1.10.0000.00818.02
8.1.00.0040.00417.89
8.0.300.0000.00820.37
8.0.290.0040.00417.25
8.0.280.0000.00818.88
8.0.270.0070.00018.46
8.0.260.0000.00620.43
8.0.250.0070.00317.35
8.0.240.0080.00017.25
8.0.230.0040.00417.29
8.0.220.0030.00317.32
8.0.210.0080.00017.28
8.0.200.0040.00417.38
8.0.190.0070.00017.47
8.0.180.0030.00617.41
8.0.170.0100.00017.22
8.0.160.0050.00217.44
8.0.150.0070.00017.21
8.0.140.0050.00617.36
8.0.130.0060.00013.90
8.0.120.0040.00417.39
8.0.110.0000.00917.13
8.0.100.0000.00817.31
8.0.90.0030.00617.37
8.0.80.0060.00917.29
8.0.70.0040.00417.36
8.0.60.0040.00417.32
8.0.50.0050.00217.34
8.0.30.0190.00017.88
8.0.20.0110.01217.61
8.0.10.0000.00817.44
8.0.00.0150.00817.11
7.4.330.0030.00217.11
7.4.320.0060.00016.80
7.4.300.0000.00616.98
7.4.290.0030.00316.88
7.4.280.0040.00416.93
7.4.270.0000.00816.98
7.4.260.0050.00013.70
7.4.250.0000.00717.05
7.4.240.0000.00717.06
7.4.230.0070.00016.75
7.4.220.0020.00516.95
7.4.210.0040.01117.01
7.4.200.0030.00416.94
7.4.130.0090.00916.95
7.4.120.0060.01216.98
7.4.110.0060.01016.96
7.4.100.0090.00916.95
7.4.90.0090.00916.90
7.4.80.0080.00919.39
7.4.70.0150.00617.04
7.4.60.0080.00816.88
7.4.50.0070.00716.81
7.4.40.0140.00416.84
7.4.20.0130.00916.77
7.4.10.0090.01316.96
7.4.00.0120.01117.06
7.3.330.0000.00816.65
7.3.320.0000.00613.75
7.3.310.0070.00016.67
7.3.300.0070.00016.80
7.3.290.0090.00516.69
7.3.260.0070.01416.68
7.3.240.0130.00516.91
7.3.230.0100.00717.00
7.3.210.0120.00616.90
7.3.200.0080.00916.89
7.3.190.0210.00316.80
7.3.180.0060.01017.07
7.3.170.0150.00816.87
7.3.160.0080.00816.93
7.3.140.0100.00716.89
7.3.130.0040.01816.85
7.3.120.0100.01316.62
7.3.110.0090.01316.60
7.3.100.0040.01316.51
7.3.90.0090.01416.60
7.3.80.0100.01316.66
7.3.70.0080.00816.88
7.3.60.0070.01016.70
7.3.50.0110.00516.80
7.3.40.0030.01216.75
7.3.30.0090.00616.89
7.3.20.0120.00316.90
7.3.10.0000.02216.68
7.3.00.0060.01416.81
7.2.330.0090.00917.12
7.2.320.0120.01217.32
7.2.310.0120.00417.23
7.2.300.0120.00916.88
7.2.290.0110.00617.10
7.2.270.0030.01416.73
7.2.260.0110.01116.73
7.2.250.0070.01017.08
7.2.240.0090.00916.78
7.2.230.0090.00916.80
7.2.220.0060.01417.12
7.2.210.0080.00816.96
7.2.200.0030.01317.22
7.2.190.0120.00916.93
7.2.180.0130.00416.92
7.2.170.0130.00616.58
7.2.160.0160.00016.96
7.2.150.0120.01217.08
7.2.140.0130.01016.91
7.2.130.0100.01316.95
7.2.120.0200.00317.03
7.2.110.0030.01317.02
7.2.100.0070.01017.01
7.2.90.0100.00717.02
7.2.80.0030.01617.06
7.2.70.0140.00317.14
7.2.60.0090.00916.83
7.2.50.0070.00717.08
7.2.40.0070.00717.01
7.2.30.0060.00917.09
7.2.20.0120.00417.12
7.2.10.0100.00717.09
7.2.00.0130.00316.83

preferences:
29.42 ms | 403 KiB | 5 Q