3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define ('DBPATH',$sqlhost); define ('DBUSER',$sqluser); define ('DBPASS',$sqlpassword); define ('DBNAME',$sqldb); session_start(); var_dump($session_dump); ?>
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: sqlhost in /in/hmgUQ on line 2 Notice: Undefined variable: sqluser in /in/hmgUQ on line 3 Notice: Undefined variable: sqlpassword in /in/hmgUQ on line 4 Notice: Undefined variable: sqldb in /in/hmgUQ on line 5 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/hmgUQ:2) in /in/hmgUQ on line 7 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/hmgUQ:2) in /in/hmgUQ on line 7 Notice: Undefined variable: session_dump in /in/hmgUQ on line 8 NULL
Output for hhvm-3.12.0
Notice: Undefined variable: sqlhost in /in/hmgUQ on line 2 Notice: Undefined variable: sqluser in /in/hmgUQ on line 3 Notice: Undefined variable: sqlpassword in /in/hmgUQ on line 4 Notice: Undefined variable: sqldb in /in/hmgUQ on line 5 Notice: Undefined variable: session_dump in /in/hmgUQ on line 8 NULL
Output for hhvm-3.10.0
Notice: Undefined variable: sqlhost in /in/hmgUQ on line 3 Notice: Undefined variable: sqluser in /in/hmgUQ on line 6 Notice: Undefined variable: sqlpassword in /in/hmgUQ on line 9 Notice: Undefined variable: sqldb in /in/hmgUQ on line 8 Notice: Undefined variable: session_dump in /in/hmgUQ on line -1 NULL
Output for 4.3.2 - 5.0.3
Notice: Undefined variable: sqlhost in /in/hmgUQ on line 2 Notice: Undefined variable: sqluser in /in/hmgUQ on line 3 Notice: Undefined variable: sqlpassword in /in/hmgUQ on line 4 Notice: Undefined variable: sqldb in /in/hmgUQ on line 5 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/hmgUQ:2) in /in/hmgUQ on line 7 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/hmgUQ:2) in /in/hmgUQ on line 7 Notice: Undefined variable: session_dump in /in/hmgUQ on line 8 NULL
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: sqlhost in /in/hmgUQ on line 2 Notice: Undefined variable: sqluser in /in/hmgUQ on line 3 Notice: Undefined variable: sqlpassword in /in/hmgUQ on line 4 Notice: Undefined variable: sqldb in /in/hmgUQ on line 5 Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cookie - headers already sent by (output started at /in/hmgUQ:2) in /in/hmgUQ on line 7 Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cache limiter - headers already sent (output started at /in/hmgUQ:2) in /in/hmgUQ on line 7 Notice: Undefined variable: session_dump in /in/hmgUQ on line 8 NULL