3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXMLElement( '<catalogo> <server> <nome>ltw1319</nome> <convenzione>comprato</convenzione> <interoperabilita>Aggregato</interoperabilita> <url>http://ltw1319.web.cs.unibo.it/richieste</url> </server> <server> <nome>ltw1330</nome> <convenzione>comprato</convenzione> <interoperabilita>Aggregato</interoperabilita> <url>http://ltw1330.web.cs.unibo.it/richieste</url> </server> <server> <nome>ltw1336</nome> <convenzione>comprato</convenzione> <interoperabilita>Aggregato</interoperabilita> <url>http://ltw1336.web.cs.unibo.it/richieste</url> </server> <server> <nome>ltw1311</nome> <convenzione>Integrato</convenzione> <interoperabilita>Aggregato</interoperabilita> <url>http://ltw1311.web.cs.unibo.it/richieste</url> </server> </catalogo> '); $ulrscomprati = array(); $xml = simplexml_load_file('server.xml'); $item = $xml->server; $count=0; foreach($item as $dati){ $ur=$dati->url; if($ur != ""){ $ulrscomprati[$count]=$ur; } $count=$count+1; } echo $ulrscomprati[$count]; $result_from_server = json_encode($ulrscomprati,$data ); }

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.250.0170.04718.74
5.4.240.0130.05318.95
5.4.230.0100.05318.89
5.4.220.0130.04718.79
5.4.210.0200.06718.64
5.4.200.0100.04719.02
5.4.190.0170.06718.98
5.4.180.0130.05018.93
5.4.170.0030.05718.92
5.4.160.0070.05018.78
5.4.150.0070.05318.79
5.4.140.0030.05716.39
5.4.130.0100.04316.38
5.4.120.0100.05016.36
5.4.110.0030.05316.36
5.4.100.0000.05316.51
5.4.90.0130.05716.62
5.4.80.0100.06316.51
5.4.70.0070.05016.50
5.4.60.0070.05016.38
5.4.50.0200.05016.45
5.4.40.0000.05716.68
5.4.30.0130.06716.59
5.4.20.0130.06716.43
5.4.10.0130.07016.48
5.4.00.0100.05015.85
5.3.280.0030.06014.52
5.3.270.0030.05714.45
5.3.260.0030.05314.50
5.3.250.0170.04714.48
5.3.240.0030.05314.31
5.3.230.0000.05714.47
5.3.220.0070.05014.57
5.3.210.0130.05014.58
5.3.200.0070.05014.41
5.3.190.0070.07014.61
5.3.180.0200.03714.58
5.3.170.0170.04714.48
5.3.160.0130.04314.43
5.3.150.0100.05314.56
5.3.140.0170.04314.27
5.3.130.0100.07014.60
5.3.120.0100.05314.39
5.3.110.0070.05714.42
5.3.100.0030.05714.04
5.3.90.0170.04314.02
5.3.80.0070.05013.86
5.3.70.0200.04714.04
5.3.60.0000.05713.79
5.3.50.0130.04313.97
5.3.40.0000.05713.81
5.3.30.0130.04013.86
5.3.20.0070.07013.39
5.3.10.0030.05013.65
5.3.00.0170.04013.79

preferences:
151.67 ms | 1394 KiB | 7 Q