3v4l.org

run code in 300+ PHP versions simultaneously
<?php function add_some_extra($string) { $string .= 'and something extra.'; } $str = 'This is a string, '; add_some_extra($str); echo $str; // outputs 'This is a string, and something extra.' ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H8BhV
function name:  (null)
number of ops:  6
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 'This+is+a+string%2C+'
    7     1        INIT_FCALL                                               'add_some_extra'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
    8     4        ECHO                                                     !0
    9     5      > RETURN                                                   1

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

End of function add_some_extra

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.92 ms | 1388 KiB | 14 Q