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','2','3')]"); 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.0150.00016.88
8.3.50.0090.00616.70
8.3.40.0040.01119.42
8.3.30.0040.01119.29
8.3.20.0030.00720.62
8.3.10.0030.00524.21
8.3.00.0040.00424.01
8.2.180.0150.00018.92
8.2.170.0110.00422.96
8.2.160.0030.01020.99
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00320.32
8.2.120.0040.00426.35
8.2.110.0070.00419.77
8.2.100.0030.00918.47
8.2.90.0040.00418.25
8.2.80.0030.00618.13
8.2.70.0000.00818.54
8.2.60.0050.00319.71
8.2.50.0040.00418.25
8.2.40.0070.00321.22
8.2.30.0000.00818.54
8.2.20.0050.00218.24
8.2.10.0000.00818.54
8.2.00.0000.00818.54
8.1.280.0070.01425.92
8.1.270.0040.00424.32
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0040.00421.54
8.1.230.0110.00018.26
8.1.220.0030.00618.17
8.1.210.0060.00318.77
8.1.200.0030.00617.98
8.1.190.0000.00917.88
8.1.180.0040.00418.10
8.1.170.0030.00618.99
8.1.160.0040.00419.35
8.1.150.0050.00220.61
8.1.140.0040.00420.11
8.1.130.0050.00218.22
8.1.120.0040.00417.90
8.1.110.0000.00717.96
8.1.100.0030.00517.87
8.1.90.0000.00717.98
8.1.80.0040.00417.75
8.1.70.0000.00718.00
8.1.60.0040.00417.85
8.1.50.0030.00618.05
8.1.40.0060.00317.82
8.1.30.0060.00318.10
8.1.20.0030.00518.14
8.1.10.0060.00317.92
8.1.00.0000.00817.82
8.0.300.0000.00718.77
8.0.290.0040.00417.25
8.0.280.0030.00318.85
8.0.270.0030.00517.70
8.0.260.0030.00317.61
8.0.250.0070.00317.34
8.0.240.0030.00317.52
8.0.230.0000.00817.57
8.0.220.0030.00717.33
8.0.210.0000.00717.51
8.0.200.0060.00017.53
8.0.190.0040.00417.38
8.0.180.0040.00417.54
8.0.170.0040.00417.36
8.0.160.0050.00317.36
8.0.150.0000.00917.25
8.0.140.0000.00717.43
8.0.130.0030.00313.72
8.0.120.0000.00817.45
8.0.110.0000.00717.25
8.0.100.0040.00417.54
8.0.90.0040.00417.37
8.0.80.0150.00417.40
8.0.70.0070.00017.40
8.0.60.0030.00517.29
8.0.50.0000.00817.40
8.0.30.0080.01017.52
8.0.20.0130.00617.50
8.0.10.0050.00317.36
8.0.00.0100.01217.20
7.4.330.0030.00317.29
7.4.320.0030.00316.89
7.4.300.0080.00017.06
7.4.290.0100.00017.10
7.4.280.0030.00616.81
7.4.270.0080.00017.12
7.4.260.0070.00017.12
7.4.250.0000.00816.94
7.4.240.0020.00617.03
7.4.230.0000.00717.07
7.4.220.0180.00616.95
7.4.210.0070.00717.11
7.4.200.0040.00317.11
7.4.160.0080.00816.83
7.4.150.0110.00817.40
7.4.140.0100.01017.86
7.4.130.0060.01216.99
7.4.120.0090.00817.06
7.4.110.0110.00717.05
7.4.100.0100.01016.96
7.4.90.0130.00716.99
7.4.80.0130.01319.39
7.4.70.0070.01317.29
7.4.60.0110.00717.07
7.4.50.0060.00917.11
7.4.40.0090.01217.05
7.4.30.0060.01316.98
7.4.10.0000.01415.16
7.4.00.0100.00815.11
7.3.330.0030.00313.48
7.3.320.0030.00513.83
7.3.310.0000.00816.94
7.3.300.0040.00416.75
7.3.290.0080.01416.78
7.3.280.0120.00816.82
7.3.270.0050.01417.40
7.3.260.0100.00716.77
7.3.250.0110.01717.00
7.3.240.0140.00616.92
7.3.230.0150.00316.80
7.3.210.0130.00616.72
7.3.200.0190.00019.39
7.3.190.0100.00716.88
7.3.180.0070.01016.99
7.3.170.0070.01017.02
7.3.160.0040.01416.93
7.3.130.0110.00714.93
7.3.120.0060.01315.11
7.3.110.0030.01315.07
7.3.100.0060.01214.96
7.3.90.0140.00315.11
7.3.80.0060.00315.03
7.3.70.0000.00815.23
7.3.60.0080.00814.95
7.3.50.0090.00014.84
7.3.40.0080.00515.02
7.3.30.0040.00415.03
7.3.20.0040.00817.00
7.3.10.0040.00416.78
7.3.00.0000.01316.92
7.2.330.0110.00817.20
7.2.320.0060.01817.20
7.2.310.0120.01216.80
7.2.300.0130.00617.20
7.2.290.0070.01016.95
7.2.260.0120.00615.40
7.2.250.0030.01515.17
7.2.240.0110.00315.34
7.2.230.0030.00915.29
7.2.220.0070.01315.29
7.2.210.0080.00815.11
7.2.200.0060.00315.27
7.2.190.0000.01215.16
7.2.180.0030.01015.06
7.2.170.0030.00915.29
7.2.160.0040.00415.00
7.2.150.0090.00017.06
7.2.140.0000.01116.98
7.2.130.0030.01017.11
7.2.120.0090.00617.30
7.2.110.0070.01017.13
7.2.100.0050.00516.93
7.2.90.0030.01316.88
7.2.80.0090.00617.11
7.2.70.0030.00916.97
7.2.60.0090.00617.15
7.2.50.0040.01117.22
7.2.40.0060.01017.18
7.2.30.0000.01317.10
7.2.20.0090.00617.30
7.2.10.0090.00917.19
7.2.00.0030.01018.47
7.1.330.0030.01015.95
7.1.320.0070.01115.89
7.1.310.0030.01316.24
7.1.300.0090.00416.12
7.1.290.0060.00316.09
7.1.280.0050.00516.03
7.1.270.0080.00016.07
7.1.260.0040.00815.94
7.1.250.0100.00715.85
7.1.240.0030.00916.01
7.1.230.0030.00615.95
7.1.220.0040.00716.04
7.1.210.0090.00315.88
7.1.200.0140.00615.98
7.1.190.0100.00615.95
7.1.180.0000.01115.94
7.1.170.0040.00815.93
7.1.160.0100.00315.85
7.1.150.0060.00615.92
7.1.140.0030.01015.99
7.1.130.0060.00915.91
7.1.120.0060.00616.12
7.1.110.0030.01016.13
7.1.100.0000.01317.18
7.1.90.0070.01116.16
7.1.80.0100.00316.18
7.1.70.0070.01016.64
7.1.60.0050.01117.67
7.1.50.0100.01016.40
7.1.40.0140.00315.90
7.1.30.0000.00915.74
7.1.20.0060.01116.14
7.1.10.0060.01315.98
7.1.00.0040.04419.27
7.0.330.0060.00615.43
7.0.320.0040.01115.48
7.0.310.0130.00015.40
7.0.300.0030.01015.56
7.0.290.0070.00715.69
7.0.280.0130.00315.45
7.0.270.0000.01215.61
7.0.260.0060.00915.45
7.0.250.0030.01015.52
7.0.240.0100.00715.84
7.0.230.0050.00515.64
7.0.220.0150.00015.72
7.0.210.0060.00915.55
7.0.200.0070.00516.49
7.0.190.0040.01215.50
7.0.180.0030.01415.59
7.0.170.0120.00415.64
7.0.160.0030.01015.61
7.0.150.0030.00715.52
7.0.140.0100.00715.46
7.0.130.0070.01015.28
7.0.120.0000.01415.39
7.0.110.0070.00715.42
7.0.100.0060.00915.54
7.0.90.0060.01215.42
7.0.80.0090.00015.44
7.0.70.0060.00615.47
7.0.60.0170.04218.73
7.0.50.0070.04416.94
7.0.40.0080.04516.79
7.0.30.0210.03717.09
7.0.20.0180.03816.92
7.0.10.0070.04616.92
7.0.00.0090.01817.01
5.6.400.0030.00514.41
5.6.390.0030.00914.71
5.6.380.0060.00614.54
5.6.370.0040.00814.27
5.6.360.0040.01214.77
5.6.350.0070.00714.61
5.6.340.0030.01414.32
5.6.330.0000.01214.86
5.6.320.0030.01014.49
5.6.310.0070.00714.56
5.6.300.0090.00614.50
5.6.290.0040.01514.63
5.6.280.0030.03817.83
5.6.270.0030.00614.36
5.6.260.0060.00614.31
5.6.250.0070.00714.53
5.6.240.0060.01314.52
5.6.230.0000.01014.66
5.6.220.0000.01414.55
5.6.210.0060.02417.70
5.6.200.0050.04716.35
5.6.190.0130.04117.84
5.6.180.0230.02317.82
5.6.170.0140.02517.61
5.6.160.0070.03017.64
5.6.150.0080.02216.41
5.6.140.0080.02816.49
5.6.130.0100.02116.57
5.6.120.0050.02617.93
5.6.110.0050.02717.83
5.6.100.0040.02717.88
5.6.90.0030.04717.79
5.6.80.0060.03917.52
5.6.70.0030.01014.44
5.6.60.0000.01214.32
5.6.50.0100.00014.60
5.6.40.0070.00714.43
5.6.30.0000.01214.55
5.6.20.0030.00914.32
5.6.10.0030.01014.27
5.6.00.0000.01314.77
5.5.380.0090.00614.45
5.5.370.0060.00914.56
5.5.360.0000.01314.69
5.5.350.0100.04617.44
5.5.340.0050.04716.39
5.5.330.0020.04417.77
5.5.320.0250.02717.51
5.5.310.0240.03017.45
5.5.300.0100.03016.20
5.5.290.0070.03816.32
5.5.280.0030.03717.75
5.5.270.0050.03017.79
5.5.260.0050.04717.72
5.5.250.0050.03617.60
5.5.240.0080.01817.33
5.5.230.0040.00714.39
5.5.220.0100.00314.31
5.5.210.0060.00614.53
5.5.200.0000.01014.06
5.5.190.0000.01114.26
5.5.180.0050.00814.41
5.5.170.0030.01214.27
5.5.160.0040.00714.27
5.5.150.0090.00314.22
5.5.140.0040.01114.42
5.5.130.0030.00614.24
5.5.120.0030.01314.25
5.5.110.0080.00314.47
5.5.100.0050.00514.37
5.5.90.0040.00813.98
5.5.80.0040.01114.11
5.5.70.0080.00414.29
5.5.60.0040.00714.40
5.5.50.0030.00914.29
5.5.40.0060.00614.55
5.5.30.0040.00814.16
5.5.20.0070.00714.36
5.5.10.0070.00714.31
5.5.00.0110.00714.05

preferences:
51.84 ms | 400 KiB | 5 Q