3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="UTF-8" standalone="no" ?><gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" creator="Graphhopper version 0.10" version="1.1" xmlns:gh="https://graphhopper.com/public/schema/gpx/1.1"> <metadata><copyright author="OpenStreetMap contributors"/><link href="http://graphhopper.com"><text>GraphHopper GPX</text></link><time>2017-09-08T09:42:44Z</time></metadata> <trk><name>GraphHopper Track</name><trkseg> <trkpt lat="44.847241" lon="20.46966"><ele>69.6</ele><time>2017-09-08T09:42:44Z</time></trkpt> <trkpt lat="44.847439" lon="20.46906"><ele>69.6</ele><time>2017-09-08T09:42:56Z</time></trkpt> </trkseg> </trk> </gpx>'; $sxml = new simplexmlelement($xml); foreach($sxml->trk->trkseg->trkpt as $data) { echo $data['lat'] . PHP_EOL . $data['lon'] . PHP_EOL . $data->time . 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.3.80.0100.00316.63
8.3.70.0090.00616.75
8.3.60.0000.01516.88
8.3.50.0160.00617.47
8.3.40.0120.00318.75
8.3.30.0110.00419.02
8.3.20.0070.00020.54
8.3.10.0040.00422.39
8.3.00.0040.00423.86
8.2.200.0000.01216.75
8.2.190.0070.00716.58
8.2.180.0110.00425.92
8.2.170.0040.01122.96
8.2.160.0170.00019.63
8.2.150.0030.00524.18
8.2.140.0030.00524.66
8.2.130.0040.00419.43
8.2.120.0050.00326.35
8.2.110.0130.00621.25
8.2.100.0110.00018.16
8.2.90.0080.00018.03
8.2.80.0060.00317.97
8.2.70.0040.00417.75
8.2.60.0000.00818.17
8.2.50.0000.00818.07
8.2.40.0000.00818.21
8.2.30.0000.00718.36
8.2.20.0080.00018.23
8.2.10.0070.00018.23
8.2.00.0000.00718.25
8.1.290.0030.00618.88
8.1.280.0170.00325.92
8.1.270.0000.00822.26
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.73
8.1.230.0080.00421.02
8.1.220.0040.00418.03
8.1.210.0000.00819.07
8.1.200.0040.00417.60
8.1.190.0040.00417.48
8.1.180.0000.00918.10
8.1.170.0040.00419.02
8.1.160.0040.00419.00
8.1.150.0040.00420.31
8.1.140.0070.00019.76
8.1.130.0070.00019.11
8.1.120.0000.00717.66
8.1.110.0050.00317.74
8.1.100.0040.00417.69
8.1.90.0000.00717.55
8.1.80.0000.00817.57
8.1.70.0030.00317.57
8.1.60.0000.00817.68
8.1.50.0040.00417.81
8.1.40.0040.00417.57
8.1.30.0040.00417.86
8.1.20.0050.00317.75
8.1.10.0000.00817.72
8.1.00.0060.00317.80
8.0.300.0050.00319.89
8.0.290.0030.00616.61
8.0.280.0030.00318.61
8.0.270.0030.00317.43
8.0.260.0060.00019.05
8.0.250.0040.00417.06
8.0.240.0070.00017.04
8.0.230.0000.00817.24
8.0.220.0000.00717.00
8.0.210.0020.00517.12
8.0.200.0030.00317.05
8.0.190.0000.00817.19
8.0.180.0040.00417.16
8.0.170.0000.00717.11
8.0.160.0030.00417.07
8.0.150.0050.00217.14
8.0.140.0060.00616.98
8.0.130.0050.00013.50
8.0.120.0040.00417.14
8.0.110.0000.00717.16
8.0.100.0040.00416.97
8.0.90.0070.00017.19
8.0.80.0090.00617.09
8.0.70.0020.00517.14
8.0.60.0000.00817.18
8.0.50.0040.00417.13
8.0.30.0080.01017.34
8.0.20.0120.01017.53
8.0.10.0000.00717.09
8.0.00.0070.01017.14
7.4.330.0050.00015.55
7.4.320.0060.00016.84
7.4.300.0070.00016.67
7.4.290.0000.00716.65
7.4.280.0000.00816.72
7.4.270.0030.00616.88
7.4.260.0000.00716.70
7.4.250.0050.00216.72
7.4.240.0040.00416.82
7.4.230.0030.00316.60
7.4.220.0120.00316.84
7.4.210.0060.00916.92
7.4.200.0040.00416.84
7.4.160.0120.00516.78
7.4.150.0130.00417.40
7.4.140.0150.00717.86
7.4.130.0090.00916.74
7.4.120.0110.00616.67
7.4.110.0070.01016.75
7.4.100.0170.00716.82
7.4.90.0140.00616.62
7.4.80.0030.02019.39
7.4.70.0030.01316.73
7.4.60.0090.00816.64
7.4.50.0000.01316.62
7.4.40.0030.01316.68
7.4.30.0100.00716.85
7.4.00.0000.01615.24
7.3.330.0070.00013.34
7.3.320.0030.00313.33
7.3.310.0000.00616.33
7.3.300.0000.00716.32
7.3.290.0120.00716.42
7.3.280.0060.00916.44
7.3.270.0080.00917.40
7.3.260.0070.01016.64
7.3.250.0070.01116.58
7.3.240.0130.00616.62
7.3.230.0080.00816.67
7.3.210.0100.00716.62
7.3.200.0120.01316.61
7.3.190.0050.01116.47
7.3.180.0060.00916.47
7.3.170.0040.01216.66
7.3.160.0160.00016.63
7.3.90.0080.01114.88
7.3.80.0120.01014.54
7.3.70.0120.00914.96
7.3.60.0110.00914.73
7.3.50.0110.00814.77
7.3.40.0060.01614.72
7.3.30.0110.01114.89
7.3.20.0150.01316.82
7.3.10.0100.00816.75
7.3.00.0100.00616.54
7.2.330.0060.01316.92
7.2.320.0030.01716.99
7.2.310.0060.01117.03
7.2.300.0080.00917.00
7.2.290.0060.01016.92
7.2.220.0080.01214.82
7.2.210.0120.00915.30
7.2.200.0100.01015.26
7.2.190.0150.00515.22
7.2.180.0100.00715.00
7.2.170.0120.00315.18
7.2.160.0210.00415.11
7.2.150.0170.00017.07
7.2.140.0080.01216.93
7.2.130.0070.01016.95
7.2.120.0040.01216.91
7.2.110.0090.00916.99
7.2.100.0040.00917.01
7.2.90.0050.00917.05
7.2.80.0090.00617.03
7.2.70.0070.00817.08
7.2.60.0070.01017.06
7.2.50.0060.01017.16
7.2.40.0020.01317.18
7.2.30.0080.00817.15
7.2.20.0120.00417.07
7.2.10.0080.00917.05
7.2.00.0080.01016.99
7.1.320.0070.01015.89
7.1.310.0000.01915.83
7.1.300.0140.00315.69
7.1.290.0110.00315.76
7.1.280.0220.00316.08
7.1.270.0150.00915.68
7.1.260.0200.00015.93
7.1.250.0080.00815.92
7.1.240.0160.02115.75
7.1.230.0030.02015.86
7.1.220.0120.00915.54
7.1.210.0220.00315.84
7.1.200.0070.01015.94
7.1.190.0160.01215.75
7.1.180.0150.00915.76
7.1.170.0140.00915.81
7.1.160.0170.00415.77
7.1.150.0160.00715.98
7.1.140.0180.00815.94
7.1.130.0130.00915.67
7.1.120.0180.00915.69
7.1.110.0160.01116.00
7.1.100.0130.01315.89
7.1.90.0080.00817.01
7.1.80.0100.00616.96
7.1.70.0130.00316.47
7.1.60.0160.00925.52
7.1.50.0160.01125.27
7.1.40.0140.01125.11
7.1.30.0120.01225.19
7.1.20.0110.01325.21
7.1.10.0130.00416.28
7.1.00.0090.01316.21
7.0.330.0150.00915.61
7.0.320.0190.00415.64
7.0.310.0160.00815.45
7.0.300.0120.00915.43
7.0.290.0110.01415.43
7.0.280.0100.01515.39
7.0.270.0090.01215.67
7.0.260.0130.00615.38
7.0.250.0140.01115.74
7.0.240.0170.01015.45
7.0.230.0080.00816.69
7.0.220.0070.01016.83
7.0.210.0050.01216.04
7.0.200.0120.00716.07
7.0.190.0110.00516.32
7.0.180.0080.00915.88
7.0.170.0090.00815.97
7.0.160.0140.00515.90
7.0.150.0120.00715.98
7.0.140.0040.01215.85
7.0.130.0080.01316.07
7.0.120.0080.01015.99
7.0.110.0110.00515.89
7.0.100.0080.01115.99
7.0.90.0060.00916.06
7.0.80.0100.00815.98
7.0.70.0020.01415.79
7.0.60.0070.01215.91
7.0.50.0130.00516.17
7.0.40.0080.00816.17
7.0.30.0120.00515.89
7.0.20.0100.00716.01
7.0.10.0100.00816.10
7.0.00.0080.00915.96
5.6.400.0250.00414.50
5.6.390.0190.00814.51
5.6.380.0110.01414.48

preferences:
28.62 ms | 401 KiB | 5 Q