3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bar = 'foo'; $klass = new class { protected $bar; public function __construct() { $this->bar = $bar; } }; new $klass;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FePLs
function name:  (null)
number of ops:  10
compiled vars:  !0 = $bar, !1 = $klass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'foo'
    5     1        DECLARE_ANON_CLASS                               <undef> 
          2        NEW                                              $4      $3
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
   13     5        FETCH_CLASS                                   0  $7      !1
          6        NEW                                              $8      $7
          7        DO_FCALL                                      0          
          8        FREE                                                     $8
          9      > 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/FePLs
function name:  __construct
number of ops:  3
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN_OBJ                                               'bar'
          1        OP_DATA                                                  !0
   10     2      > RETURN                                                   null

End of function __construct

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.57 ms | 1393 KiB | 13 Q