3v4l.org

run code in 300+ PHP versions simultaneously
<?php $inputs = [ '42', '-42', 42, -42, 42.2, -42.2, 'pi', ]; foreach ($inputs as $input) { var_dump($input == (int) $input && is_numeric($input)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 14
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 11
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/P1Lml
function name:  (null)
number of ops:  16
compiled vars:  !0 = $inputs, !1 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1      > FE_RESET_R                                       $3      !0, ->14
          2    > > FE_FETCH_R                                               $3, !1, ->14
   13     3    >   INIT_FCALL                                               'var_dump'
          4        CAST                                          4  ~4      !1
          5        IS_EQUAL                                         ~5      !1, ~4
          6      > JMPZ_EX                                          ~5      ~5, ->11
          7    >   INIT_FCALL                                               'is_numeric'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $6      
         10        BOOL                                             ~5      $6
         11    >   SEND_VAL                                                 ~5
         12        DO_ICALL                                                 
   12    13      > JMP                                                      ->2
         14    >   FE_FREE                                                  $3
   14    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182 ms | 1395 KiB | 17 Q