3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function p($arg) { return 'A'; } } $a = new A; var_dump(new ${a->p}('omg'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3252u
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        INIT_FCALL                                               'var_dump'
          4        FETCH_CONSTANT                                   ~4      'a'
          5        FETCH_OBJ_R                                      ~5      ~4, 'p'
          6        FETCH_R                      local               ~6      ~5
          7        FETCH_CLASS                                   0  $7      ~6
          8        NEW                                              $8      $7
          9        SEND_VAL_EX                                              'omg'
         10        DO_FCALL                                      0          
         11        SEND_VAR                                                 $8
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class A:
Function p:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3252u
function name:  p
number of ops:  3
compiled vars:  !0 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1      > RETURN                                                   'A'
          2*     > RETURN                                                   null

End of function p

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.46 ms | 1395 KiB | 15 Q