3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(in_array(0, ['foo', 'bar'])); var_dump(in_array(0, ['foo', 'bar'], true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ggQE6
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'var_dump'
          1        IN_ARRAY                                             ~0      0, <array>
          2        SEND_VAL                                                     ~0
          3        DO_ICALL                                                     
    4     4        INIT_FCALL                                                   'var_dump'
          5        IN_ARRAY                                             ~2      0, <array>
          6        SEND_VAL                                                     ~2
          7        DO_ICALL                                                     
          8      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
150.56 ms | 1569 KiB | 9 Q