3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(is_int('1')); var_dump(!!filter_var($num, FILTER_VALIDATE_INT));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FP5E7
function name:  (null)
number of ops:  14
compiled vars:  !0 = $num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        TYPE_CHECK                                   16  ~1      '1'
          2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'filter_var'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 257
          8        DO_ICALL                                         $3      
          9        BOOL_NOT                                         ~4      $3
         10        BOOL_NOT                                         ~5      ~4
         11        SEND_VAL                                                 ~5
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.06 ms | 1385 KiB | 17 Q