3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_foo($argument = 'default') { return "I got argument " . $argument; } print get_foo(); print get_foo("foo");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1u10u
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'get_foo'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
    9     3        INIT_FCALL                                               'get_foo'
          4        SEND_VAL                                                 'foo'
          5        DO_FCALL                                      0  $1      
          6        ECHO                                                     $1
          7      > RETURN                                                   1

Function get_foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1u10u
function name:  get_foo
number of ops:  4
compiled vars:  !0 = $argument
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      'default'
    4     1        CONCAT                                           ~1      'I+got+argument+', !0
          2      > RETURN                                                   ~1
    5     3*     > RETURN                                                   null

End of function get_foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.35 ms | 1396 KiB | 15 Q