3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* class myName{ public function __construct($prop){ echo $prop; } } $obj = new myName('testing'); */ $obj = new class('testing'){ public function __construct($prop){ echo $prop; } };
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z35eK
function name:  (null)
number of ops:  6
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   DECLARE_ANON_CLASS                               <undef> 
          1        NEW                                              $2      $1
          2        SEND_VAL_EX                                              'testing'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
   24     5      > 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/Z35eK
function name:  __construct
number of ops:  3
compiled vars:  !0 = $prop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   RECV                                             !0      
   20     1        ECHO                                                     !0
   22     2      > RETURN                                                   null

End of function __construct

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.9 ms | 1393 KiB | 13 Q