3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function putain($a, &$b) { var_dump($a); var_dump($b); } } $callable = ["A::putain"]; $var = "shit"; $callable("alma", $var);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ULiPW
function name:  (null)
number of ops:  7
compiled vars:  !0 = $callable, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, <array>
   11     1        ASSIGN                                                   !1, 'shit'
   12     2        INIT_DYNAMIC_CALL                                        !0
          3        SEND_VAL_EX                                              'alma'
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function putain

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.07 ms | 1395 KiB | 15 Q