3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '/headers/'; $h = '/imglib/'; $data = array(); for ($i = 0; $i < 5000; ++$i) { $data[] = $h; } foreach ($data as $d) { strncmp('/headers/', $d, 9); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 5
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 5
Branch analysis from position: 10
Branch analysis from position: 5
filename:       /in/aENol
function name:  (null)
number of ops:  20
compiled vars:  !0 = $s, !1 = $h, !2 = $data, !3 = $i, !4 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Fheaders%2F'
    3     1        ASSIGN                                                   !1, '%2Fimglib%2F'
    4     2        ASSIGN                                                   !2, <array>
    5     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->8
    6     5    >   ASSIGN_DIM                                               !2
          6        OP_DATA                                                  !1
    5     7        PRE_INC                                                  !3
          8    >   IS_SMALLER                                               !3, 5000
          9      > JMPNZ                                                    ~11, ->5
    8    10    > > FE_RESET_R                                       $12     !2, ->18
         11    > > FE_FETCH_R                                               $12, !4, ->18
    9    12    >   INIT_FCALL                                               'strncmp'
         13        SEND_VAL                                                 '%2Fheaders%2F'
         14        SEND_VAR                                                 !4
         15        SEND_VAL                                                 9
         16        DO_ICALL                                                 
    8    17      > JMP                                                      ->11
         18    >   FE_FREE                                                  $12
   10    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.37 ms | 1395 KiB | 15 Q