3v4l.org

run code in 300+ PHP versions simultaneously
<?php function plugin_A($int) { return 'string'; } function plugin_B($int) { return $int * 30; } function apply_filters($int) { $int = plugin_A($int); $int = plugin_B($int); return $int; } apply_filters(10);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uqT9G
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'apply_filters'
          1        SEND_VAL                                                 10
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

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

End of function plugin_a

Function plugin_b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uqT9G
function name:  plugin_B
number of ops:  4
compiled vars:  !0 = $int
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        MUL                                              ~1      !0, 30
          2      > RETURN                                                   ~1
    9     3*     > RETURN                                                   null

End of function plugin_b

Function apply_filters:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uqT9G
function name:  apply_filters
number of ops:  11
compiled vars:  !0 = $int
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1        INIT_FCALL                                               'plugin_a'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $1      
          4        ASSIGN                                                   !0, $1
   13     5        INIT_FCALL                                               'plugin_b'
          6        SEND_VAR                                                 !0
          7        DO_FCALL                                      0  $3      
          8        ASSIGN                                                   !0, $3
   14     9      > RETURN                                                   !0
   15    10*     > RETURN                                                   null

End of function apply_filters

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
193.6 ms | 1453 KiB | 16 Q