3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(in_array('yes, please', ['yes', 'no', 1, (int) '0'])); 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/Kf7NA
function name:  (null)
number of ops:  27
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        ADD_ARRAY_ELEMENT                                ~0      1
          6        CAST                                          4  ~1      '0'
          7        ADD_ARRAY_ELEMENT                                ~0      ~1
          8        SEND_VAL                                                 ~0
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
    3    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'in_array'
         14        SEND_VAL                                                 'no+don%27t'
         15        SEND_VAL                                                 <array>
         16        DO_ICALL                                         $4      
         17        SEND_VAR                                                 $4
         18        DO_ICALL                                                 
    4    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'in_array'
         21        SEND_VAL                                                 '00'
         22        SEND_VAL                                                 <array>
         23        DO_ICALL                                         $6      
         24        SEND_VAR                                                 $6
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.1 ms | 1395 KiB | 17 Q