3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = '0'; function isNonEmptyString($var){ return !empty($var) && is_string($var); } var_dump(isNonEmptyString($var));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mkZ3F
function name:  (null)
number of ops:  8
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '0'
    9     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'isnonemptystring'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function isnonemptystring:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) 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/mkZ3F
function name:  isNonEmptyString
number of ops:  8
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ISSET_ISEMPTY_CV                                 ~1      !0
          2        BOOL_NOT                                         ~2      ~1
          3      > JMPZ_EX                                          ~2      ~2, ->6
          4    >   TYPE_CHECK                                   64  ~3      !0
          5        BOOL                                             ~2      ~3
          6    > > RETURN                                                   ~2
    7     7*     > RETURN                                                   null

End of function isnonemptystring

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.84 ms | 1397 KiB | 16 Q