3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{ public static function Bar(&$v){ $v = 9000; } } $f = 'Foo::Bar'; $num = 3; $f($num); echo $num;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KRVIe
function name:  (null)
number of ops:  7
compiled vars:  !0 = $f, !1 = $num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, 'Foo%3A%3ABar'
   11     1        ASSIGN                                                   !1, 3
   12     2        INIT_DYNAMIC_CALL                                        !0
          3        SEND_VAR_EX                                              !1
          4        DO_FCALL                                      0          
   13     5        ECHO                                                     !1
          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/KRVIe
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:
156.4 ms | 938 KiB | 14 Q