3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXMLElement('<vehicle id="8"> <name>MAREK</name> <recorder>8</recorder> <production-date>0</production-date> <registration-number>SI40996</registration-number> <fuel> <type> </type> <nominal>0</nominal> <drive>0</drive> <work>0</work> <stay>0</stay> </fuel> <attributes> <attribute name="PHONE_NUMBER" type="5">123456789</attribute> <attribute name="EMAIL" type="5">w@wp.pl</attribute> </attributes> </vehicle>'); foreach ($xml->xpath('//vehicle[@id="8"]') as $item) { echo $item; foreach ($item->children() as $child) { echo $child; } }

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.01118.55
8.3.50.0140.00822.17
8.3.40.0070.00718.71
8.3.30.0040.01119.09
8.3.20.0040.00420.52
8.3.10.0120.00622.11
8.3.00.0030.00619.50
8.2.180.0090.00618.61
8.2.170.0060.01222.96
8.2.160.0110.00720.71
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00818.00
8.2.120.0000.00826.35
8.2.110.0030.00720.72
8.2.100.0070.00418.00
8.2.90.0040.00419.43
8.2.80.0080.00017.97
8.2.70.0080.00017.75
8.2.60.0000.00818.18
8.2.50.0040.00418.07
8.2.40.0070.00419.62
8.2.30.0070.00020.89
8.2.20.0040.00418.04
8.2.10.0040.00418.38
8.2.00.0040.00418.32
8.1.280.0000.01525.92
8.1.270.0040.00424.14
8.1.260.0050.00328.09
8.1.250.0070.00028.09
8.1.240.0060.00324.30
8.1.230.0090.00317.63
8.1.220.0000.00817.91
8.1.210.0000.00818.77
8.1.200.0060.00317.60
8.1.190.0070.00017.93
8.1.180.0000.00918.10
8.1.170.0000.00918.88
8.1.160.0040.00422.31
8.1.150.0000.00719.19
8.1.140.0060.00319.88
8.1.130.0000.00718.09
8.1.120.0000.00717.91
8.1.110.0040.00417.92
8.1.100.0040.00417.66
8.1.90.0040.00417.63
8.1.80.0000.00717.68
8.1.70.0030.00317.90
8.1.60.0050.00318.02
8.1.50.0030.00617.98
8.1.40.0000.00817.69
8.1.30.0060.00318.00
8.1.20.0000.00817.84
8.1.10.0000.00817.84
8.1.00.0030.00517.95
8.0.300.0040.00418.77
8.0.290.0040.00417.25
8.0.280.0040.00418.80
8.0.270.0000.00717.61
8.0.260.0030.00317.55
8.0.250.0030.00317.25
8.0.240.0000.00717.40
8.0.230.0070.00017.18
8.0.220.0060.00317.29
8.0.210.0000.00817.14
8.0.200.0030.00517.34
8.0.190.0040.00417.15
8.0.180.0080.00017.36
8.0.170.0040.00417.30
8.0.160.0000.00717.33
8.0.150.0060.00317.34
8.0.140.0040.00417.22
8.0.130.0030.00313.55
8.0.120.0050.00317.03
8.0.110.0030.00517.30
8.0.100.0050.00217.32
8.0.90.0040.00417.15
8.0.80.0090.00617.21
8.0.70.0000.00717.23
8.0.60.0000.00817.21
8.0.50.0070.00017.23
8.0.30.0080.01017.28
8.0.20.0120.00717.40
8.0.10.0070.00017.37
8.0.00.0090.01017.09
7.4.330.0040.00017.07
7.4.320.0030.00316.78
7.4.300.0040.00416.91
7.4.290.0030.00316.78
7.4.280.0030.00516.99
7.4.270.0050.00216.73
7.4.260.0000.00716.89
7.4.250.0040.00416.96
7.4.240.0020.00516.85
7.4.230.0030.00316.82
7.4.220.0090.01616.88
7.4.210.0080.00916.99
7.4.200.0050.00216.89
7.4.160.0060.01216.83
7.4.150.0140.00417.40
7.4.140.0090.01017.86
7.4.130.0090.00917.00
7.4.120.0070.01116.89
7.4.110.0160.00616.93
7.4.100.0130.01017.04
7.4.90.0150.00316.79
7.4.80.0120.00619.39
7.4.70.0130.01016.76
7.4.60.0060.01016.87
7.4.50.0030.01016.67
7.4.40.0120.00616.72
7.4.30.0120.00616.87
7.4.00.0000.01715.06
7.3.330.0050.00013.49
7.3.320.0000.00613.36
7.3.310.0000.00716.39
7.3.300.0070.00016.71
7.3.290.0000.00716.66
7.3.280.0070.01016.71
7.3.270.0180.00717.40
7.3.260.0120.00616.59
7.3.250.0090.00916.74
7.3.240.0110.00716.70
7.3.230.0100.00716.88
7.3.210.0060.01216.93
7.3.200.0100.00717.02
7.3.190.0130.00716.52
7.3.180.0120.00816.92
7.3.170.0130.00916.78
7.3.160.0130.00316.74
7.3.10.0170.00316.22
7.3.00.0200.00316.61
7.2.330.0090.00916.91
7.2.320.0090.01516.88
7.2.310.0110.00816.89
7.2.300.0090.00916.97
7.2.290.0090.01217.20
7.2.130.0210.00816.40
7.2.120.0160.00616.46
7.2.110.0100.00916.60
7.2.100.0190.00516.17
7.2.90.0070.00716.52
7.2.80.0120.00616.58
7.2.70.0120.00916.50
7.2.60.0060.01516.62
7.2.50.0130.00716.35
7.2.40.0160.00816.63
7.2.30.0070.00716.84
7.2.20.0100.00716.61
7.2.10.0040.01116.67
7.2.00.0050.01018.27
7.1.250.0110.00715.75
7.1.200.0070.00715.89
7.1.100.0100.01017.80
7.1.70.0030.00616.98
7.1.60.0130.00919.36
7.1.50.0090.01216.96
7.1.00.0030.07722.58
7.0.200.0040.00416.83
7.0.60.0100.07319.99
7.0.50.0070.08318.04
7.0.40.0030.04320.35
7.0.30.0200.04320.21
7.0.20.0430.05720.18
7.0.10.0100.05720.28
7.0.00.0130.07320.40
5.6.280.0100.06021.20
5.6.210.0030.07320.75
5.6.200.0030.04018.38
5.6.190.0130.05020.64
5.6.180.0300.05020.88
5.6.170.0200.07020.58
5.6.160.0070.08320.73
5.6.150.0030.08318.37
5.6.140.0100.07318.34
5.6.130.0100.04718.36
5.6.120.0170.05321.08
5.6.110.0000.04721.20
5.6.100.0100.08021.26
5.6.90.0130.06721.29
5.6.80.0070.08320.64
5.5.350.0270.07720.48
5.5.340.0130.04318.17
5.5.330.0070.08320.34
5.5.320.0300.07320.43
5.5.310.0230.03720.50
5.5.300.0100.03018.21
5.5.290.0000.08018.13
5.5.280.0100.08321.13
5.5.270.0070.07020.83
5.5.260.0100.08020.90
5.5.250.0100.07320.77
5.5.240.0200.06320.51

preferences:
61.46 ms | 401 KiB | 5 Q