3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* class myClass{ public function __construct($i){ echo $i; } } $inst = new myClass('testing'); */ var_dump( new class('testing'){ public function __construct($i){ echo $i; } } );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NSSCQ
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'var_dump'
          1        DECLARE_ANON_CLASS                               <unknown> 
          2        NEW                                              $1      $0
          3        SEND_VAL_EX                                              'testing'
          4        DO_FCALL                                      0          
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                                 
   24     7      > 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/NSSCQ
function name:  __construct
number of ops:  3
compiled vars:  !0 = $i
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:
140.92 ms | 1394 KiB | 15 Q