3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function bar($a) { var_dump("5$a"); } } call_user_func(['Foo', 'bar'], 'asdf'); call_user_func('Foo::bar', 'qwer');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NuV4s
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_USER_CALL                                1          'call_user_func', <array>
          1        SEND_USER                                                'asdf'
          2        DO_FCALL                                      0          
    9     3        INIT_USER_CALL                                1          'call_user_func', 'Foo%3A%3Abar'
          4        SEND_USER                                                'qwer'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NuV4s
function name:  bar
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'var_dump'
          2        NOP                                                      
          3        FAST_CONCAT                                      ~1      '5', !0
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                                 
    5     6      > RETURN                                                   null

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.7 ms | 939 KiB | 16 Q