3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function e() { return (new F()) ->g([]); } public static function d($a) { return $a->b()['c']; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Etknf
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E > > RETURN                                                   1

Class Test:
Function e:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Etknf
function name:  e
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $0      'F'
          1        DO_FCALL                                      0          
    6     2        INIT_METHOD_CALL                                         $0, 'g'
          3        SEND_VAL_EX                                              <array>
          4        DO_FCALL                                      0  $2      
          5      > RETURN                                                   $2
    7     6*     > RETURN                                                   null

End of function e

Function d:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Etknf
function name:  d
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        INIT_METHOD_CALL                                         !0, 'b'
          2        DO_FCALL                                      0  $1      
          3        FETCH_DIM_R                                      ~2      $1, 'c'
          4      > RETURN                                                   ~2
   11     5*     > RETURN                                                   null

End of function d

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.1 ms | 1398 KiB | 13 Q