3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Brings in some Joomla Framework features to allow databse handling below define( '_JEXEC', 1 ); define( 'JPATH_BASE', realpath(dirname(__FILE__))); define( 'DS', DIRECTORY_SEPARATOR ); require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' ); require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' ); $mainframe =& JFactory::getApplication('site'); $mainframe->initialise(); ob_start(); echo "<?xml version='1.0' encoding='UTF-8'?> <urlset xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'>"; $db = JFactory::getDbo(); $query = "SELECT * FROM #__sh404sef_urls ORDER BY oldurl ASC"; $db->setQuery($query); $rows = $db->loadObjectList(); foreach ($rows as $row) { $SEFedurl = $row->oldurl; $date = date("Y-m-d"); $line = "<url> <loc>http://" . $_SERVER['HTTP_HOST'] . "/$SEFedurl</loc> <priority>1.00</priority> <changefreq>weekly</changefreq> <lastmod>$date</lastmod> </url>"; echo $line; } echo "</urlset>"; //mysqli_close($dbc); $toWrite = ob_get_clean(); $toWrite; // data generated from form, formatted to XML $fp = fopen('sitemap.xml', 'w'); fwrite($fp, $toWrite); fclose($fp); ?>

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.40.0110.00418.71
8.3.30.0070.00719.21
8.3.20.0040.00420.25
8.3.10.0040.00421.96
8.3.00.0040.00422.37
8.2.170.0120.00322.96
8.2.160.0100.00720.94
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00726.16
8.2.120.0040.00419.48
8.2.110.0060.00322.20
8.2.100.0000.01219.58
8.2.90.0070.00319.22
8.2.80.0050.00318.04
8.2.70.0040.00417.75
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0040.00418.16
8.2.30.0000.00718.15
8.2.20.0000.00817.88
8.2.10.0030.00517.77
8.2.00.0000.00817.89
8.1.270.0120.00322.18
8.1.260.0070.00026.35
8.1.250.0090.00028.09
8.1.240.0060.00323.79
8.1.230.0040.00819.02
8.1.220.0050.00317.79
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0000.00817.41
8.1.180.0040.00418.10
8.1.170.0000.00818.57
8.1.160.0040.00422.10
8.1.150.0000.00718.52
8.1.140.0000.00717.34
8.1.130.0040.00417.79
8.1.120.0000.00717.44
8.1.110.0040.00417.39
8.1.100.0000.00717.42
8.1.90.0050.00217.41
8.1.80.0040.00417.46
8.1.70.0000.00817.46
8.1.60.0030.00617.51
8.1.50.0040.00417.56
8.1.40.0080.00017.57
8.1.30.0040.00417.57
8.1.20.0040.00417.72
8.1.10.0040.00417.59
8.1.00.0000.00717.44
8.0.300.0040.00418.77
8.0.290.0040.00417.29
8.0.280.0070.00018.40
8.0.270.0030.00317.36
8.0.260.0030.00316.90
8.0.250.0030.00317.17
8.0.240.0040.00417.04
8.0.230.0050.00217.13
8.0.220.0030.00316.97
8.0.210.0040.00417.09
8.0.200.0030.00317.13
8.0.190.0040.00417.13
8.0.180.0040.00417.05
8.0.170.0000.00717.14
8.0.160.0040.00417.14
8.0.150.0080.00016.88
8.0.140.0030.00317.06
8.0.130.0060.00013.50
8.0.120.0070.00415.28
8.0.110.0060.00515.28
8.0.100.0060.00415.16
8.0.90.0030.00815.16
8.0.80.0130.00415.23
8.0.70.0080.00315.24
8.0.60.0060.00415.25
8.0.50.0000.00915.25
8.0.30.0120.01015.91
8.0.20.0120.00416.11
8.0.10.0030.00415.26
8.0.00.0090.00515.71
7.4.330.0050.00015.02
7.4.320.0030.00316.64
7.4.300.0040.00416.62
7.4.290.0000.00716.55
7.4.280.0030.00716.66
7.4.270.0000.00716.60
7.4.260.0000.00716.61
7.4.250.0040.00514.90
7.4.240.0050.00415.52
7.4.230.0080.00014.83
7.4.220.0050.01114.95
7.4.210.0090.00815.77
7.4.200.0050.00415.04
7.4.190.0060.00414.90
7.4.180.0030.00313.43
7.4.160.0060.00614.92
7.4.150.0050.00815.36
7.4.140.0060.00816.31
7.4.130.0100.00615.51
7.4.120.0050.01015.36
7.4.110.0100.00514.80
7.4.100.0120.00514.95
7.4.90.0050.01114.77
7.4.80.0110.00416.29
7.4.70.0110.00414.94
7.4.60.0100.00514.91
7.4.50.0060.00514.71
7.4.40.0070.00517.92
7.4.30.0070.01114.78
7.4.20.0100.00313.23
7.4.10.0100.00013.03
7.4.00.0110.00313.92
7.3.330.0000.00613.09
7.3.320.0000.00613.30
7.3.310.0040.00614.71
7.3.300.0100.00014.81
7.3.290.0100.00214.79
7.3.280.0120.00415.57
7.3.270.0080.00715.32
7.3.260.0110.00714.82
7.3.250.0090.00815.30
7.3.240.0100.00714.87
7.3.230.0140.00214.80
7.3.220.0030.01013.12
7.3.210.0090.00514.74
7.3.200.0080.00716.28
7.3.190.0080.00714.81
7.3.180.0080.00614.80
7.3.170.0070.00914.87
7.3.160.0050.00914.75
7.3.150.0100.00013.18
7.3.140.0000.01013.18
7.3.130.0020.00413.15
7.3.120.0000.01114.07
7.3.110.0050.00613.81
7.3.100.0070.00713.91
7.3.90.0070.00314.20
7.3.80.0060.00613.96
7.3.70.0110.00113.84
7.3.60.0090.00014.06
7.3.50.0060.00213.95
7.3.40.0020.00813.91
7.3.30.0020.00714.01
7.3.20.0070.00215.85
7.3.10.0050.00515.82
7.3.00.0080.00315.86
7.2.340.0100.00313.11
7.2.330.0090.00514.76
7.2.320.0050.01114.81
7.2.310.0070.00614.79
7.2.300.0050.00514.86
7.2.290.0060.00714.87
7.2.280.0030.00613.12
7.2.270.0080.00013.11
7.2.260.0050.00513.13
7.2.250.0090.00413.17
7.2.240.0040.00914.14
7.2.230.0020.00814.04
7.2.220.0060.00613.91
7.2.210.0050.00513.93
7.2.200.0050.00414.13
7.2.190.0060.00713.97
7.2.180.0040.00713.86
7.2.170.0100.00414.23
7.2.160.0080.00814.26
7.2.150.0050.00615.98
7.2.140.0030.00715.91
7.2.130.0030.00815.96
7.2.120.0110.00315.83
7.2.110.0070.00816.00
7.2.100.0110.00115.94
7.2.90.0100.00515.83
7.2.80.0060.00815.88
7.2.70.0060.00915.90
7.2.60.0090.00615.88
7.2.50.0090.00515.86
7.2.40.0080.00515.86
7.2.30.0040.01016.04
7.2.20.0080.00616.00
7.2.10.0090.00416.03
7.2.00.0080.00616.04
7.1.330.0020.01314.97
7.1.320.0050.00715.02
7.1.310.0070.00714.88
7.1.300.0070.00614.93
7.1.290.0090.00414.94
7.1.280.0050.00914.82
7.1.270.0030.01114.96
7.1.260.0080.00514.85
7.1.250.0050.00914.95
7.1.240.0120.00014.14
7.1.230.0080.00414.11
7.1.220.0080.00613.98
7.1.210.0100.00314.16
7.1.200.0080.00414.16
7.1.190.0090.00314.00
7.1.180.0080.00313.91
7.1.170.0080.00413.92
7.1.160.0130.00013.91
7.1.150.0070.00414.09
7.1.140.0100.00214.07
7.1.130.0000.01214.07
7.1.120.0080.00414.02
7.1.110.0090.00313.96
7.1.100.0100.00314.07
7.1.90.0110.00314.06
7.1.80.0080.00514.13
7.1.70.0040.00815.32
7.1.60.0090.01016.91
7.1.50.0080.00715.54
7.1.40.0080.00514.00
7.1.30.0120.00014.12
7.1.20.0140.00013.91
7.1.10.0040.00813.84
7.1.00.0110.03518.08
7.0.330.0090.00314.01
7.0.320.0130.00014.01
7.0.310.0100.00314.02
7.0.300.0090.00313.99
7.0.290.0080.00413.88
7.0.280.0090.00314.02
7.0.270.0040.00814.00
7.0.260.0090.00214.05
7.0.250.0130.00014.01
7.0.240.0110.00014.05
7.0.230.0130.00014.05
7.0.220.0060.00613.92
7.0.210.0070.00713.91
7.0.200.0080.00415.29
7.0.190.0100.00314.07
7.0.180.0070.00514.02
7.0.170.0090.00314.16
7.0.160.0040.00814.02
7.0.150.0110.00014.00
7.0.140.0090.03318.02
7.0.130.0070.00413.89
7.0.120.0090.00414.06
7.0.110.0080.00413.83
7.0.100.0080.02817.84
7.0.90.0100.04217.85
7.0.80.0060.04417.78
7.0.70.0060.02817.88
7.0.60.0100.04317.94
7.0.50.0100.02718.00
7.0.40.0040.04617.00
7.0.30.0100.02716.99
7.0.20.0080.03217.01
7.0.10.0040.04316.98
7.0.00.0050.04717.03
5.6.400.0100.00312.59
5.6.390.0110.00312.59
5.6.380.0090.00312.77
5.6.370.0100.00312.52
5.6.360.0130.00012.55
5.6.350.0090.00312.45
5.6.340.0060.00512.62
5.6.330.0090.00312.77
5.6.320.0100.00312.61
5.6.310.0100.00212.62
5.6.300.0080.00412.33
5.6.290.0120.00012.46
5.6.280.0050.03916.73
5.6.270.0110.00012.72
5.6.260.0110.00012.47
5.6.250.0020.04016.70
5.6.240.0100.02516.58
5.6.230.0050.04416.65
5.6.220.0080.02116.56
5.6.210.0070.04316.63
5.6.200.0070.04616.94
5.6.190.0100.03816.73
5.6.180.0090.04016.82
5.6.170.0070.04516.87
5.6.160.0090.03816.87
5.6.150.0110.03816.83
5.6.140.0110.03816.84
5.6.130.0130.03816.90
5.6.120.0030.02916.84
5.6.110.0080.02516.75
5.6.100.0110.04016.77
5.6.90.0060.03016.90
5.6.80.0090.04016.51
5.6.70.0080.03916.54
5.6.60.0090.02716.43
5.6.50.0080.02916.47
5.6.40.0060.02516.46
5.6.30.0070.03816.53
5.6.20.0080.03616.51
5.6.10.0040.03016.51
5.6.00.0070.03016.48
5.5.380.0060.04316.54
5.5.370.0100.04116.44
5.5.360.0110.03716.49
5.5.350.0070.03416.45
5.5.340.0060.03716.63
5.5.330.0050.04316.70
5.5.320.0110.03816.62
5.5.310.0050.04216.79
5.5.300.0060.02416.69
5.5.290.0050.04716.53
5.5.280.0090.04216.70
5.5.270.0080.02516.70
5.5.260.0080.02716.74
5.5.250.0120.04016.43
5.5.240.0060.02716.35
5.5.230.0050.02916.44
5.5.220.0040.02616.43
5.5.210.0070.04016.40
5.5.200.0050.02816.32
5.5.190.0090.04316.22
5.5.180.0120.03716.45
5.5.170.0070.00512.30
5.5.160.0080.04216.30
5.5.150.0090.03816.27
5.5.140.0050.03316.31
5.5.130.0090.04016.14
5.5.120.0080.03016.21
5.5.110.0060.02316.20
5.5.100.0060.02616.27
5.5.90.0090.04016.33
5.5.80.0070.04016.22
5.5.70.0050.04216.30
5.5.60.0060.04316.22
5.5.50.0080.03916.35
5.5.40.0100.02216.24
5.5.30.0110.04016.16
5.5.20.0120.03216.37
5.5.10.0110.03616.18
5.5.00.0070.03716.19
5.4.450.0050.02515.94
5.4.440.0060.03715.99
5.4.430.0080.03515.88
5.4.420.0120.02916.09
5.4.410.0070.02315.89
5.4.400.0050.03915.78
5.4.390.0020.04315.90
5.4.380.0100.04015.79
5.4.370.0080.02715.72
5.4.360.0110.03315.62
5.4.350.0040.02115.69
5.4.340.0040.02415.73
5.4.330.0100.00012.51
5.4.320.0090.04015.77
5.4.310.0070.02415.78
5.4.300.0060.03815.78
5.4.290.0090.03315.76
5.4.280.0090.02315.67
5.4.270.0080.02115.83
5.4.260.0120.03215.72
5.4.250.0060.03915.74
5.4.240.0090.03815.65
5.4.230.0070.03915.66
5.4.220.0090.03815.65
5.4.210.0060.03915.82
5.4.200.0080.03815.61
5.4.190.0050.03015.75
5.4.180.0100.03315.76
5.4.170.0100.03615.65
5.4.160.0030.04215.67
5.4.150.0130.03315.78
5.4.140.0080.03714.38
5.4.130.0040.03814.42
5.4.120.0070.03514.42
5.4.110.0050.03814.50
5.4.100.0130.02514.43
5.4.90.0040.03814.38
5.4.80.0060.02614.43
5.4.70.0030.03714.50
5.4.60.0040.03914.35
5.4.50.0060.04014.46
5.4.40.0090.03714.37
5.4.30.0020.04614.40
5.4.20.0080.03214.30
5.4.10.0060.03114.39
5.4.00.0070.03614.03
5.3.290.0050.03913.71
5.3.280.0060.03313.60
5.3.270.0090.03813.76
5.3.260.0060.04013.63
5.3.250.0080.03713.76
5.3.240.0070.03513.81
5.3.230.0040.04113.64
5.3.220.0080.03413.81
5.3.210.0060.03313.83
5.3.200.0040.04413.65
5.3.190.0050.04113.89
5.3.180.0050.04013.86
5.3.170.0080.02013.90
5.3.160.0040.03213.88
5.3.150.0030.03313.90
5.3.140.0020.03013.83
5.3.130.0070.03713.85
5.3.120.0120.03313.74
5.3.110.0070.03513.74
5.3.100.0070.03013.55
5.3.90.0080.03713.38
5.3.80.0050.04013.36
5.3.70.0050.04213.39
5.3.60.0100.03713.36
5.3.50.0080.04013.46
5.3.40.0060.03613.38
5.3.30.0070.04213.35
5.3.20.0080.03513.32
5.3.10.0040.02313.13
5.3.00.0020.03913.20
5.2.170.0070.03211.46
5.2.160.0080.03011.49
5.2.150.0030.03711.47
5.2.140.0050.03211.38
5.2.130.0060.03111.42
5.2.120.0020.03411.43
5.2.110.0070.03011.55
5.2.100.0050.02711.35
5.2.90.0030.03411.44
5.2.80.0070.02711.38
5.2.70.0060.03311.36
5.2.60.0050.03711.17
5.2.50.0050.03211.47
5.2.40.0060.02111.48
5.2.30.0050.03011.26
5.2.20.0080.02711.26
5.2.10.0050.02411.22
5.2.00.0040.03411.13
5.1.60.0040.02810.51
5.1.50.0030.02610.56
5.1.40.0030.02510.43
5.1.30.0040.03010.61
5.1.20.0040.02610.65
5.1.10.0050.02310.50
5.1.00.0040.02710.38
5.0.50.0020.0179.45
5.0.40.0050.0249.46
5.0.30.0020.0339.40
5.0.20.0030.0239.41
5.0.10.0030.0229.37
5.0.00.0050.0229.39
4.4.90.0030.0198.75
4.4.80.0000.0208.75
4.4.70.0000.0208.75
4.4.60.0020.0178.75
4.4.50.0050.0158.75
4.4.40.0020.0298.75
4.4.30.0000.0178.75
4.4.20.0030.0128.75
4.4.10.0010.0198.75
4.4.00.0030.0278.75
4.3.110.0040.0158.75
4.3.100.0040.0158.75
4.3.90.0020.0158.75
4.3.80.0040.0258.75
4.3.70.0000.0128.75
4.3.60.0020.0198.75
4.3.50.0000.0178.75
4.3.40.0020.0228.75
4.3.30.0020.0208.75
4.3.20.0000.0228.75
4.3.10.0020.0188.75
4.3.00.0000.0178.75

preferences:
42.2 ms | 400 KiB | 5 Q