3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(0 == '0'); var_dump(0 == 'foo'); var_dump('foo' == '0'); var_dump('foo' == 0); var_dump(in_array(0, array( 'foo', 'bar' ))); var_dump(in_array('0', array( 'foo', 'bar' )));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b7WGj
function name:  (null)
number of ops:  21
compiled vars:  none
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        INIT_FCALL                                               'var_dump'
          4        SEND_VAL                                                 <false>
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAL                                                 <false>
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAL                                                 <false>
         11        DO_ICALL                                                 
    7    12        INIT_FCALL                                               'var_dump'
         13        IN_ARRAY                                         ~4      0, <array>
         14        SEND_VAL                                                 ~4
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'var_dump'
         17        IN_ARRAY                                         ~6      '0', <array>
         18        SEND_VAL                                                 ~6
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.51 ms | 1395 KiB | 15 Q