3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Hello'; function hello(&$string = '') { $string .= ' World!'; print trim($string); } hello(); hello($string); hello($string); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Nk5gb
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Hello'
    7     1        INIT_FCALL                                               'hello'
          2        DO_FCALL                                      0          
    8     3        INIT_FCALL                                               'hello'
          4        SEND_REF                                                 !0
          5        DO_FCALL                                      0          
    9     6        INIT_FCALL                                               'hello'
          7        SEND_REF                                                 !0
          8        DO_FCALL                                      0          
   10     9      > RETURN                                                   1

Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Nk5gb
function name:  hello
number of ops:  7
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      ''
    4     1        ASSIGN_OP                                     8          !0, '+World%21'
    5     2        INIT_FCALL                                               'trim'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        ECHO                                                     $2
    6     6      > RETURN                                                   null

End of function hello

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.59 ms | 1397 KiB | 18 Q