3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(in_array(0, array('Y', 'N', ''), true)) echo '0 in strict array'."\n"; if(in_array(0, array('Y', 'N', ''))) echo '0 in array'."\n"; if(in_array('', array('Y', 'N', ''), true)) echo 'empty in strict array'."\n"; if(in_array('', array('Y', 'N', ''))) echo 'empty in array'."\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 3
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Branch analysis from position: 9
Branch analysis from position: 6
Branch analysis from position: 3
filename:       /in/gAobt
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   IN_ARRAY                                                 0, <array>
          1      > JMPZ                                                     ~0, ->3
          2    >   ECHO                                                     '0+in+strict+array%0A'
    3     3    >   IN_ARRAY                                                 0, <array>
          4      > JMPZ                                                     ~1, ->6
          5    >   ECHO                                                     '0+in+array%0A'
    5     6    >   IN_ARRAY                                                 '', <array>
          7      > JMPZ                                                     ~2, ->9
          8    >   ECHO                                                     'empty+in+strict+array%0A'
    6     9    >   IN_ARRAY                                                 '', <array>
         10      > JMPZ                                                     ~3, ->12
         11    >   ECHO                                                     'empty+in+array%0A'
         12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.21 ms | 1393 KiB | 13 Q