3v4l.org

run code in 500+ PHP versions simultaneously
<?php $id = filter_var(new stdClass, FILTER_VALIDATE_INT, [ 'flags' => FILTER_NULL_ON_FAILURE ]); var_dump($id);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qEUtH
function name:  (null)
number of ops:  12
compiled vars:  !0 = $id
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'filter_var'
          1        NEW                                                  $1      'stdClass'
          2        DO_FCALL                                          0          
          3        SEND_VAR                                                     $1
          4        SEND_VAL                                                     257
    4     5        SEND_VAL                                                     <array>
    3     6        DO_ICALL                                             $3      
          7        ASSIGN                                                       !0, $3
    6     8        INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !0
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
205.69 ms | 2298 KiB | 15 Q