3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Util { public static function newId() { return 7; } } $a = array(1, 2, 3, 4); $v = array_map(array('Util','newId'), $a); var_dump(array_combine($a, $v));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VoIMQ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'array_map'
          2        SEND_VAL                                                 <array>
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   12     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'array_combine'
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class Util:
Function newid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VoIMQ
function name:  newId
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   7
    6     1*     > RETURN                                                   null

End of function newid

End of class Util.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.23 ms | 1395 KiB | 19 Q