3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_function($param1, $param2) { // do something great } try { my_function('only_one_param'); } catch (AppException $exception) { } /* throw new MyException('This is a really bad error', 123); final public ExceptionException::getPrevious ( void ) error_reporting(E_ALL); function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, '00007600', $errno, $errfile, $errline, new Exception('jjj')); } set_error_handler("exception_error_handler"); try { echo $x; } catch(Exception $e) { var_dump($e->getPrevious()); }*/
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 4
Branch analysis from position: 4
2 jumps found. (Code = 107) Position 1 = 5, Position 2 = -2
Branch analysis from position: 5
filename:       /in/iVLVL
function name:  (null)
number of ops:  6
compiled vars:  !0 = $exception
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'my_function'
          1        SEND_VAL                                                 'only_one_param'
          2        DO_FCALL                                      0          
          3      > JMP                                                      ->5
   12     4  E > > CATCH                                       last         'AppException'
   47     5    > > RETURN                                                   1

Function my_function:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iVLVL
function name:  my_function
number of ops:  3
compiled vars:  !0 = $param1, !1 = $param2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2      > RETURN                                                   null

End of function my_function

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.57 ms | 1397 KiB | 14 Q