3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function() {return true;}); $func = 'strtolower'; $invoker = function(callable $invocation, array $args) { return call_user_func_array($invocation, $args); }; var_dump($invoker($func, array('TEST')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HdmBa
function name:  (null)
number of ops:  15
compiled vars:  !0 = $func, !1 = $invoker
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FHdmBa%3A2%240'
          2        SEND_VAL                                                 ~2
          3        DO_ICALL                                                 
    4     4        ASSIGN                                                   !0, 'strtolower'
    6     5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FHdmBa%3A6%241'
          6        ASSIGN                                                   !1, ~5
    9     7        INIT_FCALL                                               'var_dump'
          8        INIT_DYNAMIC_CALL                                        !1
          9        SEND_VAR_EX                                              !0
         10        SEND_VAL_EX                                              <array>
         11        DO_FCALL                                      0  $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FHdmBa%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HdmBa
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > RETURN                                                   <true>
          1*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FHdmBa%3A2%240

Function %00%7Bclosure%7D%2Fin%2FHdmBa%3A6%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HdmBa
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $invocation, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     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
    8     7*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FHdmBa%3A6%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.79 ms | 1388 KiB | 17 Q