3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 1; var_dump(new class($i) extends Exception{ public function __construct($i) { $this->i = $i; } });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZdBpb
function name:  (null)
number of ops:  9
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        INIT_FCALL                                               'var_dump'
          2        DECLARE_ANON_CLASS                               <true>  'exception'
          3        NEW                                              $3      $2
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0          
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                                 
    7     8      > RETURN                                                   1

Class Exception@anonymous:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZdBpb
function name:  __construct
number of ops:  4
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ASSIGN_OBJ                                               'i'
          2        OP_DATA                                                  !0
    6     3      > RETURN                                                   null

End of function __construct

End of class Exception@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.46 ms | 1386 KiB | 15 Q