3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v = 1458; if (is_scalar($v)) { var_dump('scalar', (0 !== strlen($v))); } if (is_array($v)) { var_dump('array', (0 !== count($v))); } var_dump('false');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 9
filename:       /in/BtmID
function name:  (null)
number of ops:  21
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1458
    3     1        TYPE_CHECK                                  124          !0
          2      > JMPZ                                                     ~2, ->9
    4     3    >   INIT_FCALL                                               'var_dump'
          4        SEND_VAL                                                 'scalar'
          5        STRLEN                                           ~3      !0
          6        IS_NOT_IDENTICAL                                 ~4      ~3, 0
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                                 
    6     9    >   TYPE_CHECK                                  128          !0
         10      > JMPZ                                                     ~6, ->17
    7    11    >   INIT_FCALL                                               'var_dump'
         12        SEND_VAL                                                 'array'
         13        COUNT                                            ~7      !0
         14        IS_NOT_IDENTICAL                                 ~8      ~7, 0
         15        SEND_VAL                                                 ~8
         16        DO_ICALL                                                 
    9    17    >   INIT_FCALL                                               'var_dump'
         18        SEND_VAL                                                 'false'
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.11 ms | 1386 KiB | 15 Q