3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(is_int(42)); var_dump(is_int((int) '42')); var_dump(is_int((int) 'foo')); var_dump(is_int((int) array()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DEXst
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        TYPE_CHECK                                   16  ~0      42
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'var_dump'
          5        CAST                                          4  ~2      '42'
          6        TYPE_CHECK                                   16  ~3      ~2
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'var_dump'
         10        CAST                                          4  ~5      'foo'
         11        TYPE_CHECK                                   16  ~6      ~5
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                                 
    6    14        INIT_FCALL                                               'var_dump'
         15        CAST                                          4  ~8      <array>
         16        TYPE_CHECK                                   16  ~9      ~8
         17        SEND_VAL                                                 ~9
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.95 ms | 1394 KiB | 15 Q