3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fooBar = [0 => 'foo', 1 => 'bar']; var_dump('loose', in_array(true, $fooBar), in_array(false, $fooBar), in_array(0, $fooBar), in_array(1, $fooBar)); var_dump('strict', in_array(true, $fooBar, true), in_array(false, $fooBar, true), in_array(0, $fooBar, true), in_array(1, $fooBar, true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GBrhK
function name:  (null)
number of ops:  52
compiled vars:  !0 = $fooBar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAL                                                 'loose'
          3        INIT_FCALL                                               'in_array'
          4        SEND_VAL                                                 <true>
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        INIT_FCALL                                               'in_array'
          9        SEND_VAL                                                 <false>
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
         13        INIT_FCALL                                               'in_array'
         14        SEND_VAL                                                 0
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $4      
         17        SEND_VAR                                                 $4
         18        INIT_FCALL                                               'in_array'
         19        SEND_VAL                                                 1
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $5      
         22        SEND_VAR                                                 $5
         23        DO_ICALL                                                 
    5    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAL                                                 'strict'
         26        INIT_FCALL                                               'in_array'
         27        SEND_VAL                                                 <true>
         28        SEND_VAR                                                 !0
         29        SEND_VAL                                                 <true>
         30        DO_ICALL                                         $7      
         31        SEND_VAR                                                 $7
         32        INIT_FCALL                                               'in_array'
         33        SEND_VAL                                                 <false>
         34        SEND_VAR                                                 !0
         35        SEND_VAL                                                 <true>
         36        DO_ICALL                                         $8      
         37        SEND_VAR                                                 $8
         38        INIT_FCALL                                               'in_array'
         39        SEND_VAL                                                 0
         40        SEND_VAR                                                 !0
         41        SEND_VAL                                                 <true>
         42        DO_ICALL                                         $9      
         43        SEND_VAR                                                 $9
         44        INIT_FCALL                                               'in_array'
         45        SEND_VAL                                                 1
         46        SEND_VAR                                                 !0
         47        SEND_VAL                                                 <true>
         48        DO_ICALL                                         $10     
         49        SEND_VAR                                                 $10
         50        DO_ICALL                                                 
         51      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.2 ms | 1016 KiB | 15 Q