3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
201.88 ms | 1395 KiB | 17 Q