3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $th1is->logger->warning( $text, array_merge( $mixin, [ 'key' => $key, 'state' => $state, 'module' => 'cache' ], null !== $time ? [ 'time' => (int) $time // milliseconds ] : [], $itemStack ? ['keyStack' => $this->getItemStackKeys($itemStack)] : [] ) );
based on 1CWlB
Output for 7.2.0
Notice: Undefined variable: th1is in /in/VSabP on line 3 Notice: Trying to get property 'logger' of non-object in /in/VSabP on line 3 Fatal error: Uncaught Error: Call to a member function warning() on null in /in/VSabP:3 Stack trace: #0 {main} thrown in /in/VSabP on line 3
Process exited with code 255.
Output for 7.0.0 - 7.1.10
Notice: Undefined variable: th1is in /in/VSabP on line 3 Notice: Trying to get property of non-object in /in/VSabP on line 3 Fatal error: Uncaught Error: Call to a member function warning() on null in /in/VSabP:3 Stack trace: #0 {main} thrown in /in/VSabP on line 3
Process exited with code 255.
Output for 5.6.8 - 5.6.28
Notice: Undefined variable: th1is in /in/VSabP on line 3 Notice: Trying to get property of non-object in /in/VSabP on line 3 Fatal error: Call to a member function warning() on null in /in/VSabP on line 3
Process exited with code 255.
Output for 5.4.11 - 5.5.35
Notice: Undefined variable: th1is in /in/VSabP on line 3 Notice: Trying to get property of non-object in /in/VSabP on line 3 Fatal error: Call to a member function warning() on a non-object in /in/VSabP on line 3
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/VSabP on line 7
Process exited with code 255.