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', ); foreach($values as $i => $value) { $values[$i] = $db->db->escapeSimple($value); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 18
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/rtIYV
function name:  (null)
number of ops:  20
compiled vars:  !0 = $db, !1 = $values, !2 = $value, !3 = $i
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      > FE_RESET_R                                       $11     !1, ->18
          9    > > FE_FETCH_R                                       ~12     $11, !2, ->18
         10    >   ASSIGN                                                   !3, ~12
   21    11        FETCH_OBJ_R                                      ~15     !0, 'db'
         12        INIT_METHOD_CALL                                         ~15, 'escapeSimple'
         13        SEND_VAR_EX                                              !2
         14        DO_FCALL                                      0  $16     
         15        ASSIGN_DIM                                               !1, !3
         16        OP_DATA                                                  $16
   20    17      > JMP                                                      ->9
         18    >   FE_FREE                                                  $11
   22    19      > RETURN                                                   1

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