3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Something; function test(Callable $foo) { $foo('ok'); } test('print');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hsZ83
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_NS_FCALL_BY_NAME                                    'Something%5Ctest'
          1        SEND_VAL_EX                                              'print'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function something%5Ctest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hsZ83
function name:  Something\test
number of ops:  5
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_DYNAMIC_CALL                                        !0
          2        SEND_VAL_EX                                              'ok'
          3        DO_FCALL                                      0          
    6     4      > RETURN                                                   null

End of function something%5Ctest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.97 ms | 1396 KiB | 14 Q