3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.03 ms | 1385 KiB | 17 Q