3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml=simplexml_load_string(<<<XML <Records> <Record> <Row A="Constituency" B="State" C="Election date" D="Population" E="Wikipedia link" F="Election.in link" /> </Record> <Record> <Row A="Adilabad" B="Andhra Pradesh" C="4/30/2014" E="http://en.wikipedia.org/wiki/Adilabad_(Lok_Sabha_constituency)" F="http://www.elections.in/andhra-pradesh/parliamentary-constituencies/adilabad.html" /> </Record> </Records> XML ); $Row = $xml; foreach ($Row as $Entry) { echo $Entry->A.' , '.$Entry->B.' <br />'; }

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.40.0110.00418.87
8.3.30.0070.00719.21
8.3.20.0050.00320.43
8.3.10.0050.00322.30
8.3.00.0030.00522.55
8.2.170.0110.00422.96
8.2.160.0070.00719.41
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0130.00626.16
8.2.120.0060.00319.50
8.2.110.0060.00322.46
8.2.100.0080.00317.91
8.2.90.0030.00519.30
8.2.80.0030.00618.05
8.2.70.0050.00617.38
8.2.60.0080.00018.05
8.2.50.0060.00318.07
8.2.40.0000.00820.13
8.2.30.0000.00718.25
8.2.20.0040.00417.71
8.2.10.0070.00017.83
8.2.00.0000.00717.87
8.1.270.0040.01122.44
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0080.00024.13
8.1.230.0040.00719.34
8.1.220.0080.00017.77
8.1.210.0050.00318.77
8.1.200.0030.00717.48
8.1.190.0080.00017.78
8.1.180.0030.00518.86
8.1.170.0040.00418.81
8.1.160.0030.00822.32
8.1.150.0000.00718.74
8.1.140.0060.00317.55
8.1.130.0000.00717.91
8.1.120.0020.00517.57
8.1.110.0000.00717.72
8.1.100.0050.00317.68
8.1.90.0080.00017.66
8.1.80.0020.00517.66
8.1.70.0070.00017.54
8.1.60.0050.00317.68
8.1.50.0040.00417.73
8.1.40.0040.00417.73
8.1.30.0040.00417.89
8.1.20.0080.00017.89
8.1.10.0030.00617.61
8.1.00.0040.00417.52
8.0.300.0060.00318.77
8.0.290.0000.00817.30
8.0.280.0000.00818.59
8.0.270.0000.00717.35
8.0.260.0000.00717.08
8.0.250.0040.00317.09
8.0.240.0040.00417.26
8.0.230.0050.00217.25
8.0.220.0040.00417.14
8.0.210.0030.00317.23
8.0.200.0000.00617.22
8.0.190.0040.00417.12
8.0.180.0000.00717.07
8.0.170.0050.00317.04
8.0.160.0000.00717.20
8.0.150.0000.00917.05
8.0.140.0000.00717.18
8.0.130.0030.00313.64
8.0.120.0030.00517.08
8.0.110.0080.00017.07
8.0.100.0080.00017.10
8.0.90.0030.00517.11
8.0.80.0150.00317.13
8.0.70.0040.00416.98
8.0.60.0050.00317.14
8.0.50.0000.00717.04
8.0.30.0110.00617.33
8.0.20.0100.00917.51
8.0.10.0000.00817.36
8.0.00.0100.00817.02
7.4.330.0000.00615.00
7.4.320.0070.00016.79
7.4.300.0000.00616.89
7.4.290.0060.00316.80
7.4.280.0000.00816.58
7.4.270.0030.00316.63
7.4.260.0030.00316.78
7.4.250.0040.00416.69
7.4.240.0040.00416.72
7.4.230.0000.00716.67
7.4.220.0110.00716.82
7.4.210.0090.01016.70
7.4.200.0000.00716.54
7.4.190.0000.00716.72
7.4.160.0110.01116.79
7.4.150.0110.00717.40
7.4.140.0100.01017.86
7.4.130.0080.01116.69
7.4.120.0090.00916.85
7.4.110.0190.01016.89
7.4.100.0100.01416.81
7.4.90.0070.01016.63
7.4.80.0110.00619.39
7.4.70.0060.01316.45
7.4.60.0100.00716.86
7.4.50.0070.00316.62
7.4.40.0130.00322.77
7.4.30.0070.01416.78
7.4.10.0040.01515.14
7.4.00.0090.00815.16
7.3.330.0050.00013.46
7.3.320.0030.00313.49
7.3.310.0000.00716.49
7.3.300.0030.00316.47
7.3.290.0090.00616.58
7.3.280.0090.00716.64
7.3.270.0080.00817.40
7.3.260.0100.00716.94
7.3.250.0120.00716.58
7.3.240.0060.01016.66
7.3.230.0120.00416.68
7.3.210.0100.01016.61
7.3.200.0000.01919.39
7.3.190.0100.00616.69
7.3.180.0120.00316.70
7.3.170.0100.00716.59
7.3.160.0070.01016.55
7.3.130.0040.01414.89
7.3.120.0080.01014.96
7.3.110.0000.01615.10
7.3.100.0040.00815.00
7.3.90.0070.00315.01
7.3.80.0040.01114.80
7.3.70.0000.01515.03
7.3.60.0030.01015.13
7.3.50.0110.00714.91
7.3.40.0050.00514.79
7.3.30.0000.00915.02
7.3.20.0030.01016.86
7.3.10.0030.01016.78
7.3.00.0060.00816.74
7.2.330.0130.00417.02
7.2.320.0030.01416.62
7.2.310.0080.00816.81
7.2.300.0110.00816.63
7.2.290.0130.00317.02
7.2.260.0030.01615.35
7.2.250.0060.01215.55
7.2.240.0060.00915.34
7.2.230.0040.01115.26
7.2.220.0030.01615.06
7.2.210.0140.00015.02
7.2.200.0060.00614.85
7.2.190.0080.00414.97
7.2.180.0050.00515.05
7.2.170.0090.00315.23
7.2.160.0070.00314.93
7.2.150.0030.01017.23
7.2.140.0060.00317.16
7.2.130.0050.00516.91
7.2.120.0080.00616.94
7.2.110.0070.00716.97
7.2.100.0050.01016.96
7.2.90.0090.00516.97
7.2.80.0100.00516.86
7.2.70.0050.00816.89
7.2.60.0060.00917.15
7.2.50.0050.00916.99
7.2.40.0020.01016.96
7.2.30.0070.00617.03
7.2.20.0040.00916.96
7.2.10.0050.00517.08
7.2.00.0050.00917.73
7.1.330.0090.00616.09
7.1.320.0070.00715.98
7.1.310.0060.00615.73
7.1.300.0090.00915.85
7.1.290.0080.00315.73
7.1.280.0100.00315.85
7.1.270.0000.00915.88
7.1.260.0040.00815.79
7.1.250.0050.00915.84
7.1.240.0060.00616.02
7.1.230.0060.00915.94
7.1.220.0080.00915.90
7.1.210.0020.01115.86
7.1.200.0050.00715.89
7.1.190.0060.00515.86
7.1.180.0060.00515.90
7.1.170.0060.00615.94
7.1.160.0100.00215.93
7.1.150.0030.00715.89
7.1.140.0030.01015.89
7.1.130.0040.00615.97
7.1.120.0050.00715.93
7.1.110.0060.00615.80
7.1.100.0060.00516.61
7.1.90.0080.00615.86
7.1.80.0080.00315.84
7.1.70.0060.00616.28
7.1.60.0030.01316.90
7.1.50.0070.00716.17
7.1.40.0080.00815.81
7.1.30.0040.00815.89
7.1.20.0020.01015.86
7.1.10.0070.00915.79
7.1.00.0060.02417.45
7.0.330.0070.00815.42
7.0.320.0010.01215.62
7.0.310.0040.00915.40
7.0.300.0090.00415.47
7.0.290.0080.00515.47
7.0.280.0050.00615.45
7.0.270.0040.00815.36
7.0.260.0070.00515.38
7.0.250.0060.00715.60
7.0.240.0050.00615.49
7.0.230.0020.00815.36
7.0.220.0040.00615.47
7.0.210.0070.00715.43
7.0.200.0080.00715.88
7.0.190.0050.01015.55
7.0.180.0040.01015.49
7.0.170.0050.00715.38
7.0.160.0050.00815.58
7.0.150.0070.00315.62
7.0.140.0070.02017.08
7.0.130.0050.00615.45
7.0.120.0040.00615.40
7.0.110.0070.00315.46
7.0.100.0020.00915.54
7.0.90.0040.00815.37
7.0.80.0020.00915.38
7.0.70.0070.01015.57
7.0.60.0070.02616.56
7.0.50.0050.01616.20
7.0.40.0070.01515.16
7.0.30.0100.02015.28
7.0.20.0120.02015.24
7.0.10.0100.01815.19
7.0.00.0070.02515.17
5.6.400.0040.01114.41
5.6.390.0030.01214.18
5.6.380.0060.00814.43
5.6.370.0060.00614.54
5.6.360.0070.00814.51
5.6.350.0050.00714.51
5.6.340.0050.00714.40
5.6.330.0020.00714.29
5.6.320.0040.01014.47
5.6.310.0040.00714.36
5.6.300.0040.00914.38
5.6.290.0050.00614.39
5.6.280.0070.01915.99
5.6.270.0040.01014.56
5.6.260.0020.01014.44
5.6.250.0060.00714.22
5.6.240.0070.00514.44
5.6.230.0090.00314.44
5.6.220.0040.00714.11
5.6.210.0090.02315.91
5.6.200.0030.02915.23
5.6.190.0060.02415.84
5.6.180.1080.01616.07
5.6.170.0070.02415.95
5.6.160.0030.01815.74
5.6.150.0060.01415.44
5.6.140.0090.02615.30
5.6.130.0070.01415.51
5.6.120.0060.02815.99
5.6.110.0030.03016.07
5.6.100.0050.02816.07
5.6.90.0050.01415.99
5.6.80.0070.02415.89
5.6.70.0120.02315.84
5.6.60.0050.00814.34
5.6.50.0070.00314.32
5.6.40.0060.00914.14
5.6.30.0030.01114.31
5.6.20.0060.00814.33
5.6.10.0070.00414.26
5.6.00.0030.01314.37
5.5.380.0040.00912.35
5.5.370.0030.00712.21
5.5.360.0050.00512.37
5.5.350.0030.02714.21
5.5.340.0070.01613.57
5.5.330.0080.02314.32
5.5.320.0060.02614.17
5.5.310.0120.01914.17
5.5.300.0060.02313.58
5.5.290.0030.02413.73
5.5.280.0080.01214.35
5.5.270.0040.02514.40
5.5.260.0070.02314.35
5.5.250.0050.02614.28
5.5.240.0060.02014.15
5.5.230.0010.00712.10
5.5.220.0050.00412.13
5.5.210.0050.00512.22
5.5.200.0030.00412.11
5.5.190.0050.00612.07
5.5.180.0060.00412.08
5.5.170.0050.00813.15
5.5.160.0050.00612.22
5.5.150.0050.00811.96
5.5.140.0040.01012.08
5.5.130.0050.00512.08
5.5.120.0060.00612.19
5.5.110.0060.00612.21
5.5.100.0070.00612.10
5.5.90.0050.00612.11
5.5.80.0040.00712.17
5.5.70.0030.00612.12
5.5.60.0060.00512.02
5.5.50.0040.00811.96
5.5.40.0080.00512.05
5.5.30.0060.00411.98
5.5.20.0060.00312.00
5.5.10.0030.00812.09
5.5.00.0040.00612.13
5.4.450.0210.02313.33
5.4.440.0150.02213.32
5.4.430.0060.01813.22
5.4.420.0080.01713.15
5.4.410.0070.01713.22
5.4.400.0230.00512.93
5.4.390.0250.00413.00
5.4.380.0080.02013.07
5.4.370.0090.01912.92
5.4.360.0160.01613.02
5.4.350.0110.01612.98
5.4.340.0110.01312.95
5.4.330.0040.00611.08
5.4.320.0030.01511.48
5.4.310.0030.01411.44
5.4.300.0050.01211.40
5.4.290.0080.01211.38
5.4.280.0030.01811.43
5.4.270.0060.01311.40
5.4.260.0020.01713.04
5.4.250.0050.01613.05
5.4.240.0040.02013.03
5.4.230.0040.02112.93
5.4.220.0090.01713.11
5.4.210.0090.01312.90
5.4.200.0050.01413.04
5.4.190.0060.02112.95
5.4.180.0090.01313.07
5.4.170.0040.02413.03
5.4.160.0050.02013.02
5.4.150.0040.01813.04
5.4.140.0030.01912.46
5.4.130.0050.01512.37
5.4.120.0050.01812.43
5.4.110.0050.01712.44
5.4.100.0070.01812.46
5.4.90.0040.01612.48
5.4.80.0060.02012.49
5.4.70.0050.01812.38
5.4.60.0070.01412.52
5.4.50.0060.01512.44
5.4.40.0030.01612.38
5.4.30.0050.02312.39
5.4.20.0030.01712.39
5.4.10.0050.01812.42
5.4.00.0070.01712.29
5.3.290.0050.01511.45
5.3.280.0040.01711.87
5.3.270.0030.02111.89
5.3.260.0060.01611.87
5.3.250.0060.01611.86
5.3.240.0030.02011.89
5.3.230.0040.01711.83
5.3.220.0090.01811.83
5.3.210.0070.01511.85
5.3.200.0020.02711.81
5.3.190.0070.01411.84
5.3.180.0030.01611.92
5.3.170.0060.02111.86
5.3.160.0040.01911.87
5.3.150.0030.01811.93
5.3.140.0030.01911.94
5.3.130.0020.02211.84
5.3.120.0050.01811.90
5.3.110.0040.01711.81
5.3.100.0080.01411.71
5.3.90.0040.01711.68
5.3.80.0040.02111.71
5.3.70.0060.01311.68
5.3.60.0030.01911.74
5.3.50.0090.01211.70
5.3.40.0020.01711.69
5.3.30.0050.01611.70
5.3.20.0040.01611.59
5.3.10.0040.01811.56
5.3.00.0030.01811.56
5.2.170.0050.01810.88
5.2.160.0030.01610.84
5.2.150.0040.01910.87
5.2.140.0040.01810.86
5.2.130.0030.01810.83
5.2.120.0030.01610.87
5.2.110.0030.01810.83
5.2.100.0020.02210.84
5.2.90.0010.01810.83
5.2.80.0040.01710.83
5.2.70.0030.01710.80
5.2.60.0000.01910.81
5.2.50.0030.02010.81
5.2.40.0100.01210.77
5.2.30.0040.01710.79
5.2.20.0020.02410.80
5.2.10.0040.01510.77
5.2.00.0030.02110.70
5.1.60.0050.01110.45
5.1.50.0040.01410.47
5.1.40.0050.01310.45
5.1.30.0050.01310.63
5.1.20.0060.01310.66
5.1.10.0040.01310.51
5.1.00.0050.01310.48
5.0.50.0030.0139.99
5.0.40.0050.0149.94
5.0.30.0010.0199.90
5.0.20.0020.0139.92
5.0.10.0040.0119.83
5.0.00.0050.0209.88
4.4.90.0010.0139.35
4.4.80.0030.0089.35
4.4.70.0030.0099.35
4.4.60.0020.0099.35
4.4.50.0010.0129.35
4.4.40.0020.0149.35
4.4.30.0010.0129.35
4.4.20.0040.0089.35
4.4.10.0010.0109.35
4.4.00.0020.0169.35
4.3.110.0000.0159.35
4.3.100.0040.0119.35
4.3.90.0020.0109.35
4.3.80.0020.0129.35
4.3.70.0030.0099.35
4.3.60.0040.0089.35
4.3.50.0000.0129.35
4.3.40.0030.0129.35
4.3.30.0040.0079.35
4.3.20.0040.0079.35
4.3.10.0020.0099.35
4.3.00.0060.00810.20

preferences:
42.7 ms | 400 KiB | 5 Q