3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<?xml version=\"1.0\" ?>\n<Device>\n<Data bar=\"snafu\">some data</Data>\n</Device>"; $xml = simplexml_load_string($xml); var_dump($xml); var_dump($xml->Device->Data->attributes()

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.240.0140.04312.35
5.4.230.0100.04512.34
5.4.220.0130.03712.34
5.4.210.0100.03912.34
5.4.200.0110.04112.34
5.4.190.0100.04512.34
5.4.180.0110.04012.34
5.4.170.0130.03812.35
5.4.160.0100.04512.35
5.4.150.0120.04512.34
5.4.140.0110.04712.03
5.4.130.0100.04312.01
5.4.120.0270.05411.97
5.4.110.0120.03811.97
5.4.100.0130.03811.97
5.4.90.0120.03811.97
5.4.80.0070.04211.97
5.4.70.0120.03811.96
5.4.60.0150.04911.97
5.4.50.0100.04011.97
5.4.40.0110.03811.95
5.4.30.0110.04111.95
5.4.20.0120.04111.95
5.4.10.0160.04911.95
5.4.00.0130.03611.44
5.3.280.0140.04112.71
5.3.270.0100.04512.72
5.3.260.0090.04412.72
5.3.250.0100.04312.72
5.3.240.0140.03812.72
5.3.230.0130.04112.71
5.3.220.0130.03912.68
5.3.210.0140.03912.68
5.3.200.0120.04112.68
5.3.190.0100.05012.68
5.3.180.0130.04312.67
5.3.170.0120.04012.67
5.3.160.0110.04612.67
5.3.150.0130.05812.67
5.3.140.0110.04112.66
5.3.130.0150.03912.66
5.3.120.0170.05912.66
5.3.110.0100.04312.66
5.3.100.0120.04512.12
5.3.90.0130.04512.08
5.3.80.0120.04212.07
5.3.70.0110.04112.07
5.3.60.0110.04112.06
5.3.50.0130.03812.00
5.3.40.0090.04312.00
5.3.30.0170.04711.94
5.3.20.0100.04011.71
5.3.10.0110.03711.68
5.3.00.0120.03811.67

preferences:
146.16 ms | 1394 KiB | 7 Q