3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump([ (new class { public function foo() {} }) ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G95J3
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
    4     1        DECLARE_ANON_CLASS                               2       
          2        NEW                                              $1      $0
          3        DO_FCALL                                      0          
          4        INIT_ARRAY                                       ~3      $1
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                                 
    7     7      > RETURN                                                   1

Class class@anonymous:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G95J3
function name:  foo
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   null

End of function foo

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
235.08 ms | 1398 KiB | 15 Q