3v4l.org

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

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AciLv
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:
141.63 ms | 1393 KiB | 13 Q