3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $val = false; echo "Null? ".(is_string($val) ? strlen(trim($val)) : is_null($val));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
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: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dNPak
function name:  (null)
number of ops:  14
compiled vars:  !0 = $val
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, <false>
   3     1        TYPE_CHECK                                    6  ~2      !0
         2      > JMPZ                                                     ~2, ->9
         3    >   INIT_FCALL                                               'trim'
         4        SEND_VAR                                                 !0
         5        DO_ICALL                                         $3      
         6        STRLEN                                           ~4      $3
         7        QM_ASSIGN                                        ~5      ~4
         8      > JMP                                                      ->11
         9    >   TYPE_CHECK                                    1  ~6      !0
        10        QM_ASSIGN                                        ~5      ~6
        11    >   CONCAT                                           ~7      'Null%3F+', ~5
        12        ECHO                                                     ~7
        13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0