3v4l.org

run code in 300+ PHP versions simultaneously
<?php if( ! (array_key_exists(get_defined_vars(), 'values') && (is_array($values)))) { throw new Exception( implode(', ', [NULL, 'values', 'array', array_key_exists(get_defined_vars(), 'values') ? gettype($values) : 'none']) ); }
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, string given in /in/oeuIf:5 Stack trace: #0 {main} thrown in /in/oeuIf on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.6 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33
Warning: array_key_exists() expects parameter 2 to be array, string given in /in/oeuIf on line 5 Warning: array_key_exists() expects parameter 2 to be array, string given in /in/oeuIf on line 7 Fatal error: Uncaught Exception: , values, array, none in /in/oeuIf:6 Stack trace: #0 {main} thrown in /in/oeuIf on line 6
Process exited with code 255.
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
Warning: array_key_exists() expects parameter 2 to be array, string given in /in/oeuIf on line 5 Warning: array_key_exists() expects parameter 2 to be array, string given in /in/oeuIf on line 7 Fatal error: Uncaught exception 'Exception' with message ', values, array, none' in /in/oeuIf:6 Stack trace: #0 {main} thrown in /in/oeuIf on line 6
Process exited with code 255.

preferences:
149.59 ms | 402 KiB | 182 Q