3v4l.org

run code in 300+ PHP versions simultaneously
<?php $checkfor = 'test'; $words = array('test','derp','herp'); function noop(){} for ($i = 1; $i++ < 100000;){ if (in_array($checkfor,$words)) { echo "non-flip match"; } } /* if (in_array($checkfor,$words)) { echo "non-flip match"; } */
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 4
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 4
Branch analysis from position: 13
Branch analysis from position: 4
Branch analysis from position: 10
filename:       /in/8WYLr
function name:  (null)
number of ops:  14
compiled vars:  !0 = $checkfor, !1 = $words, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'test'
    3     1        ASSIGN                                                   !1, <array>
    7     2        ASSIGN                                                   !2, 1
          3      > JMP                                                      ->10
    8     4    >   INIT_FCALL                                               'in_array'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $6      
          8      > JMPZ                                                     $6, ->10
    9     9    >   ECHO                                                     'non-flip+match'
    7    10    >   POST_INC                                         ~7      !2
         11        IS_SMALLER                                               ~7, 100000
         12      > JMPNZ                                                    ~8, ->4
   16    13    > > RETURN                                                   1

Function noop:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8WYLr
function name:  noop
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   null

End of function noop

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.47 ms | 1395 KiB | 15 Q