3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function a($a) { echo count($a); } }; $a = array(1, 2, 3); $A = new A(); $A->a($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G9E7G
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a, !1 = $A
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN                                                   !0, <array>
   14     1        NEW                                              $3      'A'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   15     4        INIT_METHOD_CALL                                         !1, 'a'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class A:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G9E7G
function name:  a
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        COUNT                                            ~1      !0
          2        ECHO                                                     ~1
    8     3      > RETURN                                                   null

End of function a

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.39 ms | 1393 KiB | 13 Q