3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = "r3"; var_dump(is_numeric($var)); var_dump($var+0); if ( strval($var) != strval(intval($var)) ) { echo "Your variable is not an integer"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/I91bt
function name:  (null)
number of ops:  18
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'r3'
    4     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                                                 
    5     7        INIT_FCALL                                               'var_dump'
          8        ADD                                              ~4      !0, 0
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                                 
    7    11        CAST                                          6  ~6      !0
         12        CAST                                          4  ~7      !0
         13        CAST                                          6  ~8      ~7
         14        IS_NOT_EQUAL                                             ~6, ~8
         15      > JMPZ                                                     ~9, ->17
    8    16    >   ECHO                                                     'Your+variable+is+not+an+integer'
   11    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.12 ms | 1398 KiB | 17 Q