3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; var_dump(new class($i) { 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/hjGNi
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $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                               <unknown> 
          3        NEW                                              $4      $3
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0          
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                                 
    7     8      > RETURN                                                   1

Class class@anonymous:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hjGNi
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 class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.42 ms | 1394 KiB | 15 Q