3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows = simplexml_load_string(<<<XML <rows> <row id="1_2"> <col1>Adilabad</col1> <col2>Andhra Pradesh</col2> <col3>30-Apr-2014</col3> <col4>http://en.wikipedia.org/wiki/Adilabad_(Lok_Sabha_constituency)</col4> <col5>http://www.elections.in/andhra-pradesh/parliamentary-constituencies/adilabad.html</col5> </row> <row id="1_3"> <col1>Peddapalli</col1> <col2>Andhra Pradesh</col2> <col3>30-Apr-2014</col3> <col4>http://en.wikipedia.org/wiki/Peddapalli_(Lok_Sabha_constituency)</col4> <col5>http://www.elections.in/andhra-pradesh/parliamentary-constituencies/peddapalli.html</col5> </row> </rows> XML ); foreach ($rows->row as $row) { echo $row->col1.' , '.$row->col2."\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.60.0070.01018.68
8.3.50.0090.00721.97
8.3.40.0140.00019.10
8.3.30.0070.00719.18
8.3.20.0070.00020.59
8.3.10.0060.00322.10
8.3.00.0040.00422.65
8.2.180.0100.00718.52
8.2.170.0040.01119.16
8.2.160.0070.00722.96
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00619.48
8.2.110.0060.00320.78
8.2.100.0110.00319.63
8.2.90.0000.00719.33
8.2.80.0080.00018.29
8.2.70.0050.00517.88
8.2.60.0030.00518.16
8.2.50.0050.00318.07
8.2.40.0030.00520.13
8.2.30.0050.00318.20
8.2.20.0080.00017.84
8.2.10.0030.00517.89
8.2.00.0060.00317.84
8.1.280.0140.00625.92
8.1.270.0080.00022.31
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.22
8.1.230.0090.00321.10
8.1.220.0030.00517.79
8.1.210.0040.00418.77
8.1.200.0000.00917.61
8.1.190.0030.00517.66
8.1.180.0000.00818.73
8.1.170.0030.00518.73
8.1.160.0030.00522.45
8.1.150.0030.00518.86
8.1.140.0040.00417.61
8.1.130.0000.00717.92
8.1.120.0050.00317.77
8.1.110.0030.00517.68
8.1.100.0000.00817.70
8.1.90.0030.00617.71
8.1.80.0000.00817.56
8.1.70.0000.00817.66
8.1.60.0030.00517.83
8.1.50.0050.00217.79
8.1.40.0060.00317.80
8.1.30.0040.00417.74
8.1.20.0040.00417.73
8.1.10.0000.00817.82
8.1.00.0060.00317.48
8.0.300.0000.00718.77
8.0.290.0000.00817.41
8.0.280.0000.00718.76
8.0.270.0000.00717.46
8.0.260.0040.00417.03
8.0.250.0000.00717.11
8.0.240.0000.00717.09
8.0.230.0040.00417.27
8.0.220.0070.00017.18
8.0.210.0030.00317.22
8.0.200.0030.00317.17
8.0.190.0040.00417.26
8.0.180.0040.00417.23
8.0.170.0000.00817.19
8.0.160.0050.00317.09
8.0.150.0080.00017.08
8.0.140.0040.00417.13
8.0.130.0030.00313.64
8.0.120.0000.00817.05
8.0.110.0040.00417.22
8.0.100.0050.00517.15
8.0.90.0070.00017.06
8.0.80.0070.01017.14
8.0.70.0050.00217.17
8.0.60.0000.00817.09
8.0.50.0000.00717.18
8.0.30.0120.00917.10
8.0.20.0070.01117.41
8.0.10.0040.00417.16
8.0.00.0050.01317.11
7.4.330.0020.00515.00
7.4.320.0000.00616.79
7.4.300.0020.00516.72
7.4.290.0090.00016.79
7.4.280.0000.00716.82
7.4.270.0030.00316.77
7.4.260.0030.00316.80
7.4.250.0080.00016.63
7.4.240.0030.00416.81
7.4.230.0040.00416.92
7.4.220.0110.00716.78
7.4.210.0050.01316.86
7.4.200.0000.00716.91
7.4.190.0070.00016.59
7.4.160.0110.00516.83
7.4.150.0070.01017.40
7.4.140.0190.00617.86
7.4.130.0070.01216.75
7.4.120.0060.01116.81
7.4.110.0130.00916.74
7.4.100.0190.00316.73
7.4.90.0110.00716.80
7.4.80.0030.01719.39
7.4.70.0070.01016.69
7.4.60.0040.01416.72
7.4.50.0030.00616.70
7.4.40.0080.00522.77
7.4.30.0120.00916.67
7.4.00.0090.00315.14
7.3.330.0020.00313.32
7.3.320.0000.00513.16
7.3.310.0070.00016.55
7.3.300.0000.00716.47
7.3.290.0000.01416.50
7.3.280.0080.00916.44
7.3.270.0060.00917.40
7.3.260.0030.01416.52
7.3.250.0110.00716.64
7.3.240.0160.00016.59
7.3.230.0100.00716.55
7.3.210.0100.00716.35
7.3.200.0060.00919.39
7.3.190.0160.00316.55
7.3.180.0070.01016.61
7.3.170.0000.01616.46
7.3.160.0080.00816.70
7.3.120.0110.00315.07
7.3.110.0080.00614.88
7.3.100.0000.01515.12
7.3.90.0070.01014.94
7.3.80.0030.01015.03
7.3.70.0090.00614.89
7.3.60.0000.01514.70
7.3.50.0060.01014.85
7.3.40.0000.01714.85
7.3.30.0100.00314.74
7.3.20.0090.00316.64
7.3.10.0070.00916.71
7.3.00.0060.00816.66
7.2.330.0070.01216.60
7.2.320.0080.01116.97
7.2.310.0130.00916.85
7.2.300.0070.01016.77
7.2.290.0090.00616.95
7.2.240.0030.00915.15
7.2.230.0050.00515.34
7.2.220.0100.00315.22
7.2.210.0120.00315.02
7.2.200.0090.00915.44
7.2.190.0060.00615.16
7.2.180.0080.00814.97
7.2.170.0070.00715.15
7.2.160.0070.00715.36
7.2.150.0030.00616.87
7.2.140.0000.01517.09
7.2.130.0060.00816.99
7.2.120.0060.00916.77
7.2.110.0020.01216.95
7.2.100.0030.00916.99
7.2.90.0040.00817.03
7.2.80.0070.00916.90
7.2.70.0090.00816.85
7.2.60.0060.00816.94
7.2.50.0060.00917.12
7.2.40.0070.00517.10
7.2.30.0060.00817.05
7.2.20.0060.00716.96
7.2.10.0010.01117.01
7.2.00.0100.00416.91
7.1.330.0120.00015.89
7.1.320.0100.00315.86
7.1.310.0030.00916.30
7.1.300.0040.00816.07
7.1.290.0110.00015.95
7.1.280.0030.00715.78
7.1.270.0040.00715.92
7.1.260.0060.00315.76
7.1.250.0030.00815.83
7.1.200.0060.00915.64
7.1.70.0040.00417.05
7.1.60.0100.01419.82
7.1.50.0040.00717.11
7.1.00.0030.07722.58
7.0.200.0000.00816.86
7.0.140.0070.07022.15
7.0.60.0100.03320.12
7.0.50.0030.06717.88
7.0.40.0130.08320.16
7.0.30.0230.05320.14
7.0.20.0370.07320.14
7.0.10.0170.07720.32
7.0.00.0030.05020.25
5.6.210.0100.09320.61
5.6.200.0030.04318.36
5.6.190.0170.07720.85
5.6.180.4130.04020.81
5.6.170.0270.06020.51
5.6.160.0070.05720.59
5.6.150.0100.08318.24
5.6.140.0070.07718.20
5.6.130.0130.05718.23
5.6.120.0100.08021.10
5.6.110.0070.05321.04
5.6.100.0070.08021.03
5.6.90.0070.08721.02
5.6.80.0130.07320.43
5.6.70.0030.05320.61
5.5.350.0300.07320.44
5.5.340.0070.04718.10
5.5.330.0030.05020.57
5.5.320.0300.07720.50
5.5.310.0200.05020.38
5.5.300.0070.08018.09
5.5.290.0100.04718.05
5.5.280.0070.08720.92
5.5.270.0100.08320.93
5.5.260.0070.08320.91
5.5.250.0030.08020.82
5.5.240.0270.07320.40
5.4.450.0730.05019.27
5.4.440.0800.07319.68
5.4.430.0130.05019.60
5.4.420.0100.05719.45
5.4.410.0030.06318.87
5.4.400.0100.05018.86
5.4.390.0200.04318.55
5.4.380.0200.04318.67
5.4.370.0330.05318.75
5.4.360.0370.04718.86
5.4.350.0200.05318.71
5.4.340.0230.05318.71
5.4.320.0060.04112.61
5.4.310.0060.03912.61
5.4.300.0080.03712.61
5.4.290.0080.03912.61
5.4.280.0060.03812.51
5.4.270.0090.03712.51
5.4.260.0100.05018.88
5.4.250.0100.05019.09
5.4.240.0130.05018.91
5.4.230.0100.05018.78
5.4.220.0100.05319.07
5.4.210.0130.05019.07
5.4.200.0070.08018.79
5.4.190.0130.04718.98
5.4.180.0070.06018.85
5.4.170.0030.06018.90
5.4.160.0100.05319.07
5.4.150.0070.07018.73
5.4.140.0070.05016.64
5.4.130.0100.04716.53
5.4.120.0130.06716.55
5.4.110.0100.07716.41
5.4.100.0130.04316.65
5.4.90.0070.04716.55
5.4.80.0030.05016.45
5.4.70.0100.05016.66
5.4.60.0170.06316.65
5.4.50.0030.05016.49
5.4.40.0030.06316.64
5.4.30.0100.05016.60
5.4.20.0070.05016.24
5.4.10.0200.06016.59
5.4.00.0070.05015.82
5.3.290.0090.05412.88
5.3.280.0030.05314.75
5.3.270.0000.06014.75
5.3.260.0030.06014.69
5.3.250.0100.05714.67
5.3.240.0000.05714.70
5.3.230.0170.04014.69
5.3.220.0100.05014.64
5.3.210.0170.05014.64
5.3.200.0100.04714.65
5.3.190.0100.04714.40
5.3.180.0030.05314.65
5.3.170.0130.04314.63
5.3.160.0130.04314.40
5.3.150.0070.05014.63
5.3.140.0100.05714.51
5.3.130.0000.06014.62
5.3.120.0070.05314.68
5.3.110.0000.05714.66
5.3.100.0100.04714.03
5.3.90.0070.05014.10
5.3.80.0070.04714.00
5.3.70.0030.05013.99
5.3.60.0070.04714.22
5.3.50.0070.04713.91
5.3.40.0030.05313.92
5.3.30.0000.05313.74
5.3.20.0030.05313.79
5.3.10.0030.05013.88
5.3.00.0070.04713.61
5.2.170.0030.04311.23
5.2.160.0100.03311.18
5.2.150.0000.04311.18
5.2.140.0070.03711.21
5.2.130.0070.04311.00
5.2.120.0070.03711.16
5.2.110.0030.04011.08
5.2.100.0000.04310.99
5.2.90.0000.04311.19
5.2.80.0000.04311.20
5.2.70.0030.04311.13
5.2.60.0070.04011.19
5.2.50.0000.04711.16
5.2.40.0130.03011.08
5.2.30.0000.04311.05
5.2.20.0030.04011.16
5.2.10.0070.03711.02
5.2.00.0000.04310.98
5.1.60.0030.03310.15
5.1.50.0070.03010.18
5.1.40.0070.03010.12
5.1.30.0070.03010.25
5.1.20.0100.03010.49
5.1.10.0100.02710.16
5.1.00.0070.03310.21
5.0.50.0030.0278.67
5.0.40.0070.0238.54
5.0.30.0030.0408.55
5.0.20.0030.0278.32
5.0.10.0000.0308.32
5.0.00.0100.0408.45
4.4.90.0030.0275.84
4.4.80.0030.0205.87
4.4.70.0070.0175.82
4.4.60.0030.0235.79
4.4.50.0030.0205.81
4.4.40.0000.0335.81
4.4.30.0000.0235.87
4.4.20.0030.0205.86
4.4.10.0000.0235.85
4.4.00.0000.0335.82
4.3.110.0000.0235.75
4.3.100.0030.0205.74
4.3.90.0070.0235.68
4.3.80.0030.0335.71
4.3.70.0000.0235.70
4.3.60.0030.0175.68
4.3.50.0030.0205.71
4.3.40.0070.0405.67
4.3.30.0000.0235.43
4.3.20.0000.0275.43
4.3.10.0000.0235.43
4.3.00.0000.0236.75

preferences:
38.03 ms | 401 KiB | 5 Q