3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { function test($a, $b, $c) { var_dump(array_map('extract', [['res' => 123]])); var_dump($res); } test(1, 2, 3); } /*namespace { function test($a, $b, $c) { var_dump(call_user_func('func_get_args')); var_dump(call_user_func('get_defined_vars')); } test(1, 2, 3); }*/
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dsptb
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Ctest'
          1        SEND_VAL_EX                                              1
          2        SEND_VAL_EX                                              2
          3        SEND_VAL_EX                                              3
          4        DO_FCALL                                      0          
   16     5      > RETURN                                                   1

Function foo%5Ctest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dsptb
function name:  Foo\test
number of ops:  14
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    5     3        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
          4        INIT_NS_FCALL_BY_NAME                                    'Foo%5Carray_map'
          5        SEND_VAL_EX                                              'extract'
          6        SEND_VAL_EX                                              <array>
          7        DO_FCALL                                      0  $4      
          8        SEND_VAR_NO_REF_EX                                       $4
          9        DO_FCALL                                      0          
    6    10        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
         11        SEND_VAR_EX                                              !3
         12        DO_FCALL                                      0          
    7    13      > RETURN                                                   null

End of function foo%5Ctest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.4 ms | 1389 KiB | 18 Q