3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyTest { public function __construct( $ok, $response_code, $error_message = NULL ) { $array = array( 1, 2, 3 ); $r = array_map( array($this,'getHoge'), $array ); var_dump($r); } public static function getHoge($item){ $item ++; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k9HFn
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E > > RETURN                                                   1

Class MyTest:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k9HFn
function name:  __construct
number of ops:  16
compiled vars:  !0 = $ok, !1 = $response_code, !2 = $error_message, !3 = $array, !4 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV_INIT                                        !2      null
    8     3        ASSIGN                                                   !3, <array>
   10     4        INIT_FCALL                                               'array_map'
          5        FETCH_THIS                                       ~6      
          6        INIT_ARRAY                                       ~7      ~6
          7        ADD_ARRAY_ELEMENT                                ~7      'getHoge'
          8        SEND_VAL                                                 ~7
          9        SEND_VAR                                                 !3
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !4, $8
   12    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !4
         14        DO_ICALL                                                 
   14    15      > RETURN                                                   null

End of function __construct

Function gethoge:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k9HFn
function name:  getHoge
number of ops:  3
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   18     1        PRE_INC                                                  !0
   20     2      > RETURN                                                   null

End of function gethoge

End of class MyTest.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.27 ms | 1395 KiB | 17 Q