3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_ = function ( $v ) { return $v; }; function config($url) { return $url; } $username = 'u_name'; echo "{$_( config('app.url') )}/{$username}";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bOBcv
function name:  (null)
number of ops:  14
compiled vars:  !0 = $_, !1 = $username
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                          ~2      [0]
          1        ASSIGN                                                   !0, ~2
   10     2        ASSIGN                                                   !1, 'u_name'
   11     3        INIT_DYNAMIC_CALL                                        !0
          4        INIT_FCALL                                               'config'
          5        SEND_VAL                                                 'app.url'
          6        DO_FCALL                                      0  $5      
          7        SEND_VAR_NO_REF_EX                                       $5
          8        DO_FCALL                                      0  $6      
          9        ROPE_INIT                                     3  ~8      $6
         10        ROPE_ADD                                      1  ~8      ~8, '%2F'
         11        ROPE_END                                      2  ~7      ~8, !1
         12        ECHO                                                     ~7
         13      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bOBcv
function name:  {closure}
number of ops:  3
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1      > RETURN                                                   !0
          2*     > RETURN                                                   null

End of Dynamic Function 0

Function config:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bOBcv
function name:  config
number of ops:  3
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1      > RETURN                                                   !0
    8     2*     > RETURN                                                   null

End of function config

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.12 ms | 998 KiB | 14 Q