3v4l.org

run code in 300+ PHP versions simultaneously
<?php class B { public function list() { return range('a', 'z'); } } $array = [new B, 'list']; var_dump($array());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ThWWE
function name:  (null)
number of ops:  11
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'B'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~3      $1
          3        ADD_ARRAY_ELEMENT                                ~3      'list'
          4        ASSIGN                                                   !0, ~3
   10     5        INIT_FCALL                                               'var_dump'
          6        INIT_DYNAMIC_CALL                                        !0
          7        DO_FCALL                                      0  $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class B:
Function list:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ThWWE
function name:  list
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 'a'
          2        SEND_VAL                                                 'z'
          3        DO_ICALL                                         $0      
          4      > RETURN                                                   $0
    6     5*     > RETURN                                                   null

End of function list

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.82 ms | 1395 KiB | 17 Q