3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dir = '/GOOD/MORNING'; $url = '/HELLO/WORLD'; class functionCaller { public static function caller($function, ...$args) { return call_user_func_array($function, $args); } } $file = <<<EOT $dir/{$fc::caller('basename',$url)} EOT; echo $file;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pKNIe
function name:  (null)
number of ops:  13
compiled vars:  !0 = $dir, !1 = $url, !2 = $file, !3 = $fc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2FGOOD%2FMORNING'
    4     1        ASSIGN                                                   !1, '%2FHELLO%2FWORLD'
   13     2        ROPE_INIT                                     3  ~9      !0
          3        ROPE_ADD                                      1  ~9      ~9, '%2F'
          4        FETCH_CLASS                                   0  $6      !3
          5        INIT_STATIC_METHOD_CALL                                  $6, 'caller'
          6        SEND_VAL_EX                                              'basename'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0  $7      
          9        ROPE_END                                      2  ~8      ~9, $7
   12    10        ASSIGN                                                   !2, ~8
   15    11        ECHO                                                     !2
         12      > RETURN                                                   1

Class functionCaller:
Function caller:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pKNIe
function name:  caller
number of ops:  8
compiled vars:  !0 = $function, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV_VARIADIC                                    !1      
    8     2        INIT_USER_CALL                                0          'call_user_func_array', !0
          3        SEND_ARRAY                                               !1
          4        CHECK_UNDEF_ARGS                                         
          5        DO_FCALL                                      0  $2      
          6      > RETURN                                                   $2
    9     7*     > RETURN                                                   null

End of function caller

End of class functionCaller.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.63 ms | 1394 KiB | 13 Q