3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ext = ''; for ($i = 0; $i < 10000; $i++) { if ($ext === 'jpg' || $ext === 'jpeg' || $ext === 'png' || $ext === 'gif') { } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 47) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 47) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
Branch analysis from position: 3
Branch analysis from position: 14
Branch analysis from position: 13
Branch analysis from position: 10
Branch analysis from position: 7
filename:       /in/EaRvr
function name:  (null)
number of ops:  18
compiled vars:  !0 = $ext, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, ''
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->15
    4     3    >   IS_IDENTICAL                                     ~4      !0, 'jpg'
          4      > JMPNZ_EX                                         ~4      ~4, ->7
          5    >   IS_IDENTICAL                                     ~5      !0, 'jpeg'
          6        BOOL                                             ~4      ~5
          7    > > JMPNZ_EX                                         ~4      ~4, ->10
          8    >   IS_IDENTICAL                                     ~6      !0, 'png'
          9        BOOL                                             ~4      ~6
         10    > > JMPNZ_EX                                         ~4      ~4, ->13
         11    >   IS_IDENTICAL                                     ~7      !0, 'gif'
         12        BOOL                                             ~4      ~7
         13    > > JMPZ                                                     ~4, ->14
    3    14    >   PRE_INC                                                  !1
         15    >   IS_SMALLER                                               !1, 10000
         16      > JMPNZ                                                    ~9, ->3
    7    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.16 ms | 1394 KiB | 13 Q