3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '/headers/'; $h = '/imglib/'; $data = array(); for ($i = 0; $i < 20000; ++$i) { $data[] = $h; } foreach ($data as $d) { !strncmp($d, '/headers/', 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 = 19
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
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/2clTc
function name:  (null)
number of ops:  21
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, 20000
          9      > JMPNZ                                                    ~11, ->5
    8    10    > > FE_RESET_R                                       $12     !2, ->19
         11    > > FE_FETCH_R                                               $12, !4, ->19
    9    12    >   INIT_FCALL                                               'strncmp'
         13        SEND_VAR                                                 !4
         14        SEND_VAL                                                 '%2Fheaders%2F'
         15        SEND_VAL                                                 9
         16        DO_ICALL                                         $13     
         17        BOOL_NOT                                         ~14     $13
    8    18      > JMP                                                      ->11
         19    >   FE_FREE                                                  $12
   10    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.45 ms | 1387 KiB | 15 Q