3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fun($f) { return $f; } echo "Create pointer\n"; $f = fun('foo'); echo "Call pointer\n"; $f(); echo "Done\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oflv5
function name:  (null)
number of ops:  10
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'Create+pointer%0A'
    6     1        INIT_FCALL                                               'fun'
          2        SEND_VAL                                                 'foo'
          3        DO_FCALL                                      0  $1      
          4        ASSIGN                                                   !0, $1
    7     5        ECHO                                                     'Call+pointer%0A'
    8     6        INIT_DYNAMIC_CALL                                        !0
          7        DO_FCALL                                      0          
    9     8        ECHO                                                     'Done%0A'
          9      > RETURN                                                   1

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

End of function fun

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.53 ms | 1397 KiB | 14 Q