3v4l.org

run code in 300+ PHP versions simultaneously
<?php function baz($a){ unset($a); echo "2\n"; var_dump(func_get_args()); }; echo "1\n"; baz(new class(){ function __destruct(){ echo "destruct\n"; }}); echo "3\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3l7ps
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     '1%0A'
    9     1        INIT_FCALL                                               'baz'
          2        DECLARE_ANON_CLASS                               <resource>  
          3        NEW                                              $1      $0
          4        DO_FCALL                                      0          
          5        SEND_VAR                                                 $1
          6        DO_FCALL                                      0          
   10     7        ECHO                                                     '3%0A'
          8      > RETURN                                                   1

Function baz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3l7ps
function name:  baz
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        UNSET_CV                                                 !0
    5     2        ECHO                                                     '2%0A'
    6     3        INIT_FCALL                                               'var_dump'
          4        FUNC_GET_ARGS                                    ~1      
          5        SEND_VAL                                                 ~1
          6        DO_ICALL                                                 
    7     7      > RETURN                                                   null

End of function baz

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

End of function __destruct

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.04 ms | 1398 KiB | 16 Q