3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlStr = <<<EOD <response type='5'> <body order_code='9e8fc2e5-de9b-4dff-a2bd-4175c1063b97' pay_summ='166.37' comiss='7.16' comiss_descr='Комиссия банка: 3 грн + 2,5% от стоимости билета. Сервисный сбор РЦ Министерства транспорта и связи Укр - 18 грн' total_summ='173.53'> <trip-segment ticket='21П-Н1-1847975-1906' creation_time='19.06.2013 08:57:28' num='1' tot_price='166.37' transporte_type='2' tax='3.00'> <places> <place car_num='15' car_type='1040' loc_num='06' /> <place car_num='15' car_type='1040' loc_num='07' /> </places> </trip-segment> </body> </response> EOD; $xmlObj = new SimpleXMLElement($xmlStr); foraech ($xmlObj->places->place as $place) { var_dump((string)$place->attributes()['loc_num']); }

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.170.0030.07019.23
5.4.160.0000.04019.26
5.4.150.0030.07318.83
5.4.140.0100.06316.38
5.4.130.0100.06016.41
5.4.120.0170.05016.41
5.4.110.0070.04316.29
5.4.100.0100.04716.43
5.4.90.0130.06016.27
5.4.80.0100.05316.26
5.4.70.0130.06716.32
5.4.60.0000.08316.41
5.4.50.0200.06016.70
5.4.40.0030.04716.50
5.4.30.0070.07316.42
5.4.20.0030.08016.27
5.4.10.0100.05716.34
5.4.00.0070.04715.74
5.3.270.0000.04314.55
5.3.260.0030.07314.70
5.3.250.0030.06014.55
5.3.240.0130.06714.48
5.3.230.0100.06314.48
5.3.220.0030.07014.51
5.3.210.0100.05714.50
5.3.200.0000.05014.45
5.3.190.0030.06014.50
5.3.180.0070.05014.51
5.3.170.0000.06714.39
5.3.160.0070.06014.46
5.3.150.0000.08714.49
5.3.140.0100.05014.48
5.3.130.0030.06014.51
5.3.120.0100.07314.37
5.3.110.0030.08014.48
5.3.100.0030.03714.02
5.3.90.0030.03713.95
5.3.80.0070.03313.84
5.3.70.0000.04013.84
5.3.60.0030.03713.84
5.3.50.0000.04313.87
5.3.40.0000.04013.87
5.3.30.0000.03713.73
5.3.20.0000.03713.51
5.3.10.0030.03313.64
5.3.00.0030.04313.46

preferences:
142.07 ms | 1398 KiB | 7 Q