3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<ImageFormat Width="70" Height="70" Format="5" FileSize="3197" DimensionCategory="A"><URL>https://pdt.multimediarepository.testing.amadeus.com/cmr/retrieve/hotel/0404104C5B6E42CCAFE3E7F3083F6666/A</URL></ImageFormat><ImageFormat Width="100" Height="76" Format="5" FileSize="4393" DimensionCategory="B"><URL>https://pdt.multimediarepository.testing.amadeus.com/cmr/retrieve/hotel/0404104C5B6E42CCAFE3E7F3083F6666/B</URL></ImageFormat>"; $xml = simplexml_load_string( $xml); foreach( $xml->xpath( './/ImageFormat') as $child) { echo $child->attributes()['FileSize'] . "\n"; }

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)
5.4.230.0230.04712.36
5.4.220.0120.05112.36
5.4.210.0140.04612.36
5.4.200.0170.04312.36
5.4.190.0210.03712.36
5.4.180.0150.04412.36
5.4.170.0160.04712.37
5.4.160.0120.04912.36
5.4.150.0160.04812.36
5.4.140.0190.04512.04
5.4.130.0190.04212.03
5.4.120.0190.04611.99
5.4.110.0160.04411.98
5.4.100.0170.04511.98
5.4.90.0180.04211.99
5.4.80.0190.04211.98
5.4.70.0270.03911.98
5.4.60.0240.06411.98
5.4.50.0190.04011.98
5.4.40.0150.04311.97
5.4.30.0150.04311.96
5.4.20.0200.03811.96
5.4.10.0160.04411.96
5.4.00.0130.04211.46
5.3.280.0130.05012.71
5.3.270.0200.04612.72
5.3.260.0180.04712.72
5.3.250.0160.04612.72
5.3.240.0160.04512.72
5.3.230.0170.04612.71
5.3.220.0150.04712.68
5.3.210.0170.04612.68
5.3.200.0170.04912.68
5.3.190.0160.04612.68
5.3.180.0140.04712.67
5.3.170.0190.04412.67
5.3.160.0180.04812.67
5.3.150.0190.04712.67
5.3.140.0140.04912.66
5.3.130.0170.04712.66
5.3.120.0160.04612.66
5.3.110.0150.04912.66
5.3.100.0150.04912.12
5.3.90.0170.04812.09
5.3.80.0180.04512.08
5.3.70.0210.04312.07
5.3.60.0170.05012.07
5.3.50.0170.05112.00
5.3.40.0180.04512.00
5.3.30.0190.04111.94
5.3.20.0250.06611.70
5.3.10.0130.04811.66
5.3.00.0200.03811.65

preferences:
130.46 ms | 1394 KiB | 7 Q