3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.18 ms | 1399 KiB | 17 Q