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 = [new 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/bUdYa
function name:  (null)
number of ops:  11
compiled vars:  !0 = $callable, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $2      'A'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~4      $2
          3        ADD_ARRAY_ELEMENT                                ~4      'putain'
          4        ASSIGN                                                   !0, ~4
   11     5        ASSIGN                                                   !1, 'shit'
   12     6        INIT_DYNAMIC_CALL                                        !0
          7        SEND_VAL_EX                                              'alma'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class A:
Function putain:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bUdYa
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:
171.12 ms | 1395 KiB | 15 Q