3v4l.org

run code in 300+ PHP versions simultaneously
<?php $def = "authme"; function getInstance($dbName="authme") { return $dbName; } echo getInstance(); echo "\n"; echo getInstance("mcmmo"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7p7ei
function name:  (null)
number of ops:  10
compiled vars:  !0 = $def
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'authme'
    8     1        INIT_FCALL                                               'getinstance'
          2        DO_FCALL                                      0  $2      
          3        ECHO                                                     $2
    9     4        ECHO                                                     '%0A'
   10     5        INIT_FCALL                                               'getinstance'
          6        SEND_VAL                                                 'mcmmo'
          7        DO_FCALL                                      0  $3      
          8        ECHO                                                     $3
   11     9      > RETURN                                                   1

Function getinstance:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7p7ei
function name:  getInstance
number of ops:  3
compiled vars:  !0 = $dbName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      'authme'
    4     1      > RETURN                                                   !0
    5     2*     > RETURN                                                   null

End of function getinstance

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.17 ms | 1396 KiB | 15 Q