3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml ='<?xml version="1.0" encoding="utf-8"?> <products> <product ID="12345"> <name>Sunny Beach Resort</name> <price currency="EUR">439.00</price> <URL>https://www.example.com/</URL> <images> <image>https://www.example.com/images/image.jpg</image> </images> <properties> <property name="country"> <value>Spanje</value> </property> <property name="region"> <value>Gran Canaria</value> </property> <property name="cityURL"> <value>https://www.example.com/</value> </property> <property name="serviceType"> <value>Logies ontbijt</value> </property> </properties> <variations> <variation> <property name="roomType"> <value>2-persoonskamer luxe type voor alleengebruik</value> </property> <property name="roomOccupation"> <value>geschikt voor 1 persoon</value> </property> </variation> <variation> <property name="roomType"> <value>2-persoonskamer luxe type standaard</value> </property> <property name="roomOccupation"> <value>geschikt voor 2 tot 3 personen</value> </property> </variation> </variations> </product></products>'; $xml = new simplexmlelement($xml); foreach($xml->product as $product) { foreach($product->properties->property as $property) { if($property['name'] == 'serviceType'){ echo 'Service type is' . $property->value . ' for ' . $product ->name; } } }

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.00.0110.01320.45
8.4.150.0020.00014.05
8.4.140.0140.01017.71
8.4.130.0120.00819.04
8.4.120.0100.01024.19
8.4.110.0070.00420.96
8.4.100.0110.00917.84
8.4.90.0090.01218.19
8.4.80.0040.00418.86
8.4.70.0120.00818.10
8.4.60.0120.00419.05
8.4.50.0110.01018.00
8.4.40.0060.00317.75
8.4.30.0100.00920.80
8.4.20.0070.01118.02
8.4.10.0060.00326.15
8.3.280.0160.00818.73
8.3.270.0140.00516.77
8.3.260.0100.00916.75
8.3.250.0040.00617.46
8.3.240.0080.01117.63
8.3.230.0120.00716.56
8.3.220.0120.00619.21
8.3.210.0090.00916.79
8.3.200.0050.00416.73
8.3.190.0090.01016.73
8.3.180.0110.00816.48
8.3.170.0100.01016.77
8.3.160.0130.01020.32
8.3.150.0040.01517.38
8.3.140.0030.00517.33
8.3.130.0080.00018.46
8.3.120.0060.00321.10
8.3.110.0060.00320.94
8.3.100.0090.00024.06
8.3.90.0040.00426.77
8.3.80.0040.00416.63
8.3.70.0060.01316.75
8.3.60.0150.00618.68
8.3.50.0120.00523.71
8.3.40.0090.00618.78
8.3.30.0000.01518.82
8.3.20.0060.00324.18
8.3.10.0060.00324.66
8.3.00.0080.00026.16
8.2.290.0070.00522.57
8.2.280.0100.00618.52
8.2.270.0060.01217.38
8.2.260.0090.00916.78
8.2.250.0110.00418.70
8.2.240.0090.00017.36
8.2.230.0030.00622.58
8.2.220.0000.00937.54
8.2.210.0050.00326.77
8.2.200.0090.00017.00
8.2.190.0070.00717.13
8.2.180.0060.01325.92
8.2.170.0070.00719.16
8.2.160.0070.01322.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00026.35
8.2.110.0000.00922.57
8.2.100.0090.00317.97
8.2.90.0030.00518.00
8.2.80.0030.00618.96
8.2.70.0040.00418.18
8.2.60.0000.00718.47
8.2.50.0040.00418.10
8.2.40.0030.00521.50
8.2.30.0000.00719.67
8.2.20.0040.00418.24
8.2.10.0040.00419.51
8.2.00.0000.00719.45
8.1.330.0030.00622.16
8.1.320.0110.00816.46
8.1.310.0070.00018.83
8.1.300.0060.00319.60
8.1.290.0090.00018.88
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0070.00028.09
8.1.250.0090.00028.09
8.1.240.0060.00323.96
8.1.230.0090.00318.08
8.1.220.0040.00417.90
8.1.210.0030.00518.77
8.1.200.0030.00617.60
8.1.190.0040.00417.47
8.1.180.0030.00518.10
8.1.170.0060.00318.81
8.1.160.0000.00819.25
8.1.150.0040.00419.12
8.1.140.0040.00419.17
8.1.130.0070.00017.59
8.1.120.0080.00017.78
8.1.110.0040.00417.58
8.1.100.0000.00817.55
8.1.90.0000.00717.71
8.1.80.0000.00817.62
8.1.70.0030.00617.60
8.1.60.0000.00817.78
8.1.50.0000.00817.82
8.1.40.0000.00817.63
8.1.30.0040.00417.91
8.1.20.0040.00417.88
8.1.10.0040.00417.74
8.1.00.0040.00417.62
8.0.300.0050.00220.87
8.0.290.0070.00017.00
8.0.280.0000.00718.74
8.0.270.0030.00318.30
8.0.260.0000.00717.05
8.0.250.0040.00417.25
8.0.240.0000.00817.26
8.0.230.0000.00717.08
8.0.220.0000.00717.02
8.0.210.0040.00417.00
8.0.200.0030.00317.09
8.0.190.0080.00017.07
8.0.180.0000.00717.05
8.0.170.0060.00617.25
8.0.160.0000.00817.09
8.0.150.0000.00817.14
8.0.140.0000.00817.17
8.0.130.0030.00313.47
8.0.120.0060.00317.16
8.0.110.0000.00717.22
8.0.100.0040.00417.10
8.0.90.0000.00717.15
8.0.80.0070.01017.17
8.0.70.0000.00816.98
8.0.60.0000.00817.01
8.0.50.0000.00717.18
8.0.30.0130.00317.35
8.0.20.0110.01017.34
8.0.10.0150.00317.11
8.0.00.0110.00817.47
7.4.330.0050.00015.55
7.4.320.0000.00816.77
7.4.300.0030.00516.91
7.4.290.0040.00416.68
7.4.280.0000.00716.78
7.4.270.0000.00716.69
7.4.260.0030.00313.45
7.4.250.0040.00416.72
7.4.240.0000.00716.80
7.4.230.0070.00016.90
7.4.220.0040.00416.79
7.4.210.0090.00916.85
7.4.200.0050.00316.73
7.4.140.0100.00816.82
7.4.130.0130.00616.78
7.4.120.0110.00816.59
7.4.110.0120.00716.57
7.4.100.0130.00816.63
7.4.90.0100.00816.66
7.4.80.0150.00516.67
7.4.70.0080.01116.59
7.4.60.0110.01116.75
7.4.50.0060.01216.62
7.4.40.0080.01016.56
7.4.30.0100.01016.65
7.4.20.0080.01016.57
7.4.10.0100.01116.69
7.4.00.0130.00616.51
7.3.330.0000.00716.58
7.3.320.0020.00213.32
7.3.310.0030.00316.52
7.3.300.0030.00316.50
7.3.290.0060.01316.46
7.3.260.0100.00816.55
7.3.250.0120.00616.61
7.3.240.0110.00716.65
7.3.230.0100.00816.54
7.3.220.0100.00816.49
7.3.210.0100.00816.72
7.3.200.0110.00816.41
7.3.190.0090.00816.45
7.3.180.0100.01116.55
7.3.170.0100.00816.41
7.3.160.0120.00516.53
7.3.150.0130.00716.56
7.3.140.0080.00916.62
7.3.130.0120.00716.53
7.3.120.0080.00916.57
7.3.110.0130.00516.49
7.3.100.0070.01016.46
7.3.90.0060.01316.55
7.3.80.0070.01116.51
7.3.70.0110.00716.68
7.3.60.0110.00616.59
7.3.50.0140.00316.59
7.3.40.0070.01016.50
7.3.30.0070.01016.45
7.3.20.0120.00716.39
7.3.10.0370.01216.46
7.3.00.0100.01316.59

preferences:
30.2 ms | 403 KiB | 5 Q