3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if( ! (array_key_exists( 'values', get_defined_vars()) && (is_array($values)))) { throw new Exception( implode(', ', [NULL, 'values', 'array', array_key_exists( 'values', get_defined_vars()) ? gettype($values) : 'none']) ); }
based on oeuIf
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception: , values, array, none in /in/nX3Nj:6 Stack trace: #0 {main} thrown in /in/nX3Nj on line 6
Process exited with code 255.
Output for 5.4.9 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message ', values, array, none' in /in/nX3Nj:6 Stack trace: #0 {main} thrown in /in/nX3Nj on line 6
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/nX3Nj on line 7
Process exited with code 255.