3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(15 => null, 16 => true); var_dump(array_key_exists(15, $a)); var_dump(isset($a[15])); var_dump(array_key_exists(16, $a)); var_dump(date_create(time()));
Output for 5.2.6 - 7.1.0
bool(true) bool(false) bool(true) bool(false)
Output for 5.2.0 - 5.2.5
bool(true) bool(false) bool(true) Warning: date_create(): Failed to parse time string (1370333503) at position 7 (5): Unexpected character in /in/PFOqT on line 7 object(DateTime)#1 (0) { }
Output for 5.0.0 - 5.1.6
bool(true) bool(false) bool(true) Fatal error: Call to undefined function date_create() in /in/PFOqT on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
bool(true) bool(false) bool(true) Fatal error: Call to undefined function: date_create() in /in/PFOqT on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
bool(true) bool(false) bool(true) Fatal error: Call to undefined function: date_create() in /in/PFOqT on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
bool(true) bool(false) bool(true) Fatal error: Call to undefined function: date_create() in /in/PFOqT on line 7