3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlstring = <<<XML <?xml version="1.0" encoding="UTF-8"?> <Request> <Login> <UserName>admin</UserName> <Password>admin</Password> </Login> <Set Operation="get"> <WebFilterCategory transactionid=""> <Name>Categoryname1</Name> <Classification>Objectionable</Classification> <DomainList> <Domain>example1.com</Domain> <Domain>example2.com</Domain> </DomainList> </WebFilterCategory> <WebFilterCategory transactionid=""> <Name>Categoryname2</Name> <Classification>Objectionable</Classification> <DomainList> <Domain>example1.org</Domain> <Domain>example2.org</Domain> </DomainList> </WebFilterCategory> </Set> </Request> XML; $xml = simplexml_load_string( $xmlstring ) or die("Error: Cannot create object"); foreach ($xml->xpath('//WebFilterCategory[Name[contains(., "Categoryname2")]]') as $category) { print_r($category); }

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.5.10.0110.00817.00
8.5.00.0120.00920.48
8.4.150.0020.00014.05
8.4.140.0110.00917.90
8.4.130.0120.00918.13
8.4.120.0110.00722.92
8.4.110.0130.00719.48
8.4.100.0130.00817.93
8.4.90.0120.00920.86
8.4.80.0160.00421.12
8.4.70.0100.01019.08
8.4.60.0150.00821.15
8.4.50.0120.00718.97
8.4.40.0130.00717.91
8.4.30.0060.01320.93
8.4.20.0100.01024.25
8.4.10.0060.00322.85
8.3.280.0120.00818.78
8.3.270.0090.01117.11
8.3.260.0130.00616.77
8.3.250.0070.00719.20
8.3.240.0090.00617.05
8.3.230.0090.01016.85
8.3.220.0070.00821.08
8.3.210.0130.00617.05
8.3.200.0060.00517.05
8.3.190.0080.01017.61
8.3.180.0110.00619.09
8.3.170.0150.00321.05
8.3.160.0050.00317.09
8.3.150.0120.00619.60
8.3.140.0060.01019.36
8.3.130.0100.00719.00
8.3.120.0130.00621.13
8.3.110.0040.00420.94
8.3.100.0040.00816.70
8.3.90.0050.00226.77
8.3.80.0100.00017.00
8.3.70.0060.01317.13
8.3.60.0190.00318.55
8.3.50.0100.00724.63
8.3.40.0090.00619.32
8.3.30.0130.00318.91
8.3.20.0000.00824.18
8.3.10.0050.00224.66
8.3.00.0080.00026.16
8.2.290.0130.00717.12
8.2.280.0120.00918.69
8.2.270.0060.01218.63
8.2.260.0070.01116.57
8.2.250.0050.00317.01
8.2.240.0040.00419.47
8.2.230.0080.00322.58
8.2.220.0000.01024.06
8.2.210.0070.01126.77
8.2.200.0090.00318.79
8.2.190.0060.01217.00
8.2.180.0140.00725.92
8.2.170.0090.00622.96
8.2.160.0030.01022.96
8.2.150.0080.00025.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0090.00026.35
8.2.110.0090.00019.49
8.2.100.0110.00417.99
8.2.90.0040.00418.00
8.2.80.0080.00019.11
8.2.70.0030.00617.88
8.2.60.0040.00418.18
8.2.50.0000.00918.05
8.2.40.0000.00818.72
8.2.30.0040.00418.41
8.2.20.0040.00418.41
8.2.10.0080.00021.37
8.2.00.0060.00319.64
8.1.330.0100.01016.36
8.1.320.0120.00916.26
8.1.310.0120.00617.04
8.1.300.0150.00018.13
8.1.290.0060.00630.84
8.1.280.0110.00425.92
8.1.270.0050.00323.99
8.1.260.0000.00828.09
8.1.250.0050.00328.09
8.1.240.0030.00624.27
8.1.230.0070.00419.84
8.1.220.0040.00418.03
8.1.210.0080.00018.77
8.1.200.0030.00617.73
8.1.190.0000.00917.61
8.1.180.0080.00018.10
8.1.170.0080.00017.72
8.1.160.0030.00619.17
8.1.150.0050.00219.23
8.1.140.0040.00419.07
8.1.130.0000.00719.57
8.1.120.0050.00217.93
8.1.110.0080.00017.88
8.1.100.0050.00517.88
8.1.90.0040.00417.66
8.1.80.0040.00417.88
8.1.70.0040.00417.64
8.1.60.0000.00817.81
8.1.50.0030.00618.00
8.1.40.0040.00417.75
8.1.30.0000.00917.84
8.1.20.0040.00417.89
8.1.10.0000.00817.66
8.1.00.0040.00417.80
8.0.300.0030.00518.97
8.0.290.0060.00316.86
8.0.280.0040.00418.64
8.0.270.0030.00318.36
8.0.260.0030.00317.34
8.0.250.0000.00717.47
8.0.240.0050.00217.14
8.0.230.0000.00717.41
8.0.220.0030.00717.34
8.0.210.0030.00517.30
8.0.200.0050.00317.41
8.0.190.0060.00317.25
8.0.180.0040.00417.21
8.0.170.0000.00917.40
8.0.160.0000.00817.38
8.0.150.0000.00717.11
8.0.140.0080.00317.37
8.0.130.0030.00313.70
8.0.120.0030.00517.32
8.0.110.0080.00017.31
8.0.100.0030.00317.18
8.0.90.0090.00017.36
8.0.80.0100.00517.25
8.0.70.0050.00317.10
8.0.60.0000.00717.23
8.0.50.0050.00317.32
8.0.30.0090.00917.45
8.0.20.0140.00717.28
8.0.10.0040.00417.29
8.0.00.0070.01117.16
7.4.330.0030.00315.55
7.4.320.0070.00016.86
7.4.300.0000.00616.95
7.4.290.0040.00417.04
7.4.280.0000.00816.92
7.4.270.0040.00416.91
7.4.260.0030.00313.66
7.4.250.0030.00316.87
7.4.240.0030.00316.88
7.4.230.0030.00316.96
7.4.220.0020.00516.81
7.4.210.0090.00717.00
7.4.200.0000.00716.72
7.4.130.0090.00916.95
7.4.120.0170.00916.91
7.4.110.0080.01216.95
7.4.100.0100.00716.90
7.4.90.0030.01416.71
7.4.80.0030.01419.39
7.4.70.0130.00616.85
7.4.60.0060.01616.94
7.4.50.0060.01116.85
7.4.40.0080.01616.64
7.4.30.0060.01917.09
7.4.20.0060.01316.89
7.4.10.0120.00616.58
7.4.00.0130.00816.94
7.3.330.0030.00316.73
7.3.320.0030.00313.27
7.3.310.0040.00416.74
7.3.300.0000.00616.56
7.3.290.0070.00916.67
7.3.280.0100.01316.73
7.3.260.0050.01416.57
7.3.240.0090.01116.67
7.3.230.0160.00616.77
7.3.210.0080.00816.70
7.3.200.0150.00616.65
7.3.190.0090.00616.86
7.3.180.0100.00716.46
7.3.170.0150.00316.77
7.3.160.0090.01416.64
7.3.150.0150.00316.90
7.3.140.0050.01116.88
7.3.130.0060.01216.67
7.3.120.0060.01316.78
7.3.110.0070.01016.68
7.3.100.0100.00716.44
7.3.90.0090.01216.63
7.3.80.0090.00916.50
7.3.70.0070.01316.57
7.3.60.0070.01116.61
7.3.50.0100.01116.74
7.3.40.0100.00716.63
7.3.30.0140.00916.53
7.3.20.0090.01216.87
7.3.10.0140.00716.80
7.3.00.0120.00616.88
7.2.330.0140.00617.08
7.2.320.0090.01517.04
7.2.310.0150.00616.91
7.2.300.0140.01016.84
7.2.290.0170.00817.15
7.2.280.0150.00617.15
7.2.270.0090.01616.82
7.2.260.0090.00917.15
7.2.250.0110.01117.05
7.2.240.0090.00917.02
7.2.230.0060.01316.90
7.2.220.0070.01416.78
7.2.210.0060.01616.98
7.2.200.0060.01216.80
7.2.190.0140.00416.99
7.2.180.0110.00916.74
7.2.170.0060.01416.96
7.2.160.0070.01816.92
7.2.150.0090.01116.75
7.2.140.0120.00816.98
7.2.130.0090.00917.28
7.2.120.0090.00916.93
7.2.110.0110.00717.05
7.2.100.0120.00816.97
7.2.90.0100.01416.87
7.2.80.0060.01616.94
7.2.70.0100.01316.86
7.2.60.0030.02017.04
7.2.50.0110.01117.06
7.2.40.0090.00916.84
7.2.30.0090.00917.00
7.2.20.0100.00817.01
7.2.10.0130.00616.83
7.2.00.0080.00917.11

preferences:
174.3 ms | 403 KiB | 5 Q