3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ''; 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/cTPRf
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $i, !2 = $ext
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                                     ~5      !2, 'jpg'
          4      > JMPNZ_EX                                         ~5      ~5, ->7
          5    >   IS_IDENTICAL                                     ~6      !2, 'jpeg'
          6        BOOL                                             ~5      ~6
          7    > > JMPNZ_EX                                         ~5      ~5, ->10
          8    >   IS_IDENTICAL                                     ~7      !2, 'png'
          9        BOOL                                             ~5      ~7
         10    > > JMPNZ_EX                                         ~5      ~5, ->13
         11    >   IS_IDENTICAL                                     ~8      !2, 'gif'
         12        BOOL                                             ~5      ~8
         13    > > JMPZ                                                     ~5, ->14
    3    14    >   PRE_INC                                                  !1
         15    >   IS_SMALLER                                               !1, 10000
         16      > JMPNZ                                                    ~10, ->3
    7    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
206.91 ms | 1394 KiB | 13 Q