3v4l.org

run code in 300+ PHP versions simultaneously
<?php include("config.sys.php"); mysql_connect($hostname, $username, $password) || die("Error!"); mysql_select_db($dbname); mysql_query('SET NAMES utf8'); $snn = array("vk", "mailru", "ok"); foreach ($snn as $snname) { $dbtable = "game_" . $snname; mysql_query("set @i=0"); mysql_query("update $dbtable set srank=(@i:=@i+1) order by topscore desc"); // echo mysql_error(); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: include(): open_basedir restriction in effect. File(config.sys.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/h8tnU on line 3 Warning: include(config.sys.php): Failed to open stream: Operation not permitted in /in/h8tnU on line 3 Warning: include(): Failed opening 'config.sys.php' for inclusion (include_path='.:') in /in/h8tnU on line 3 Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /in/h8tnU:4 Stack trace: #0 {main} thrown in /in/h8tnU on line 4
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
51.52 ms | 401 KiB | 8 Q