3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array_fill(0, 1000, 'xxxxx'); $runs = 100; for ($i = 0; $i < $runs; $i++) { foreach ($arr as &$value) { strpos('xxxxxxx', $value); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 9
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 125) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
2 jumps found. (Code = 126) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 9
Branch analysis from position: 20
Branch analysis from position: 9
Branch analysis from position: 16
filename:       /in/Zksi4
function name:  (null)
number of ops:  21
compiled vars:  !0 = $arr, !1 = $runs, !2 = $i, !3 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_fill'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 1000
          3        SEND_VAL                                                 'xxxxx'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !0, $4
    4     6        ASSIGN                                                   !1, 100
    5     7        ASSIGN                                                   !2, 0
          8      > JMP                                                      ->18
    6     9    > > FE_RESET_RW                                      $8      !0, ->16
         10    > > FE_FETCH_RW                                              $8, !3, ->16
    7    11    >   INIT_FCALL                                               'strpos'
         12        SEND_VAL                                                 'xxxxxxx'
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                                 
    6    15      > JMP                                                      ->10
         16    >   FE_FREE                                                  $8
    5    17        PRE_INC                                                  !2
         18    >   IS_SMALLER                                               !2, !1
         19      > JMPNZ                                                    ~11, ->9
    9    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.85 ms | 1387 KiB | 17 Q