3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo in_array('malicious', array('a','b','c', (int) 0)) ? 'ok': 'not';
Finding entry points
Branch analysis from position: 0
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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AIWFE
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'in_array'
          1        SEND_VAL                                                 'malicious'
          2        INIT_ARRAY                                       ~0      'a'
          3        ADD_ARRAY_ELEMENT                                ~0      'b'
          4        ADD_ARRAY_ELEMENT                                ~0      'c'
          5        CAST                                          4  ~1      0
          6        ADD_ARRAY_ELEMENT                                ~0      ~1
          7        SEND_VAL                                                 ~0
          8        DO_ICALL                                         $2      
          9      > JMPZ                                                     $2, ->12
         10    >   QM_ASSIGN                                        ~3      'ok'
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~3      'not'
         13    >   ECHO                                                     ~3
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.41 ms | 1394 KiB | 15 Q