3v4l.org

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

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mLYri
function name:  test
number of ops:  5
compiled vars:  !0 = $cl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_METHOD_CALL                                         !0, 't'
          2        SEND_VAL_EX                                              'blaaaaaaaah'
          3        DO_FCALL                                      0          
    5     4      > RETURN                                                   null

End of function test

Class class@anonymous:
Function t:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mLYri
function name:  t
number of ops:  3
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   11     1        ECHO                                                     !0
   12     2      > RETURN                                                   null

End of function t

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.86 ms | 1397 KiB | 14 Q