3v4l.org

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

Class e:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/BBN4L
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:
160.51 ms | 1394 KiB | 15 Q