3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.99 ms | 1395 KiB | 17 Q