3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DB { function escapeSimple($item) { return $item; } } $db = new StdClass(); $db->db = new DB(); $values = array( 'one', 'two', 'three', ); $values = array_map(array($db->db, 'escapeSimple'),$values);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vHU3b
function name:  (null)
number of ops:  17
compiled vars:  !0 = $db, !1 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $2      'StdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   12     3        NEW                                              $6      'DB'
          4        DO_FCALL                                      0          
          5        ASSIGN_OBJ                                               !0, 'db'
          6        OP_DATA                                                  $6
   14     7        ASSIGN                                                   !1, <array>
   20     8        INIT_FCALL                                               'array_map'
          9        FETCH_OBJ_R                                      ~9      !0, 'db'
         10        INIT_ARRAY                                       ~10     ~9
         11        ADD_ARRAY_ELEMENT                                ~10     'escapeSimple'
         12        SEND_VAL                                                 ~10
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $11     
         15        ASSIGN                                                   !1, $11
         16      > RETURN                                                   1

Class DB:
Function escapesimple:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vHU3b
function name:  escapeSimple
number of ops:  3
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1      > RETURN                                                   !0
    7     2*     > RETURN                                                   null

End of function escapesimple

End of class DB.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.93 ms | 1395 KiB | 15 Q