3v4l.org

run code in 300+ PHP versions simultaneously
<?php $val = " "; 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/fK8j0
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, '+'
    3     1        TYPE_CHECK                                   64          !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                                    2  ~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 8.0.0


preferences:
159.71 ms | 1394 KiB | 15 Q