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 ); $Records = $xml; foreach ($Records->Record->Row->Entry 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.70.0120.00316.88
8.3.60.0110.00718.43
8.3.50.0110.00822.11
8.3.40.0120.00319.04
8.3.30.0070.00719.25
8.3.20.0030.00520.43
8.3.10.0040.00422.20
8.3.00.0060.00322.59
8.2.180.0150.00016.88
8.2.170.0130.00322.96
8.2.160.0090.00619.33
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.01126.16
8.2.120.0040.00419.48
8.2.110.0000.00922.42
8.2.100.0040.00817.66
8.2.90.0000.00819.37
8.2.80.0040.00418.16
8.2.70.0050.00317.88
8.2.60.0000.00818.05
8.2.50.0050.00318.07
8.2.40.0000.00918.41
8.2.30.0040.00418.26
8.2.20.0050.00317.83
8.2.10.0000.00817.90
8.2.00.0000.00717.92
8.1.280.0120.00625.92
8.1.270.0150.00422.10
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0080.00024.23
8.1.230.0060.00619.30
8.1.220.0030.00617.80
8.1.210.0000.00818.77
8.1.200.0030.00617.60
8.1.190.0060.00317.64
8.1.180.0040.00418.76
8.1.170.0050.00318.71
8.1.160.0070.00422.36
8.1.150.0040.00418.83
8.1.140.0050.00217.71
8.1.130.0000.00718.13
8.1.120.0040.00417.57
8.1.110.0000.00817.68
8.1.100.0070.00017.55
8.1.90.0000.00717.51
8.1.80.0000.00817.56
8.1.70.0030.00317.69
8.1.60.0000.00817.70
8.1.50.0040.00417.59
8.1.40.0020.00517.77
8.1.30.0000.00817.76
8.1.20.0040.00417.86
8.1.10.0040.00417.76
8.1.00.0050.00317.73
8.0.300.0000.00718.77
8.0.290.0050.00217.40
8.0.280.0050.00318.66
8.0.270.0040.00417.52
8.0.260.0030.00617.13
8.0.250.0040.00417.21
8.0.240.0000.00717.08
8.0.230.0040.00417.25
8.0.220.0000.00717.25
8.0.210.0030.00317.04
8.0.200.0040.00417.30
8.0.190.0080.00017.10
8.0.180.0000.00717.23
8.0.170.0000.00717.20
8.0.160.0000.00717.12
8.0.150.0050.00517.04
8.0.140.0070.00017.03
8.0.130.0060.00013.54
8.0.120.0050.00317.02
8.0.110.0000.00717.12
8.0.100.0000.00817.22
8.0.90.0020.00517.12
8.0.80.0060.00917.16
8.0.70.0030.00516.98
8.0.60.0040.00417.16
8.0.50.0070.00017.01
8.0.30.0110.00717.31
8.0.20.0150.00617.45
8.0.10.0030.00517.25
8.0.00.0130.00516.99
7.4.330.0000.00715.25
7.4.320.0000.00716.70
7.4.300.0060.00016.91
7.4.290.0000.00916.57
7.4.280.0040.00416.72
7.4.270.0070.00016.81
7.4.260.0070.00016.63
7.4.250.0040.00416.75
7.4.240.0020.00516.82
7.4.230.0070.00016.88
7.4.220.0130.00316.77
7.4.210.0080.00816.75
7.4.200.0000.00816.92
7.4.190.0000.00716.88
7.4.160.0130.00316.73
7.4.150.0060.01217.40
7.4.140.0070.01117.86
7.4.130.0110.00816.77
7.4.120.0090.01016.65
7.4.110.0030.02316.78
7.4.100.0140.00716.82
7.4.90.0060.01216.83
7.4.80.0090.01519.39
7.4.70.0060.01216.66
7.4.60.0090.01616.77
7.4.50.0090.00016.64
7.4.40.0040.01122.77
7.4.30.0090.01216.75
7.4.00.0070.01014.88
7.3.330.0050.00013.41
7.3.320.0050.00013.18
7.3.310.0040.00416.54
7.3.300.0060.00016.48
7.3.290.0090.00916.55
7.3.280.0090.00916.46
7.3.270.0040.01317.40
7.3.260.0170.00016.52
7.3.250.0110.00916.56
7.3.240.0060.01016.64
7.3.230.0100.00716.68
7.3.210.0140.01016.48
7.3.200.0130.00319.39
7.3.190.0100.00716.82
7.3.180.0100.00616.79
7.3.170.0100.00716.66
7.3.160.0070.01016.59
7.3.120.0070.01014.96
7.2.330.0100.00716.88
7.2.320.0160.00616.94
7.2.310.0120.00916.76
7.2.300.0100.00716.80
7.2.290.0110.00716.55
7.2.60.0100.00316.94
7.2.00.0060.00619.61
7.1.200.0000.01215.88
7.1.100.0040.00818.21
7.1.70.0040.00417.31
7.1.60.0100.01319.82
7.1.50.0100.01317.13
7.1.00.0070.07322.50
7.0.200.0000.01016.60
7.0.140.0030.07322.13
7.0.60.0030.05720.04
7.0.50.0070.04717.97
7.0.40.0000.05720.12
7.0.30.0370.07320.34
7.0.20.0270.05020.29
7.0.10.0270.05020.32
7.0.00.0030.04020.40
5.6.280.0100.06721.04
5.6.210.0070.07720.57
5.6.200.0170.06318.27
5.6.190.0100.08320.77
5.6.180.3570.04320.53
5.6.170.0400.07020.59
5.6.160.0030.04020.78
5.6.150.0100.04718.32
5.6.140.0000.04318.28
5.6.130.0000.04318.29
5.6.120.0070.05021.00
5.6.110.0070.08321.02
5.6.100.0070.07321.18
5.6.90.0100.08320.99
5.6.80.0170.07020.42
5.6.70.0300.07720.58
5.5.350.0000.03320.53
5.5.340.0070.05718.09
5.5.330.0130.08020.60
5.5.320.0230.04720.36
5.5.310.0330.07720.35
5.5.300.0030.08318.04
5.5.290.0130.04318.14
5.5.280.0070.07720.93
5.5.270.0030.05321.08
5.5.260.0030.04020.77
5.5.250.0030.08020.68
5.5.240.0100.07720.36
5.4.450.0470.05719.34
5.4.440.0500.05019.55
5.4.430.0470.05319.31
5.4.420.0270.05319.35
5.4.410.0700.04719.50
5.4.400.0900.00018.82
5.4.390.1100.00018.79
5.4.380.0270.06718.70
5.4.370.0530.03318.75
5.4.360.0400.07018.52
5.4.350.0300.05318.61
5.4.340.0330.04018.70
5.4.320.0100.03212.61
5.4.310.0050.03912.61
5.4.300.0040.03812.61
5.4.290.0060.03812.61
5.4.280.0010.03912.50
5.4.270.0070.03712.51
5.4.260.0100.05019.13
5.4.250.0170.04718.87
5.4.240.0100.05019.23
5.4.230.0130.04719.12
5.4.220.0100.05318.89
5.4.210.0130.05018.85
5.4.200.0070.06018.94
5.4.190.0100.05318.75
5.4.180.0070.05318.96
5.4.170.0000.06318.74
5.4.160.0100.04719.07
5.4.150.0070.08018.92
5.4.140.0070.05016.61
5.4.130.0070.04716.30
5.4.120.0100.05016.64
5.4.110.0170.04316.62
5.4.100.0070.05016.67
5.4.90.0170.04016.43
5.4.80.0130.04316.63
5.4.70.0070.05016.41
5.4.60.0130.04016.28
5.4.50.0130.06016.59
5.4.40.0100.04716.43
5.4.30.0100.04316.34
5.4.20.0200.05716.62
5.4.10.0070.05316.61
5.4.00.0100.04315.77
5.3.290.0070.03812.88
5.3.280.0000.05714.66
5.3.270.0030.05714.67
5.3.260.0130.04314.58
5.3.250.0070.05014.70
5.3.240.0100.04714.70
5.3.230.0100.05014.59
5.3.220.0130.05014.65
5.3.210.0070.05314.65
5.3.200.0030.05314.66
5.3.190.0130.04714.55
5.3.180.0130.06314.68
5.3.170.0000.05714.53
5.3.160.0100.05014.53
5.3.150.0200.04014.55
5.3.140.0070.05714.78
5.3.130.0000.07314.52
5.3.120.0070.05314.60
5.3.110.0070.05314.63
5.3.100.0130.04314.01
5.3.90.0200.04014.14
5.3.80.0170.04313.85
5.3.70.0100.04713.99
5.3.60.0030.05013.97
5.3.50.0030.05014.03
5.3.40.0030.05014.04
5.3.30.0100.04313.74
5.3.20.0030.05313.55
5.3.10.0100.04313.64
5.3.00.0130.04313.73
5.2.170.0030.04711.27
5.2.160.0070.04011.22
5.2.150.0030.04311.21
5.2.140.0000.06311.03
5.2.130.0030.04011.32
5.2.120.0030.04011.19
5.2.110.0030.04011.18
5.2.100.0070.05011.16
5.2.90.0030.04711.01
5.2.80.0070.04011.27
5.2.70.0100.04711.12
5.2.60.0030.06011.12
5.2.50.0070.04011.05
5.2.40.0000.04310.89
5.2.30.0130.04011.15
5.2.20.0030.04011.07
5.2.10.0030.04010.93
5.2.00.0000.04310.88
5.1.60.0030.04010.23
5.1.50.0100.04010.15
5.1.40.0030.03310.05
5.1.30.0000.04010.25
5.1.20.0100.03010.51
5.1.10.0030.04010.14
5.1.00.0070.03710.20
5.0.50.0100.0278.70
5.0.40.0070.0338.56
5.0.30.0030.0408.36
5.0.20.0100.0208.34
5.0.10.0030.0278.30
5.0.00.0030.0438.28
4.4.90.0070.0176.73
4.4.80.0000.0236.73
4.4.70.0070.0176.73
4.4.60.0070.0176.73
4.4.50.0030.0206.73
4.4.40.0000.0376.73
4.4.30.0030.0206.73
4.4.20.0170.0176.73
4.4.10.0030.0206.73
4.4.00.0100.0406.73
4.3.110.0030.0206.73
4.3.100.0030.0306.73
4.3.90.0070.0136.73
4.3.80.0000.0336.73
4.3.70.0000.0206.73
4.3.60.0000.0206.73
4.3.50.0030.0206.73
4.3.40.0000.0376.73
4.3.30.0000.0236.73
4.3.20.0030.0176.73
4.3.10.0030.0176.73
4.3.00.0030.0209.25

preferences:
34.21 ms | 401 KiB | 5 Q