3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ 'inputs', 'app', 'post', 'server', ]; echo in_array('inputs', $array) ? '"inputs" is in the array...' : ''; echo "\n"; echo in_array(0, $array) ? '0 is also in the array!' : '0 is NOT in the array!'; echo "\n"; echo in_array(0, $array, true) ? '0 is also in the array!' : '0 is NOT in the array!'; echo "\n"; echo in_array(1, $array) ? '1 is also in the array!' : '1 is NOT in the array!'; echo "\n"; print_r(array_keys($array, 0));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
Branch analysis from position: 27
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
Branch analysis from position: 20
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
Branch analysis from position: 12
filename:       /in/k915t
function name:  (null)
number of ops:  38
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   10     1        FRAMELESS_ICALL_2                in_array            ~2      'inputs', !0
          2      > JMPZ                                                         ~2, ->5
          3    >   QM_ASSIGN                                            ~3      '%22inputs%22+is+in+the+array...'
          4      > JMP                                                          ->6
          5    >   QM_ASSIGN                                            ~3      ''
          6    >   ECHO                                                         ~3
   11     7        ECHO                                                         '%0A'
   13     8        FRAMELESS_ICALL_2                in_array            ~4      0, !0
          9      > JMPZ                                                         ~4, ->12
         10    >   QM_ASSIGN                                            ~5      '0+is+also+in+the+array%21'
         11      > JMP                                                          ->13
         12    >   QM_ASSIGN                                            ~5      '0+is+NOT+in+the+array%21'
         13    >   ECHO                                                         ~5
   14    14        ECHO                                                         '%0A'
   15    15        FRAMELESS_ICALL_3                in_array            ~6      0, !0
         16        OP_DATA                                                      <true>
         17      > JMPZ                                                         ~6, ->20
         18    >   QM_ASSIGN                                            ~7      '0+is+also+in+the+array%21'
         19      > JMP                                                          ->21
         20    >   QM_ASSIGN                                            ~7      '0+is+NOT+in+the+array%21'
         21    >   ECHO                                                         ~7
   16    22        ECHO                                                         '%0A'
   18    23        FRAMELESS_ICALL_2                in_array            ~8      1, !0
         24      > JMPZ                                                         ~8, ->27
         25    >   QM_ASSIGN                                            ~9      '1+is+also+in+the+array%21'
         26      > JMP                                                          ->28
         27    >   QM_ASSIGN                                            ~9      '1+is+NOT+in+the+array%21'
         28    >   ECHO                                                         ~9
   19    29        ECHO                                                         '%0A'
   21    30        INIT_FCALL                                                   'print_r'
         31        INIT_FCALL                                                   'array_keys'
         32        SEND_VAR                                                     !0
         33        SEND_VAL                                                     0
         34        DO_ICALL                                             $10     
         35        SEND_VAR                                                     $10
         36        DO_ICALL                                                     
         37      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.1 ms | 2256 KiB | 15 Q