3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = '-12345'; $x = (! is_object($value) && (string)(int)$value === (string)$value && $value >= 0); var_dump($x);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Branch analysis from position: 9
filename:       /in/3nkXT
function name:  (null)
number of ops:  17
compiled vars:  !0 = $value, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '-12345'
    5     1        TYPE_CHECK                                  256  ~3      !0
          2        BOOL_NOT                                         ~4      ~3
          3      > JMPZ_EX                                          ~4      ~4, ->9
          4    >   CAST                                          4  ~5      !0
          5        CAST                                          6  ~6      ~5
          6        CAST                                          6  ~7      !0
          7        IS_IDENTICAL                                     ~8      ~6, ~7
          8        BOOL                                             ~4      ~8
          9    > > JMPZ_EX                                          ~4      ~4, ->12
         10    >   IS_SMALLER_OR_EQUAL                              ~9      0, !0
         11        BOOL                                             ~4      ~9
         12    >   ASSIGN                                                   !1, ~4
    8    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.18 ms | 1394 KiB | 15 Q