3v4l.org

run code in 500+ PHP versions simultaneously
<?php function getText() : string { return 'text'; } function printText(string $text) : void { echo $text . PHP_EOL; } printText(getText()); printText('custom text'); printText([]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M7ikB
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                                   'printtext'
          1        INIT_FCALL                                                   'gettext'
          2        DO_FCALL                                          0  $0      
          3        SEND_VAR                                                     $0
          4        DO_FCALL                                          0          
   14     5        INIT_FCALL                                                   'printtext'
          6        SEND_VAL                                                     'custom+text'
          7        DO_FCALL                                          0          
   15     8        INIT_FCALL                                                   'printtext'
          9        SEND_VAL                                                     <array>
         10        DO_FCALL                                          0          
         11      > RETURN                                                       1

Function gettext:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M7ikB
function name:  getText
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                       'text'
    6     1*       VERIFY_RETURN_TYPE                                           
          2*     > RETURN                                                       null

End of function gettext

Function printtext:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M7ikB
function name:  printText
number of ops:  4
compiled vars:  !0 = $text
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   RECV                                                 !0      
   10     1        CONCAT                                               ~1      !0, '%0A'
          2        ECHO                                                         ~1
   11     3      > RETURN                                                       null

End of function printtext

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.89 ms | 2168 KiB | 17 Q