3v4l.org

run code in 300+ PHP versions simultaneously
<?php $val = null; var_dump(is_numeric($val)); if (!is_numeric($val) && !is_null($val)) { //var_dump('douda'); } else { //var_dump('dodo'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 15
filename:       /in/5WR2n
function name:  (null)
number of ops:  18
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'is_numeric'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'is_numeric'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        BOOL_NOT                                         ~5      $4
         11      > JMPZ_EX                                          ~5      ~5, ->15
         12    >   TYPE_CHECK                                    2  ~6      !0
         13        BOOL_NOT                                         ~7      ~6
         14        BOOL                                             ~5      ~7
         15    > > JMPZ                                                     ~5, ->17
         16    > > JMP                                                      ->17
   11    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.22 ms | 1395 KiB | 17 Q