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', ); for ($i = 1; $i <= 1000; $i++) { $values_new = array_map(array($db->db, 'escapeSimple'),$values); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 10
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 10
Branch analysis from position: 21
Branch analysis from position: 10
filename:       /in/J8BcU
function name:  (null)
number of ops:  22
compiled vars:  !0 = $db, !1 = $values, !2 = $i, !3 = $values_new
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $4      'StdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
   12     3        NEW                                              $8      'DB'
          4        DO_FCALL                                      0          
          5        ASSIGN_OBJ                                               !0, 'db'
          6        OP_DATA                                                  $8
   14     7        ASSIGN                                                   !1, <array>
   20     8        ASSIGN                                                   !2, 1
          9      > JMP                                                      ->19
   21    10    >   INIT_FCALL                                               'array_map'
         11        FETCH_OBJ_R                                      ~12     !0, 'db'
         12        INIT_ARRAY                                       ~13     ~12
         13        ADD_ARRAY_ELEMENT                                ~13     'escapeSimple'
         14        SEND_VAL                                                 ~13
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $14     
         17        ASSIGN                                                   !3, $14
   20    18        PRE_INC                                                  !2
         19    >   IS_SMALLER_OR_EQUAL                                      !2, 1000
         20      > JMPNZ                                                    ~17, ->10
   22    21    > > RETURN                                                   1

Class DB:
Function escapesimple:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J8BcU
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:
146.32 ms | 1396 KiB | 15 Q