3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ''; $b = null; $isa = is_bool($a) || is_array($a); var_dump($isa, ! trim((string)$a));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/dTN7e
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b, !2 = $isa
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        ASSIGN                                                   !1, null
    5     2        TYPE_CHECK                                   12  ~5      !0
          3      > JMPNZ_EX                                         ~5      ~5, ->6
          4    >   TYPE_CHECK                                  128  ~6      !0
          5        BOOL                                             ~5      ~6
          6    >   ASSIGN                                                   !2, ~5
    7     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        INIT_FCALL                                               'trim'
         10        CAST                                          6  ~8      !0
         11        SEND_VAL                                                 ~8
         12        DO_ICALL                                         $9      
         13        BOOL_NOT                                         ~10     $9
         14        SEND_VAL                                                 ~10
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.63 ms | 1394 KiB | 17 Q