3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str=<<<XML <database name="newsportal"> <table name="wp_options"> <column name="option_id">1</column> <column name="option_name">siteurl</column> <column name="option_value">http://localhost/newsportal</column> <column name="autoload">yes</column> </table> <table name="wp_options"> <column name="option_id">2</column> <column name="option_name">home</column> <column name="option_value">http://localhost/newsportal</column> <column name="autoload">yes</column> </table> <table name="wp_options"> <column name="option_id">3</column> <column name="option_name">blogname</column> <column name="option_value">News Portal</column> <column name="autoload">yes</column> </table> <table name="wp_options"> <column name="option_id">4</column> <column name="option_name">blogdescription</column> <column name="option_value">Just another WordPress site</column> <column name="autoload">yes</column> </table> </database> XML; $xml=simplexml_load_string($str); $nodes = $xml->xpath("//database//table[@name='wp_options']"); foreach($nodes as $item) { $row = simplexml_load_string($item->asXML()); $v = $row->xpath("//column[@name='option_id'][.='1']"); if(count($v) > 0) { foreach($item->column as $column) { echo $column['name'] . '=' . $column . "<br/>"; } //echo $item->column['name']."<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.0040.01218.68
8.3.50.0140.00521.46
8.3.40.0090.00619.15
8.3.30.0090.00619.09
8.3.20.0050.00320.84
8.3.10.0050.00323.81
8.3.00.0030.00523.94
8.2.180.0070.00717.00
8.2.170.0110.00422.96
8.2.160.0110.00621.07
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0000.00820.39
8.2.120.0040.00426.35
8.2.110.0000.00922.70
8.2.100.0040.01118.55
8.2.90.0090.00019.84
8.2.80.0000.00818.29
8.2.70.0000.00918.13
8.2.60.0000.00818.30
8.2.50.0040.00818.07
8.2.40.0030.00622.61
8.2.30.0080.00019.89
8.2.20.0000.00718.20
8.2.10.0080.00418.58
8.2.00.0040.00418.69
8.1.280.0040.01225.92
8.1.270.0060.00324.25
8.1.260.0070.00428.09
8.1.250.0040.00428.09
8.1.240.0110.00722.75
8.1.230.0060.00619.59
8.1.220.0040.00418.28
8.1.210.0030.00618.77
8.1.200.0030.00617.73
8.1.190.0040.00417.72
8.1.180.0040.00418.10
8.1.170.0000.00819.13
8.1.160.0040.00421.26
8.1.150.0050.00319.43
8.1.140.0050.00320.07
8.1.130.0030.00518.14
8.1.120.0000.00717.96
8.1.110.0040.00418.02
8.1.100.0030.00517.74
8.1.90.0040.00417.99
8.1.80.0000.00817.99
8.1.70.0000.00717.97
8.1.60.0040.00418.04
8.1.50.0080.00318.06
8.1.40.0030.00618.07
8.1.30.0090.00018.15
8.1.20.0040.00418.04
8.1.10.0000.00818.11
8.1.00.0090.00017.84
8.0.300.0070.00018.77
8.0.290.0030.00617.11
8.0.280.0030.00318.98
8.0.270.0000.00817.75
8.0.260.0000.00717.69
8.0.250.0050.00517.38
8.0.240.0070.00017.39
8.0.230.0080.00017.50
8.0.220.0000.00817.51
8.0.210.0000.00717.41
8.0.200.0000.00617.54
8.0.190.0000.00717.55
8.0.180.0070.00317.36
8.0.170.0060.00317.51
8.0.160.0060.00317.49
8.0.150.0070.00017.39
8.0.140.0000.00717.43
8.0.130.0000.00513.91
8.0.120.0030.00517.47
8.0.110.0000.00817.42
8.0.100.0040.00417.42
8.0.90.0030.00517.36
8.0.80.0110.00617.31
8.0.70.0040.00417.32
8.0.60.0040.00417.19
8.0.50.0040.00417.50
8.0.30.0110.00817.53
8.0.20.0100.00817.59
8.0.10.0070.00017.46
8.0.00.0150.00717.21
7.4.330.0050.00017.15
7.4.320.0030.00316.99
7.4.300.0070.00017.03
7.4.290.0000.00716.91
7.4.280.0060.00316.95
7.4.270.0000.00717.00
7.4.260.0040.00416.95
7.4.250.0080.00016.88
7.4.240.0050.00317.02
7.4.230.0000.00716.81
7.4.220.0240.00617.19
7.4.210.0030.01216.98
7.4.200.0050.00217.04
7.4.160.0140.00416.95
7.4.150.0140.01017.40
7.4.140.0090.01217.86
7.4.130.0100.01017.11
7.4.120.0080.01317.05
7.4.110.0140.00316.90
7.4.100.0150.00916.96
7.4.90.0090.00916.89
7.4.80.0090.00919.39
7.4.70.0130.00316.96
7.4.60.0090.00916.95
7.4.50.0040.01516.77
7.4.40.0070.01016.88
7.4.30.0060.01617.15
7.4.10.0030.01615.16
7.4.00.0070.01115.25
7.3.330.0030.00313.54
7.3.320.0070.00013.73
7.3.310.0040.00416.86
7.3.300.0030.00316.75
7.3.290.0070.00916.76
7.3.280.0080.01116.83
7.3.270.0130.00317.40
7.3.260.0090.00916.98
7.3.250.0120.00616.89
7.3.240.0110.00616.86
7.3.230.0090.00916.89
7.3.210.0120.00616.92
7.3.200.0130.00619.39
7.3.190.0090.01216.82
7.3.180.0030.01316.98
7.3.170.0070.01016.94
7.3.160.0120.00617.00
7.3.130.0000.01315.20
7.3.120.0070.01115.17
7.3.110.0060.01115.07
7.3.100.0050.01314.98
7.3.90.0080.00715.27
7.3.80.0060.01015.19
7.3.70.0040.00914.94
7.3.60.0030.00915.03
7.3.50.0060.00615.09
7.3.40.0050.00815.12
7.3.30.0090.00415.08
7.3.20.0070.00616.91
7.3.10.0030.01116.87
7.3.00.0050.00417.01
7.2.330.0090.00916.95
7.2.320.0110.00617.07
7.2.310.0030.01617.19
7.2.300.0110.00617.10
7.2.290.0070.01016.80
7.2.260.0040.01415.34
7.2.250.0060.01115.17
7.2.240.0080.01015.36
7.2.230.0080.00815.23
7.2.220.0080.00615.17
7.2.210.0080.00615.34
7.2.200.0040.00615.18
7.2.190.0050.00915.16
7.2.180.0050.00815.26
7.2.170.0080.00715.24
7.2.160.0070.00815.40
7.2.150.0000.01417.24
7.2.140.0070.00817.08
7.2.130.0030.00717.00
7.2.120.0040.01017.18
7.2.110.0040.01017.06
7.2.100.0070.00517.38
7.2.90.0050.00917.22
7.2.80.0050.01117.24
7.2.70.0080.00617.23
7.2.60.0080.00717.16
7.2.50.0070.00817.27
7.2.40.0080.00517.14
7.2.30.0080.00617.27
7.2.20.0060.00717.17
7.2.10.0040.00717.09
7.2.00.0070.00718.11
7.1.330.0110.00516.11
7.1.320.0070.00916.10
7.1.310.0050.00715.99
7.1.300.0060.00715.94
7.1.290.0060.00816.06
7.1.280.0070.00616.07
7.1.270.0030.00815.96
7.1.260.0030.00816.09
7.1.250.0050.00716.05
7.1.240.0050.00816.01
7.1.230.0060.00616.02
7.1.220.0030.01116.04
7.1.210.0030.00816.03
7.1.200.0050.01015.92
7.1.190.0070.00915.95
7.1.180.0090.00516.11
7.1.170.0050.00815.97
7.1.160.0040.00516.06
7.1.150.0100.00416.00
7.1.140.0090.00615.95
7.1.130.0090.00515.93
7.1.120.0040.00916.14
7.1.110.0060.00715.94
7.1.100.0030.00816.85
7.1.90.0020.00916.07
7.1.80.0030.00816.02
7.1.70.0040.00716.61
7.1.60.0050.00817.16
7.1.50.0040.01116.33
7.1.40.0060.00715.98
7.1.30.0080.00615.96
7.1.20.0040.00815.96
7.1.10.0050.00916.06
7.1.00.0050.02818.18
7.0.330.0090.00415.65
7.0.320.0020.00615.70
7.0.310.0090.00215.60
7.0.300.0060.00615.63
7.0.290.0070.00615.66
7.0.280.0100.00415.73
7.0.270.0060.00715.59
7.0.260.0030.00615.46
7.0.250.0020.00915.77
7.0.240.0030.00915.66
7.0.230.0050.00815.75
7.0.220.0020.01115.60
7.0.210.0040.00715.62
7.0.200.0060.00616.22
7.0.190.0030.00915.60
7.0.180.0080.00315.70
7.0.170.0050.00715.73
7.0.160.0030.00815.50
7.0.150.0070.01015.65
7.0.140.0080.00615.63
7.0.130.0050.00815.63
7.0.120.0080.00515.73
7.0.110.0030.01215.76
7.0.100.0020.02017.20
7.0.90.0030.02817.00
7.0.80.0110.01717.18
7.0.70.0110.01517.20
7.0.60.0030.02317.14
7.0.50.0070.02517.30
7.0.40.0050.02915.91
7.0.30.0070.02215.87
7.0.20.0070.01915.97
7.0.10.0050.02115.95
7.0.00.0080.02515.90
5.6.400.0060.00614.51
5.6.390.0010.01114.57
5.6.380.0070.00814.71
5.6.370.0030.01014.59
5.6.360.0030.01114.60
5.6.350.0060.00814.78
5.6.340.0060.00714.43
5.6.330.0070.00514.55
5.6.320.0030.00914.61
5.6.310.0050.00614.57
5.6.300.0070.00914.78
5.6.290.0090.00614.66
5.6.280.0090.01416.73
5.6.270.0030.01014.92
5.6.260.0040.00814.52
5.6.250.0100.02516.69
5.6.240.0080.02416.75
5.6.230.0040.02816.66
5.6.220.0080.02216.88
5.6.210.0020.02516.68
5.6.200.0020.02216.79
5.6.190.0090.01716.88
5.6.180.0040.02216.76
5.6.170.0060.03116.83
5.6.160.0060.02416.77
5.6.150.0070.02616.81
5.6.140.0060.01816.85
5.6.130.0050.02016.90
5.6.120.0080.01516.80
5.6.110.0100.02416.72
5.6.100.0060.02216.89
5.6.90.0080.02016.78
5.6.80.0070.01916.71
5.6.70.0070.02216.44
5.6.60.0030.02116.55
5.6.50.0030.03116.63
5.6.40.0060.01616.59
5.6.30.0110.02816.56
5.6.20.0080.02916.54
5.6.10.0090.02116.74
5.6.00.0070.01816.56
5.5.380.0060.02416.58
5.5.370.0100.01616.66
5.5.360.0070.02116.63
5.5.350.0040.02016.67
5.5.340.0060.02516.80
5.5.330.0070.02516.71
5.5.320.0050.01916.67
5.5.310.0140.01616.65
5.5.300.0060.03316.80
5.5.290.0030.02216.70
5.5.280.0050.02016.86
5.5.270.0110.01816.70
5.5.260.0050.02716.77
5.5.250.0050.02116.51
5.5.240.0060.02016.49
5.5.230.0060.02516.48
5.5.220.0070.01916.49
5.5.210.0050.02116.46
5.5.200.0050.02116.39
5.5.190.0060.02216.43
5.5.180.0040.03516.44
5.5.170.0080.01014.62
5.5.160.0060.02616.58
5.5.150.0070.03116.47
5.5.140.0060.03016.48
5.5.130.0070.03116.45
5.5.120.0030.03116.38
5.5.110.0030.02016.40
5.5.100.0040.03216.50
5.5.90.0060.02516.45
5.5.80.0060.02116.51
5.5.70.0080.02516.47
5.5.60.0090.02216.45
5.5.50.0050.02416.31
5.5.40.0060.02016.34
5.5.30.0040.02116.52
5.5.20.0180.00916.41
5.5.10.0050.02816.54
5.5.00.0050.02216.45

preferences:
41.56 ms | 401 KiB | 5 Q