3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0"?> <response><error code="0" message="" details=""></error><data><item id="12266824" subscriberid="47218" faxtype="0" listid="157750" fileid="858352" filename="" proprity="1" jobstatus="7" filetosend="RF20160912043659_1651144_sb47218.docx" faxnumber="83466727822" attempts="1" attemptsdone="" delay="5" nextattemptstart="2016-09-12 16:36" assigntochanel="-1" tifffilepages="1" notifyonok="0" notify="0" notifyemail="" isdialext="0" dialextval="" dialexttimeout="0" msgsend="0" arrlist="Array" schid="" priority="1"></item></data></response>'; //echo print_r(json_decode(json_encode((array) simplexml_load_string($xml)), 1), 1); function xml2array($xmlObject, $out = array()) { foreach ((array) $xmlObject as $index => $node) $out[$index . 'pref'] = ( is_object($node) ) ? xml2array($node) : $node; return $out; } echo print_r(xml2array(simplexml_load_string($xml)), 1);

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.5.10.0110.00720.44
8.5.00.0120.01120.34
8.4.150.0020.00114.05
8.4.140.0130.00818.02
8.4.130.0120.00919.03
8.4.120.0140.00624.42
8.4.110.0100.01022.63
8.4.100.0130.00718.11
8.4.90.0150.00519.20
8.4.80.0050.01217.98
8.4.70.0120.00818.04
8.4.60.0130.00818.98
8.4.50.0120.00918.95
8.4.40.0120.00919.52
8.4.30.0140.00717.79
8.4.20.0140.00717.73
8.4.10.0030.00619.77
8.3.280.0120.01118.74
8.3.270.0080.01217.02
8.3.260.0110.00916.86
8.3.250.0110.00719.05
8.3.240.0130.00517.42
8.3.230.0110.00916.64
8.3.220.0050.00317.36
8.3.210.0040.00418.64
8.3.200.0060.00216.91
8.3.190.0130.00717.24
8.3.180.0080.00718.50
8.3.170.0070.01117.31
8.3.160.0080.00420.22
8.3.150.0090.00017.38
8.3.140.0040.00417.48
8.3.130.0030.00518.80
8.3.120.0080.00019.20
8.3.110.0050.00520.94
8.3.100.0030.00624.06
8.3.90.0050.00326.77
8.3.80.0030.00617.97
8.3.70.0100.00718.43
8.3.60.0120.00616.75
8.3.50.0150.00922.12
8.3.40.0110.00419.17
8.3.30.0160.00019.01
8.3.20.0040.00420.54
8.3.10.0040.00422.07
8.3.00.0000.00722.56
8.2.290.0110.00722.39
8.2.280.0090.01018.89
8.2.270.0060.01317.49
8.2.260.0070.01116.91
8.2.250.0040.00416.88
8.2.240.0060.00317.54
8.2.230.0070.00322.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0030.00616.75
8.2.190.0040.01416.80
8.2.180.0060.01216.75
8.2.170.0140.00022.96
8.2.160.0160.00819.61
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00322.46
8.2.120.0080.00026.35
8.2.110.0100.00021.12
8.2.100.0040.00818.24
8.2.90.0000.00819.47
8.2.80.0090.00018.05
8.2.70.0030.00517.75
8.2.60.0000.00918.28
8.2.50.0000.00918.10
8.2.40.0040.00420.80
8.2.30.0040.00419.49
8.2.20.0080.00017.90
8.2.10.0040.00418.32
8.2.00.0040.00417.86
8.1.330.0090.01022.13
8.1.320.0100.01016.69
8.1.310.0110.00718.76
8.1.300.0060.00317.89
8.1.290.0000.00930.84
8.1.280.0070.00725.92
8.1.270.0040.00424.09
8.1.260.0070.00728.09
8.1.250.0110.00028.09
8.1.240.0080.00024.21
8.1.230.0110.00019.15
8.1.220.0030.00518.03
8.1.210.0050.00318.77
8.1.200.0100.00017.48
8.1.190.0000.00817.60
8.1.180.0030.00618.10
8.1.170.0050.00318.75
8.1.160.0040.00422.46
8.1.150.0000.00719.15
8.1.140.0040.00419.82
8.1.130.0030.00317.88
8.1.120.0000.00717.79
8.1.110.0040.00417.59
8.1.100.0060.00317.70
8.1.90.0030.00317.66
8.1.80.0000.00817.75
8.1.70.0000.00817.75
8.1.60.0000.00917.89
8.1.50.0030.00517.65
8.1.40.0000.01117.79
8.1.30.0040.00417.92
8.1.20.0000.00817.94
8.1.10.0030.00517.69
8.1.00.0040.00417.81
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0000.00718.68
8.0.270.0070.00017.45
8.0.260.0000.00717.66
8.0.250.0030.00317.08
8.0.240.0070.00017.26
8.0.230.0000.00717.05
8.0.220.0000.00817.02
8.0.210.0040.00417.00
8.0.200.0020.00517.24
8.0.190.0060.00317.19
8.0.180.0000.00717.09
8.0.170.0000.00817.20
8.0.160.0040.00417.07
8.0.150.0070.00017.01
8.0.140.0030.00516.95
8.0.130.0030.00313.50
8.0.120.0000.00817.10
8.0.110.0060.00316.98
8.0.100.0000.00816.89
8.0.90.0070.00016.96
8.0.80.0110.00417.09
8.0.70.0080.00016.97
8.0.60.0040.00417.13
8.0.50.0000.00717.13
8.0.30.0120.00517.39
8.0.20.0080.01117.40
8.0.10.0050.00316.98
8.0.00.0070.01016.96
7.4.330.0000.00715.08
7.4.320.0000.00616.70
7.4.300.0030.00316.66
7.4.290.0030.00316.55
7.4.280.0030.00516.67
7.4.270.0040.00416.70
7.4.260.0040.00416.71
7.4.250.0000.00716.78
7.4.240.0000.00816.92
7.4.230.0000.00716.78
7.4.220.0040.01416.79
7.4.210.0120.00316.69
7.4.200.0000.00716.84
7.4.160.0090.00716.66
7.4.150.0280.02517.40
7.4.140.0090.01217.86
7.4.130.0090.00816.79
7.4.120.0100.01016.64
7.4.110.0060.01116.58
7.4.100.0130.00416.79
7.4.90.0130.00616.51
7.4.80.0090.00919.39
7.4.70.0070.01016.70
7.4.60.0040.01416.62
7.4.50.0000.01416.59
7.4.40.0040.01416.88
7.4.30.0100.00616.67
7.4.00.0060.00915.02
7.3.330.0030.00313.51
7.3.320.0050.00013.42
7.3.310.0030.00316.64
7.3.300.0000.00716.63
7.3.290.0070.00816.55
7.3.280.0100.00916.58
7.3.270.0060.01217.40
7.3.260.0100.00916.65
7.3.250.0120.00716.58
7.3.240.0100.01016.79
7.3.230.0040.01216.83
7.3.210.0100.00716.55
7.3.200.0090.00916.69
7.3.190.0140.00316.84
7.3.180.0160.00716.86
7.3.170.0100.00716.71
7.3.160.0130.01016.56
7.2.330.0100.01316.92
7.2.320.0060.01016.92
7.2.310.0180.00616.74
7.2.300.0120.00616.85
7.2.290.0100.01016.88
7.2.60.0140.00017.09
7.2.00.0030.01019.33
7.1.200.0030.00916.00
7.1.70.0100.00017.22
7.1.60.0000.01017.45
7.1.00.0030.07722.48
7.0.200.0060.00316.92
7.0.100.0200.05020.18
7.0.90.0370.06720.15
7.0.80.0170.06020.24
7.0.70.0330.06320.06
7.0.60.0070.06720.18
7.0.50.0170.05320.60
7.0.40.0100.05720.39
7.0.30.0200.07720.44
7.0.20.0230.04720.54
7.0.10.0170.05320.43
7.0.00.0030.06720.43
5.6.250.0070.05720.75
5.6.240.0100.05720.81
5.6.230.0000.06320.70
5.6.220.0100.08020.98
5.6.210.0100.06720.69
5.6.200.0130.05721.24
5.6.190.0100.05321.18
5.6.180.0200.04721.21
5.6.170.0070.06021.18
5.6.160.0070.05721.26
5.6.150.0070.05721.15
5.6.140.0130.05021.14
5.6.130.0070.06021.20
5.6.120.0200.04721.23
5.6.110.0130.06021.16
5.6.100.0000.06721.14
5.6.90.0100.05721.20
5.6.80.0100.05320.53
5.6.70.0030.05720.57
5.6.60.0000.06020.54
5.6.50.0100.05320.55
5.6.40.0100.05020.52
5.6.30.0100.05020.56
5.6.20.0230.04020.47
5.6.10.0070.05320.55
5.6.00.0100.05020.61

preferences:
39.71 ms | 403 KiB | 5 Q