3v4l.org

run code in 300+ PHP versions simultaneously
<?php $min = PHP_INT_MAX + 1; if ( (is_float($min) && $min >= PHP_INT_MAX && $min <= PHP_INT_MAX) || (is_string($min) && preg_match('#^\-?[0-9]+$#', $min)) ) { print "is float or string"; $min = (int) $min; } var_dump($min);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 16
Branch analysis from position: 17
Branch analysis from position: 8
Branch analysis from position: 5
filename:       /in/6405U
function name:  (null)
number of ops:  25
compiled vars:  !0 = $min
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 9.22337e+18
    5     1        TYPE_CHECK                                   32  ~2      !0
          2      > JMPZ_EX                                          ~2      ~2, ->5
          3    >   IS_SMALLER_OR_EQUAL                              ~3      9223372036854775807, !0
          4        BOOL                                             ~2      ~3
          5    > > JMPZ_EX                                          ~2      ~2, ->8
          6    >   IS_SMALLER_OR_EQUAL                              ~4      !0, 9223372036854775807
          7        BOOL                                             ~2      ~4
          8    > > JMPNZ_EX                                         ~2      ~2, ->17
    6     9    >   TYPE_CHECK                                   64  ~5      !0
         10      > JMPZ_EX                                          ~5      ~5, ->16
         11    >   INIT_FCALL                                               'preg_match'
         12        SEND_VAL                                                 '%23%5E%5C-%3F%5B0-9%5D%2B%24%23'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $6      
         15        BOOL                                             ~5      $6
         16    >   BOOL                                             ~2      ~5
         17    > > JMPZ                                                     ~2, ->21
    8    18    >   ECHO                                                     'is+float+or+string'
    9    19        CAST                                          4  ~7      !0
         20        ASSIGN                                                   !0, ~7
   11    21    >   INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.43 ms | 1396 KiB | 17 Q