3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( in_array(0, ['this', 'that', 1, 2]) ); var_dump( in_array(0, ['this', 'that']) ); var_dump( in_array(null, ['this', 'that', 1, 2]) ); var_dump( in_array('this', ['this', 'that', 1, 2]) ); var_dump( in_array('there', ['this', 'that', 1, 2]) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mX2f5
function name:  (null)
number of ops:  33
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
    4     1        INIT_FCALL                                               'in_array'
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 <array>
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'var_dump'
    7     8        IN_ARRAY                                         ~2      0, <array>
          9        SEND_VAL                                                 ~2
         10        DO_ICALL                                                 
    9    11        INIT_FCALL                                               'var_dump'
   10    12        INIT_FCALL                                               'in_array'
         13        SEND_VAL                                                 null
         14        SEND_VAL                                                 <array>
         15        DO_ICALL                                         $4      
         16        SEND_VAR                                                 $4
         17        DO_ICALL                                                 
   13    18        INIT_FCALL                                               'var_dump'
   14    19        INIT_FCALL                                               'in_array'
         20        SEND_VAL                                                 'this'
         21        SEND_VAL                                                 <array>
         22        DO_ICALL                                         $6      
         23        SEND_VAR                                                 $6
         24        DO_ICALL                                                 
   16    25        INIT_FCALL                                               'var_dump'
   17    26        INIT_FCALL                                               'in_array'
         27        SEND_VAL                                                 'there'
         28        SEND_VAL                                                 <array>
         29        DO_ICALL                                         $8      
         30        SEND_VAR                                                 $8
         31        DO_ICALL                                                 
   18    32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.5 ms | 1396 KiB | 17 Q