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(); foreach($values as $i => $value) { $values_new[$i] = $db->db->escapeSimple($value); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 10
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 21
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 21
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 10
Branch analysis from position: 25
Branch analysis from position: 10
Branch analysis from position: 21
filename:       /in/5XtqN
function name:  (null)
number of ops:  26
compiled vars:  !0 = $db, !1 = $values, !2 = $i, !3 = $values_new, !4 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $5      'StdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $5
   12     3        NEW                                              $9      'DB'
          4        DO_FCALL                                      0          
          5        ASSIGN_OBJ                                               !0, 'db'
          6        OP_DATA                                                  $9
   14     7        ASSIGN                                                   !1, <array>
   20     8        ASSIGN                                                   !2, 1
          9      > JMP                                                      ->23
   21    10    >   ASSIGN                                                   !3, <array>
   23    11      > FE_RESET_R                                       $14     !1, ->21
         12    > > FE_FETCH_R                                       ~15     $14, !4, ->21
         13    >   ASSIGN                                                   !2, ~15
   24    14        FETCH_OBJ_R                                      ~18     !0, 'db'
         15        INIT_METHOD_CALL                                         ~18, 'escapeSimple'
         16        SEND_VAR_EX                                              !4
         17        DO_FCALL                                      0  $19     
         18        ASSIGN_DIM                                               !3, !2
         19        OP_DATA                                                  $19
   23    20      > JMP                                                      ->12
         21    >   FE_FREE                                                  $14
   20    22        PRE_INC                                                  !2
         23    >   IS_SMALLER_OR_EQUAL                                      !2, 1000
         24      > JMPNZ                                                    ~21, ->10
   26    25    > > RETURN                                                   1

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