3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <findit xmlns="http://www.URL.COM" version="8" type="TIX" date="20160323"> <account code="XXXXXX"> <customers> <customer code="12345"> <status code="0">Success</status> <logistic-jobs> <logistic-job id="12345" date="20160324" status="PLA" modified="201603231420"> <number> <number1>479599</number1> <number3>11221</number3> </number> <collection date="20160324" time="0500"> <name>JOHN SMITH</name> <address1>UNIT 3 DAVEY ROAD</address1> <address2>FIELDS END BUSINESS PARK</address2> <address3>GOLDTHORPE</address3> <address4>ROTHERHAM</address4> <address5>S63 0JF</address5> </collection> <delivery date="20160324" time="1200"> <address1>EXAMPLE</address1> <address2>GLENEAFLES FARM</address2> <address3>GLENEAGLES CLOSE</address3> <address4>STANWELL, MIDDLESEX</address4> <address5>TW19 7PD</address5> </delivery> <extra> <address1>45FT C/SIDER</address1> <address2>No</address2> <address4>CEMENT</address4> </extra> <drivers> <driver code="TM1">DAVE SMITH (DAYS)</driver> </drivers> <load weight="27600.00" volume="0.00"> <pallets full="23" half="0" quarter="0" blue="0" oversize="0"/> </load> </logistic-job> </logistic-jobs> </customer> </customers> </account> </findit> XML; $job_simple = simplexml_load_string($xml); if(isset($job_simple->account->customers->customer)) { // Foreach customer in array foreach($job_simple->account->customers->customer as $i => $customer) { // If status is set to success if((string)$customer->status == "Success") { // For each job foreach($customer->{'logistic-jobs'}->{'logistic-job'} as $i => $job) { echo "<ul>\n"; foreach ( $job->drivers->driver as $driver ) { echo "<li> {$driver['code']}: $driver\n"; } echo "</ul>\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)
8.3.130.0040.00816.84
8.3.120.0040.00420.91
8.3.110.0040.00420.94
8.3.100.0030.00624.06
8.3.90.0110.00426.77
8.3.80.0030.00618.68
8.3.70.0100.01017.00
8.3.60.0070.00716.75
8.3.50.0140.00521.21
8.3.40.0120.00318.99
8.3.30.0040.01119.10
8.3.20.0000.00819.07
8.3.10.0050.00321.99
8.3.00.0080.00021.26
8.2.250.0170.00316.78
8.2.240.0040.00417.42
8.2.230.0090.00022.58
8.2.220.0050.00337.54
8.2.210.0060.00326.77
8.2.200.0060.00316.88
8.2.190.0070.00718.79
8.2.180.0100.01025.92
8.2.170.0100.01019.32
8.2.160.0140.00022.96
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0080.00026.16
8.2.110.0070.00320.91
8.2.100.0070.00318.22
8.2.90.0060.00319.52
8.2.80.0040.00417.97
8.2.70.0030.00517.88
8.2.60.0040.00418.05
8.2.50.0030.00618.10
8.2.40.0040.00422.58
8.2.30.0040.00420.97
8.2.20.0040.00417.96
8.2.10.0000.00718.28
8.2.00.0090.00018.40
8.1.300.0040.00418.92
8.1.290.0080.00430.84
8.1.280.0040.01125.92
8.1.270.0000.00824.24
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00424.04
8.1.230.0080.00321.22
8.1.220.0040.00417.93
8.1.210.0050.00318.77
8.1.200.0060.00317.49
8.1.190.0050.00317.48
8.1.180.0090.00018.10
8.1.170.0040.00418.90
8.1.160.0040.00419.28
8.1.150.0000.00819.18
8.1.140.0040.00419.90
8.1.130.0040.00417.96
8.1.120.0000.00717.75
8.1.110.0040.00417.71
8.1.100.0030.00617.66
8.1.90.0000.00717.61
8.1.80.0040.00417.55
8.1.70.0070.00017.71
8.1.60.0040.00417.88
8.1.50.0030.00617.63
8.1.40.0040.00717.88
8.1.30.0040.00417.90
8.1.20.0040.00417.82
8.1.10.0040.00417.57
8.1.00.0080.00017.77
8.0.300.0040.00418.77
8.0.290.0090.00017.13
8.0.280.0050.00318.66
8.0.270.0040.00417.63
8.0.260.0030.00317.53
8.0.250.0070.00017.33
8.0.240.0060.00317.35
8.0.230.0000.00817.29
8.0.220.0000.00717.12
8.0.210.0040.00417.29
8.0.200.0060.00317.28
8.0.190.0040.00417.27
8.0.180.0040.00417.30
8.0.170.0000.00817.30
8.0.160.0040.00417.32
8.0.150.0070.00017.24
8.0.140.0040.00417.25
8.0.130.0060.00013.71
8.0.120.0080.00017.09
8.0.110.0080.00017.20
8.0.100.0050.00217.32
8.0.90.0040.00417.23
8.0.80.0130.00717.17
8.0.70.0040.00417.25
8.0.60.0040.00417.17
8.0.50.0030.00617.22
8.0.30.0140.00517.45
8.0.20.0110.01017.46
8.0.10.0070.00017.40
8.0.00.0090.01117.08
7.4.330.0000.00715.08
7.4.320.0000.00716.69
7.4.300.0030.00316.79
7.4.290.0060.00316.70
7.4.280.0050.00216.77
7.4.270.0000.00716.79
7.4.260.0000.00716.80
7.4.250.0050.00316.83
7.4.240.0000.00716.75
7.4.230.0040.00416.80
7.4.220.0080.01216.84
7.4.210.0060.00916.78
7.4.200.0000.00716.93
7.4.160.0060.00917.01
7.4.150.0100.00717.40
7.4.140.0080.01117.86
7.4.130.0140.00716.80
7.4.120.0100.01116.86
7.4.110.0090.00916.77
7.4.100.0110.00716.73
7.4.90.0080.01616.77
7.4.80.0040.01419.39
7.4.70.0110.00916.98
7.4.60.0060.01016.67
7.4.50.0080.00816.93
7.4.40.0160.00016.79
7.4.30.0030.01416.69
7.4.00.0050.01215.18
7.3.330.0030.00313.51
7.3.320.0060.00013.51
7.3.310.0070.00016.68
7.3.300.0040.00416.61
7.3.290.0060.01116.58
7.3.280.0100.00916.60
7.3.270.0060.01217.40
7.3.260.0160.01016.65
7.3.250.0110.00616.78
7.3.240.0120.00816.65
7.3.230.0080.00816.71
7.3.210.0100.00716.80
7.3.200.0100.00716.68
7.3.190.0100.00716.75
7.3.180.0120.00316.84
7.3.170.0120.00616.72
7.3.160.0060.00916.70
7.3.120.0060.01314.85
7.3.110.0060.00814.81
7.3.100.0030.01015.04
7.3.90.0030.01515.13
7.3.80.0060.00314.88
7.3.70.0080.00714.88
7.3.60.0060.00914.98
7.3.50.0050.00815.01
7.3.40.0050.01115.00
7.3.30.0070.00614.94
7.3.20.0110.00516.11
7.3.10.0090.00616.18
7.3.00.0290.00716.17
7.2.330.0150.00316.86
7.2.320.0140.00316.79
7.2.310.0090.00916.98
7.2.300.0090.01516.91
7.2.290.0130.00316.68
7.2.250.0070.01415.18
7.2.240.0060.01015.13
7.2.230.0130.00715.41
7.2.220.0030.01315.26
7.2.210.0070.00715.32
7.2.200.0090.00615.31
7.2.190.0060.01015.14
7.2.180.0080.00615.26
7.2.170.0040.01015.08
7.2.160.0090.00415.22
7.2.150.0100.00816.14
7.2.140.0050.01216.29
7.2.130.0100.00316.29
7.2.120.0080.00615.92
7.2.110.0140.00616.14
7.2.100.0090.00816.17
7.2.90.0130.00616.16
7.2.80.0140.00516.24
7.2.70.0130.00616.04
7.2.60.0130.01116.31
7.2.50.0090.00816.06
7.2.40.0140.00816.25
7.2.30.0100.00516.03
7.2.20.0090.01016.07
7.2.10.0100.01116.04
7.2.00.0120.00416.07
7.1.330.0030.01015.70
7.1.320.0040.00515.72
7.1.310.0070.00715.73
7.1.300.0130.00415.14
7.1.290.0060.01015.32
7.1.280.0070.00715.23
7.1.270.0090.00615.21
7.1.260.0110.00515.19
7.1.250.0090.00614.86
7.1.240.0160.00814.93
7.1.230.0100.01614.87
7.1.220.0150.00814.78
7.1.210.0190.00614.78
7.1.200.0100.00915.14
7.1.190.0110.01014.81
7.1.180.0190.00414.93
7.1.170.0150.00715.07
7.1.160.0160.00815.05
7.1.150.0460.01114.90
7.1.140.0140.01014.95
7.1.130.0170.00815.07
7.1.120.0150.00815.10
7.1.110.0170.00814.94
7.1.100.0100.00916.08
7.1.90.0130.00914.85
7.1.80.0170.00714.84
7.1.70.0160.00515.72
7.1.60.0800.00616.76
7.1.50.0210.00515.09
7.1.40.0130.01315.05
7.1.30.0190.00415.01
7.1.20.0120.00914.88
7.1.10.0150.00714.88
7.1.00.0090.03317.50
7.0.330.0220.00714.61
7.0.320.0140.01214.68
7.0.310.0160.00614.66
7.0.300.0180.00714.55
7.0.290.0140.00914.58
7.0.280.0150.01014.46
7.0.270.0150.00714.70
7.0.260.0060.01414.59
7.0.250.0160.00914.63
7.0.240.0120.00914.73
7.0.230.0180.00414.69
7.0.220.0170.00714.81
7.0.210.0140.00914.63
7.0.200.0130.00914.71
7.0.190.0060.01614.56
7.0.180.0150.00514.50
7.0.170.0110.01014.67
7.0.160.0140.00814.70
7.0.150.0120.01214.79
7.0.140.0170.00614.60
7.0.130.0120.01114.63
7.0.120.0150.00514.60
7.0.110.0150.00914.70
7.0.100.0150.00714.72
7.0.90.0170.00414.54
7.0.80.0110.01214.71
7.0.70.0190.00613.65
7.0.60.0240.02315.80
7.0.50.0120.03015.25
7.0.40.0300.02415.97
7.0.30.0150.02516.09
7.0.20.0420.02915.99
7.0.10.0280.02915.98
7.0.00.0180.02315.93
5.6.400.0150.00814.45
5.6.390.0120.01114.30
5.6.380.0110.00914.51
5.6.370.0160.00514.41
5.6.360.0140.00914.42
5.6.350.0160.00814.70
5.6.340.0150.00614.41
5.6.330.0100.01114.44
5.6.320.0160.00414.63
5.6.310.0160.00514.70
5.6.300.0160.00614.75
5.6.290.0170.00514.75
5.6.280.0120.02816.67
5.6.270.0090.01014.83
5.6.260.0160.00514.54
5.6.250.0160.00714.56
5.6.240.0130.00714.64
5.6.230.0140.00414.55
5.6.220.0170.00514.42
5.6.210.0110.03316.62
5.6.200.0130.02915.71
5.6.190.0220.03016.68
5.6.180.0200.02816.60
5.6.170.0170.02416.48
5.6.160.0100.02916.54
5.6.150.0190.02216.51
5.6.140.0140.02616.36
5.6.130.0180.02816.50
5.6.120.0150.02216.54
5.6.110.0110.02816.49
5.6.100.0120.02816.49
5.6.90.0260.02416.42
5.6.80.0180.02816.39
5.6.70.0180.02116.20
5.6.60.0170.02216.21
5.6.50.0120.02616.20
5.6.40.0150.02416.20
5.6.30.0100.02816.31
5.6.20.0200.02616.18
5.6.10.0220.02716.16
5.6.00.0200.02216.25
5.5.380.0130.00914.66
5.5.370.0160.00614.38
5.5.360.0170.00514.45
5.5.350.0100.03716.59
5.5.340.0110.03415.54
5.5.330.0290.03016.40
5.5.320.0140.02516.60
5.5.310.0250.02416.28
5.5.300.0170.02316.28
5.5.290.0160.02716.47
5.5.280.0150.02216.51
5.5.270.0150.02416.41
5.5.260.0160.02116.37
5.5.250.0130.03416.10
5.5.240.0160.02616.06
5.5.230.0220.02516.27
5.5.220.0130.03516.11
5.5.210.0180.02216.20
5.5.200.0150.02516.25
5.5.190.0140.02616.12
5.5.180.0270.02116.15
5.5.170.0180.00714.36
5.5.160.0200.02215.96
5.5.150.0130.02916.19
5.5.140.0190.01916.05
5.5.130.0200.02216.09
5.5.120.0190.02216.08
5.5.110.0120.02316.01
5.5.100.0220.02216.03
5.5.90.0210.02715.84
5.5.80.0090.03316.08
5.5.70.0090.03316.19
5.5.60.0190.02416.00
5.5.50.0160.03215.98
5.5.40.0270.03116.12
5.5.30.0270.02316.07
5.5.20.0270.02616.12
5.5.10.0130.02615.94
5.5.00.0130.02616.10
5.4.450.0080.00611.34
5.4.440.0110.00611.34
5.4.430.0120.00511.34
5.4.420.0120.00311.36
5.4.410.0100.00411.34
5.4.400.0070.00711.35
5.4.390.0070.00711.34
5.4.380.0120.00611.34
5.4.370.0120.00411.36
5.4.360.0090.00511.34
5.4.350.0070.00611.34
5.4.340.0090.00811.34
5.4.330.0090.01011.34
5.4.320.0040.01111.34
5.4.310.0100.00311.34
5.4.300.0060.00511.34
5.4.290.0150.00011.34
5.4.280.0100.00511.34
5.4.270.0140.00011.34
5.4.260.0090.00511.34
5.4.250.0080.00711.34
5.4.240.0100.00711.34
5.4.230.0070.00711.34
5.4.220.0070.00511.34
5.4.210.0060.01011.37
5.4.200.0090.00511.34
5.4.190.0100.00411.34
5.4.180.0120.00411.34
5.4.170.0090.00511.34
5.4.160.0080.00711.34
5.4.150.0080.00811.34
5.4.140.0050.01011.42
5.4.130.0060.00511.34
5.4.120.0060.00811.34
5.4.110.0070.00811.34
5.4.100.0090.00411.35
5.4.90.0090.00611.34
5.4.80.0060.00911.34
5.4.70.0110.00111.34
5.4.60.0050.00911.34
5.4.50.0100.00311.34
5.4.40.0150.00511.34
5.4.30.0130.00411.34
5.4.20.0090.00711.34
5.4.10.0080.00711.34
5.4.00.0120.00611.34
5.3.290.0080.00611.34
5.3.280.0070.00711.34
5.3.270.0110.00411.34
5.3.260.0040.01111.34
5.3.250.0110.00611.34
5.3.240.0030.01111.34
5.3.230.0100.00511.34
5.3.220.0090.00611.34
5.3.210.0060.00511.34
5.3.200.0110.00211.34
5.3.190.0110.00311.34
5.3.180.0080.00511.34
5.3.170.0040.00811.34
5.3.160.0070.00611.34
5.3.150.0060.00711.34
5.3.140.0100.00511.34
5.3.130.0120.00111.34
5.3.120.0060.00811.34
5.3.110.0100.00411.34
5.3.100.0070.00711.34
5.3.90.0060.00711.34
5.3.80.0100.00311.34
5.3.70.0040.01011.34
5.3.60.0090.00411.34
5.3.50.0140.00011.34
5.3.40.0090.00511.34
5.3.30.0070.00611.34
5.3.20.0070.00711.34
5.3.10.0070.00411.34
5.3.00.0110.00211.34
5.2.170.0070.00511.34
5.2.160.0060.00611.34
5.2.150.0070.00511.34
5.2.140.0070.00411.34
5.2.130.0100.00311.34
5.2.120.0050.00611.34
5.2.110.0040.00811.34
5.2.100.0060.00611.34
5.2.90.0090.00311.34
5.2.80.0090.00311.34
5.2.70.0070.00411.34
5.2.60.0070.00411.34
5.2.50.0130.00011.34
5.2.40.0080.00611.34
5.2.30.0070.00611.34
5.2.20.0080.00611.34
5.2.10.0070.00611.34
5.2.00.0070.00411.34
5.1.60.0080.00211.34
5.1.50.0040.00411.34
5.1.40.0050.00411.34
5.1.30.0080.00211.34
5.1.20.0050.00511.34
5.1.10.0070.00411.34
5.1.00.0050.00511.34
5.0.50.0040.00611.34
5.0.40.0070.00311.34
5.0.30.0080.00211.34
5.0.20.0090.00211.34
5.0.10.0090.00211.34
5.0.00.0080.00411.34
4.4.90.0080.00011.34
4.4.80.0030.00411.34
4.4.70.0060.00311.34
4.4.60.0060.00211.34
4.4.50.0080.00111.34
4.4.40.0060.00111.34
4.4.30.0040.00311.34
4.4.20.0020.00511.34
4.4.10.0080.00111.34
4.4.00.0040.00611.34
4.3.110.0070.00111.34
4.3.100.0020.00411.34
4.3.90.0000.00711.34
4.3.80.0060.00211.34
4.3.70.0030.00311.34
4.3.60.0050.00211.34
4.3.50.0060.00211.34
4.3.40.0000.00711.34
4.3.30.0030.00411.34
4.3.20.0030.00311.34
4.3.10.0030.00311.34
4.3.00.0050.00311.34

preferences:
31.13 ms | 403 KiB | 5 Q