3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(new class() { public int $bar; public function __construct() { $this->bar = "42"; } });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O4bdX
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        DECLARE_ANON_CLASS                               <false> 
          2        NEW                                              $1      $0
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                                 
    8     6      > 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/O4bdX
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN_OBJ                                               'bar'
          1        OP_DATA                                                  '42'
    7     2      > RETURN                                                   null

End of function __construct

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.84 ms | 1398 KiB | 15 Q