3v4l.org

run code in 300+ PHP versions simultaneously
<?php function the_function() { $output = 'bla'; return ['output' => $output]; } echo the_function()['output'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RvQG0
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'the_function'
          1        DO_FCALL                                      0  $0      
          2        FETCH_DIM_R                                      ~1      $0, 'output'
          3        ECHO                                                     ~1
          4      > RETURN                                                   1

Function the_function:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RvQG0
function name:  the_function
number of ops:  4
compiled vars:  !0 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'bla'
    4     1        INIT_ARRAY                                       ~2      !0, 'output'
          2      > RETURN                                                   ~2
    5     3*     > RETURN                                                   null

End of function the_function

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.31 ms | 944 KiB | 15 Q