3v4l.org

run code in 300+ PHP versions simultaneously
<?php class e { function __construct() { throw new Exception('test'); } } try { var_dump(eval('$e=new e();')); } catch (Exception $x) { } var_dump($e);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 5
Branch analysis from position: 5
2 jumps found. (Code = 107) Position 1 = 6, Position 2 = -2
Branch analysis from position: 6
filename:       /in/sS12J
function name:  (null)
number of ops:  10
compiled vars:  !0 = $x, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        INCLUDE_OR_EVAL                                  $2      '%24e%3Dnew+e%28%29%3B', EVAL
          2        SEND_VAR                                                 $2
          3        DO_ICALL                                                 
          4      > JMP                                                      ->6
    9     5  E > > CATCH                                       last         'Exception'
   11     6    >   INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class e:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/sS12J
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $0      'Exception'
          1        SEND_VAL_EX                                              'test'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $0
    5     4*     > RETURN                                                   null

End of function __construct

End of class e.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.21 ms | 1395 KiB | 15 Q