3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php session_start(); $_SESSION["111"] = null; var_dump(array_keys($_SESSION));
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
array(1) { [0]=> int(111) } Notice: Unknown: Skipping numeric key 111 in Unknown on line 0
Output for hhvm-3.10.0 - 3.12.0
array(1) { [0]=> int(111) } Notice: Skipping numeric key 111
Output for 5.2.10 - 5.3.29
array(1) { [0]=> int(111) } Notice: Unknown: The session bug compatibility code will not try to locate the global variable $111 due to its numeric nature in Unknown on line 0 Notice: Unknown: Skipping numeric key 111 in Unknown on line 0
Output for 5.2.3 - 5.2.9
array(1) { [0]=> int(111) } Notice: Unknown: The session bug compatibility code will not try to locate the global variable $111 due to its numeric nature. in Unknown on line 0 Notice: Unknown: Skipping numeric key 111. in Unknown on line 0
Output for 5.2.1 - 5.2.2
Warning: session_start(): Cannot send session cookie - headers already sent in /in/u8vV4 on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/u8vV4:2) in /in/u8vV4 on line 2 array(1) { [0]=> int(111) } Notice: Unknown: The session bug compatibility code will not try to locate the global variable $111 due to its numeric nature. in Unknown on line 0 Notice: Unknown: Skipping numeric key 111. in Unknown on line 0
Output for 5.0.0 - 5.2.0
Warning: session_start(): Cannot send session cookie - headers already sent in /in/u8vV4 on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/u8vV4:2) in /in/u8vV4 on line 2 array(1) { [0]=> int(111) } Notice: Unknown: The session bug compatibility code will not try to locate the global variable $111 due to its numeric nature. in Unknown on line 0
Output for 4.3.2 - 4.4.9
Warning: session_start(): Cannot send session cookie - headers already sent in /in/u8vV4 on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/u8vV4:2) in /in/u8vV4 on line 2 array(1) { [0]=> int(111) } Notice: Unknown(): The session bug compatibility code will not try to locate the global variable $111 due to its numeric nature. in Unknown on line 0
Output for 4.3.0 - 4.3.1
Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cookie - headers already sent in /in/u8vV4 on line 2 Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cache limiter - headers already sent (output started at /in/u8vV4:2) in /in/u8vV4 on line 2 array(1) { [0]=> int(111) } Notice: Unknown(): The session bug compatibility code will not try to locate the global variable $111 due to its numeric nature. in Unknown on line 0