3v4l.org

run code in 300+ PHP versions simultaneously
<?php function stringAppend($str) { $str = $str."append"; //không có return } function stringPrepend($str) { $str = "prepend".$str; } $aString = "PHP"; echo stringPrepend(stringAppend($aString));// Không có return
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eJZLJ
function name:  (null)
number of ops:  9
compiled vars:  !0 = $aString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN                                                   !0, 'PHP'
   14     1        INIT_FCALL                                               'stringprepend'
          2        INIT_FCALL                                               'stringappend'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_FCALL                                      0  $3      
          7        ECHO                                                     $3
          8      > RETURN                                                   1

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

End of function stringappend

Function stringprepend:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eJZLJ
function name:  stringPrepend
number of ops:  4
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        CONCAT                                           ~1      'prepend', !0
          2        ASSIGN                                                   !0, ~1
   10     3      > RETURN                                                   null

End of function stringprepend

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.95 ms | 1398 KiB | 15 Q