3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{ public static function Bar(&$v){ $v = 9000; } } $functionname = "Foo::Bar"; list($class, $function) = explode('::', $functionname); $num = 3; $class::$function($num); echo $num;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VBXvc
function name:  (null)
number of ops:  17
compiled vars:  !0 = $functionname, !1 = $class, !2 = $function, !3 = $num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'Foo%3A%3ABar'
    9     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%3A%3A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        FETCH_LIST_R                                     $6      $5, 0
          6        ASSIGN                                                   !1, $6
          7        FETCH_LIST_R                                     $8      $5, 1
          8        ASSIGN                                                   !2, $8
          9        FREE                                                     $5
   11    10        ASSIGN                                                   !3, 3
   12    11        FETCH_CLASS                                   0  $11     !1
         12        INIT_STATIC_METHOD_CALL                                  $11, !2
         13        SEND_VAR_EX                                              !3
         14        DO_FCALL                                      0          
   13    15        ECHO                                                     !3
         16      > RETURN                                                   1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VBXvc
function name:  Bar
number of ops:  3
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ASSIGN                                                   !0, 9000
    5     2      > RETURN                                                   null

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.38 ms | 1386 KiB | 15 Q