3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml=simplexml_load_string(<<<XML <Records> <record> <Constituency>Smith</Constituency> <State>16753</State> <ElectionDate>UK</ElectionDate> <WikipediaLink>Qtr 3</WikipediaLink> <Election.inLink>Qtr 3</Election.inLink> </record> <record> <Constituency>Johnson</Constituency> <State>14808</State> <ElectionDate>USA</ElectionDate> <WikipediaLink>Qtr 4</WikipediaLink> <Election.inLink>Qtr 4</Election.inLink> </record> </Records> XML ); $Records = $xml; foreach ($Records->Record->Entry as $Entry) { echo $Entry->Constituency.' , '.$Entry->State.' <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.60.0000.01518.55
8.3.50.0220.00522.10
8.3.40.0070.00718.79
8.3.30.0100.00319.17
8.3.20.0070.00020.46
8.3.10.0030.00522.17
8.3.00.0040.00422.59
8.2.180.0110.00416.49
8.2.170.0090.00622.96
8.2.160.0120.00319.33
8.2.150.0040.01124.18
8.2.140.0090.00024.66
8.2.130.0070.00326.16
8.2.120.0050.00319.61
8.2.110.0000.00920.83
8.2.100.0090.00318.03
8.2.90.0080.00019.38
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0050.00318.05
8.2.50.0090.00018.07
8.2.40.0060.00318.49
8.2.30.0040.00418.26
8.2.20.0050.00317.88
8.2.10.0000.00817.93
8.2.00.0080.00017.85
8.1.280.0040.01625.92
8.1.270.0060.00322.19
8.1.260.0030.00526.35
8.1.250.0030.00628.09
8.1.240.0060.00320.96
8.1.230.0040.00721.22
8.1.220.0050.00317.77
8.1.210.0040.00418.77
8.1.200.0000.01017.36
8.1.190.0080.00017.63
8.1.180.0040.00418.92
8.1.170.0000.00818.75
8.1.160.0090.00022.27
8.1.150.0000.00718.84
8.1.140.0000.00717.67
8.1.130.0000.00717.93
8.1.120.0070.00017.64
8.1.110.0080.00017.71
8.1.100.0040.00417.75
8.1.90.0040.00417.69
8.1.80.0040.00417.55
8.1.70.0000.00717.66
8.1.60.0050.00517.67
8.1.50.0080.00017.74
8.1.40.0050.00217.67
8.1.30.0040.00417.80
8.1.20.0050.00317.78
8.1.10.0040.00417.63
8.1.00.0000.00817.64
8.0.300.0070.00018.77
8.0.290.0000.00717.00
8.0.280.0000.00718.65
8.0.270.0030.00317.36
8.0.260.0000.00617.14
8.0.250.0000.00717.30
8.0.240.0030.00517.05
8.0.230.0000.00717.13
8.0.220.0000.00717.09
8.0.210.0000.00717.16
8.0.200.0000.00617.15
8.0.190.0000.00717.22
8.0.180.0000.00817.25
8.0.170.0040.00417.14
8.0.160.0000.00717.02
8.0.150.0040.00417.09
8.0.140.0000.00717.11
8.0.130.0030.00313.52
8.0.120.0000.00817.13
8.0.110.0020.00517.23
8.0.100.0040.00417.18
8.0.90.0000.00716.97
8.0.80.0150.00917.18
8.0.70.0070.00017.03
8.0.60.0040.00417.12
8.0.50.0000.00717.13
8.0.30.0110.00817.25
8.0.20.0130.00517.43
8.0.10.0000.00717.09
8.0.00.0090.01216.89
7.4.330.0060.00015.00
7.4.320.0000.00616.80
7.4.300.0060.00016.81
7.4.290.0040.00416.81
7.4.280.0070.00016.72
7.4.270.0060.00316.82
7.4.260.0030.00616.78
7.4.250.0050.00216.65
7.4.240.0040.00416.70
7.4.230.0050.00216.82
7.4.220.0030.01316.83
7.4.210.0080.00916.86
7.4.200.0030.00316.59
7.4.190.0000.00716.88
7.4.160.0060.01016.62
7.4.150.0070.01117.40
7.4.140.0100.01317.86
7.4.130.0100.00816.75
7.4.120.0070.01016.69
7.4.110.0080.00816.67
7.4.100.0130.01016.77
7.4.90.0100.00716.71
7.4.80.0120.01219.39
7.4.70.0110.00716.55
7.4.60.0000.01816.61
7.4.50.0000.00716.80
7.4.40.0070.00722.77
7.4.30.0070.01016.66
7.4.00.0050.01115.08
7.3.330.0000.00513.29
7.3.320.0050.00013.40
7.3.310.0000.00716.40
7.3.300.0070.00016.37
7.3.290.0040.01116.50
7.3.280.0080.00816.46
7.3.270.0130.00317.40
7.3.260.0060.01116.61
7.3.250.0090.01416.56
7.3.240.0180.00316.69
7.3.230.0040.01716.53
7.3.210.0140.00716.70
7.3.200.0080.00819.39
7.3.190.0120.00616.70
7.3.180.0130.00316.58
7.3.170.0090.01316.52
7.3.160.0100.00716.59
7.3.120.0090.00814.81
7.3.110.0030.01314.97
7.3.100.0030.01014.70
7.3.90.0060.00914.77
7.3.80.0070.00314.87
7.3.70.0040.01114.98
7.3.60.0030.00614.88
7.3.50.0030.01114.61
7.3.40.0050.00514.99
7.3.30.0120.00414.84
7.3.20.0000.00916.68
7.3.10.0110.00316.60
7.3.00.0080.00616.42
7.2.330.0120.00416.68
7.2.320.0140.00316.96
7.2.310.0160.00616.73
7.2.300.0000.02016.52
7.2.290.0100.00716.57
7.2.250.0060.01014.94
7.2.240.0090.00914.87
7.2.230.0070.00714.91
7.2.220.0070.00415.23
7.2.210.0070.00415.25
7.2.200.0100.01015.21
7.2.190.0040.01114.91
7.2.180.0130.00315.05
7.2.170.0040.01115.01
7.2.00.0100.00719.61
7.1.330.0070.00716.00
7.1.320.0000.01015.94
7.1.310.0070.01015.88
7.1.300.0100.00315.66
7.1.290.0110.00715.78
7.1.280.0080.00615.79
7.1.270.0060.00315.77
7.1.260.0040.00415.77
7.1.200.0030.00815.96
7.1.100.0050.00318.22
7.1.70.0040.00917.17
7.1.60.0100.01319.82
7.1.50.0040.00717.11
7.1.00.0170.06322.53
7.0.200.0040.00416.52
7.0.140.0000.08022.22
7.0.60.0170.07320.07
7.0.50.0100.06017.84
7.0.40.0000.05320.11
7.0.30.0370.06320.27
7.0.20.0270.06320.15
7.0.10.0270.04320.30
7.0.00.0130.08320.29
5.6.280.0000.07721.02
5.6.210.0130.07320.52
5.6.200.0000.04318.27
5.6.190.0200.07320.52
5.6.180.4100.04020.46
5.6.170.0400.08320.61
5.6.160.0000.04320.52
5.6.150.0130.06318.29
5.6.140.0070.08318.21
5.6.130.0030.04018.29
5.6.120.0100.08021.16
5.6.110.0170.07321.03
5.6.100.0100.08721.00
5.6.90.0000.04321.16
5.6.80.0070.08320.43
5.6.70.0330.07320.59
5.5.350.0030.07720.50
5.5.340.0070.03718.03
5.5.330.0100.03720.29
5.5.320.0100.04720.32
5.5.310.0270.08320.32
5.5.300.0100.07018.05
5.5.290.0130.06018.03
5.5.280.0000.04321.01
5.5.270.0170.07320.93
5.5.260.0000.04321.00
5.5.250.0130.07020.57
5.5.240.0130.06020.47
5.4.450.0130.05319.55
5.4.440.0670.05319.48
5.4.430.0000.06319.41
5.4.420.0030.06019.62
5.4.410.0170.05019.45
5.4.400.0830.00018.88
5.4.390.0670.00018.86
5.4.380.0170.06318.79
5.4.370.0230.04718.60
5.4.360.0300.04718.67
5.4.350.0300.05318.86
5.4.340.0200.06318.70
5.4.320.0110.04112.59
5.4.310.0100.03712.59
5.4.300.0080.04112.59
5.4.290.0110.05012.60
5.4.280.0040.04112.50
5.4.270.0070.03512.49
5.4.260.0100.05018.96
5.4.250.0200.04319.08
5.4.240.0000.05718.87
5.4.230.0130.04719.06
5.4.220.0170.04718.90
5.4.210.0170.04318.87
5.4.200.0130.04718.85
5.4.190.0130.04319.03
5.4.180.0070.05018.73
5.4.170.0070.05718.93
5.4.160.0000.06318.93
5.4.150.0100.05018.92
5.4.140.0100.04716.66
5.4.130.0100.05316.34
5.4.120.0030.05016.33
5.4.110.0100.04716.46
5.4.100.0030.05016.32
5.4.90.0030.05316.67
5.4.80.0070.04316.47
5.4.70.0070.04716.36
5.4.60.0070.05016.58
5.4.50.0000.05316.58
5.4.40.0070.05016.38
5.4.30.0070.05016.58
5.4.20.0030.05016.64
5.4.10.0200.05316.48
5.4.00.0030.06015.97
5.3.290.0050.04112.87
5.3.280.0030.05314.60
5.3.270.0030.05714.70
5.3.260.0130.06714.67
5.3.250.0100.04714.61
5.3.240.0030.05314.70
5.3.230.0070.05014.69
5.3.220.0170.05014.52
5.3.210.0030.06014.55
5.3.200.0100.04714.40
5.3.190.0100.04714.66
5.3.180.0100.04314.63
5.3.170.0070.04714.65
5.3.160.0070.04714.69
5.3.150.0030.05314.65
5.3.140.0000.05714.78
5.3.130.0130.05014.64
5.3.120.0000.06714.50
5.3.110.0030.07314.54
5.3.100.0030.05014.11
5.3.90.0070.04714.10
5.3.80.0030.05314.10
5.3.70.0100.04714.09
5.3.60.0100.04314.11
5.3.50.0030.05013.93
5.3.40.0030.05014.03
5.3.30.0070.04713.99
5.3.20.0000.05313.78
5.3.10.0030.05013.71
5.3.00.0000.05713.69
5.2.170.0030.04011.31
5.2.160.0070.03711.17
5.2.150.0100.03711.25
5.2.140.0030.04011.16
5.2.130.0070.03711.32
5.2.120.0070.03711.27
5.2.110.0030.04311.18
5.2.100.0030.04011.21
5.2.90.0100.05011.23
5.2.80.0000.04311.25
5.2.70.0030.04311.31
5.2.60.0000.04311.09
5.2.50.0030.04011.00
5.2.40.0100.03311.02
5.2.30.0000.04311.14
5.2.20.0030.04011.12
5.2.10.0030.03710.98
5.2.00.0070.03710.96
5.1.60.0100.02710.17
5.1.50.0070.03310.14
5.1.40.0030.03710.10
5.1.30.0030.03710.41
5.1.20.0100.03010.45
5.1.10.0070.03310.20
5.1.00.0030.03710.34
5.0.50.0030.0278.82
5.0.40.0100.0308.56
5.0.30.0000.0438.34
5.0.20.0030.0238.34
5.0.10.0000.0308.49
5.0.00.0000.0438.29
4.4.90.0000.0235.81
4.4.80.0030.0205.77
4.4.70.0000.0275.70
4.4.60.0030.0235.77
4.4.50.0000.0235.86
4.4.40.0000.0375.78
4.4.30.0000.0235.85
4.4.20.0000.0235.84
4.4.10.0070.0175.86
4.4.00.0100.0275.84
4.3.110.0000.0235.70
4.3.100.0030.0205.64
4.3.90.0000.0205.66
4.3.80.0030.0305.69
4.3.70.0030.0175.71
4.3.60.0070.0135.67
4.3.50.0030.0205.66
4.3.40.0070.0275.65
4.3.30.0030.0205.32
4.3.20.0000.0235.32
4.3.10.0000.0235.32
4.3.00.0070.0239.27

preferences:
31.59 ms | 401 KiB | 5 Q