3v4l.org

run code in 300+ PHP versions simultaneously
<?php $process = array("as12"=>"deleted","as13"=>1,"as14"=>1); if(!in_array(0, $process, true)) echo "success"; else echo "not success"; //It's outputting "not success"; var_dump(in_array(0, $process, true)); //Output : null
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0DH0S
function name:  (null)
number of ops:  20
compiled vars:  !0 = $process
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'in_array'
          2        SEND_VAL                                                 0
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $2      
          6        BOOL_NOT                                         ~3      $2
          7      > JMPZ                                                     ~3, ->10
    5     8    >   ECHO                                                     'success'
          9      > JMP                                                      ->11
    7    10    >   ECHO                                                     'not+success'
   11    11    >   INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'in_array'
         13        SEND_VAL                                                 0
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $4      
         17        SEND_VAR                                                 $4
         18        DO_ICALL                                                 
   12    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.37 ms | 1395 KiB | 17 Q