3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo get_class(new class { public function __construct() { echo '>' . self::class . '<' . PHP_EOL; } });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jKka7
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_ANON_CLASS                               <true>  
          1        NEW                                              $1      $0
          2        DO_FCALL                                      0          
          3        GET_CLASS                                        ~3      $1
          4        ECHO                                                     ~3
    9     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/jKka7
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     '%3Eclass%40anonymous%00%2Fin%2FjKka7%3A3%240%3C%0A'
    7     1      > RETURN                                                   null

End of function __construct

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.42 ms | 1393 KiB | 13 Q