3v4l.org

run code in 500+ PHP versions simultaneously
<?php $int_a = '1'; $int_b = '-1'; $int_c = '4'; $options = array( 'options' => array( 'min_range' => 0, 'max_range' => 3, ) ); if (filter_var($int_a, FILTER_VALIDATE_INT, $options) !== FALSE) { echo "Число (int_a) является верным (от 0 до 3).\n"; } if (filter_var($int_b, FILTER_VALIDATE_INT, $options) !== FALSE) { echo "Число (int_b) является верным (от 0 до 3).\n"; } if (filter_var($int_c, FILTER_VALIDATE_INT, $options) !== FALSE) { echo "Число (int_c) является верным (от 0 до 3).\n"; } $options['options']['default'] = 1; if (($int_c = filter_var($int_c, FILTER_VALIDATE_INT, $options)) !== FALSE) { echo "Число (int_c) является верным (от 0 и 3) и равно $int_c."; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 28
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 43
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
Branch analysis from position: 28
Branch analysis from position: 20
Branch analysis from position: 12
filename:       /in/QDmQe
function name:  (null)
number of ops:  44
compiled vars:  !0 = $int_a, !1 = $int_b, !2 = $int_c, !3 = $options
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '1'
    4     1        ASSIGN                                                       !1, '-1'
    5     2        ASSIGN                                                       !2, '4'
    6     3        ASSIGN                                                       !3, <array>
   12     4        INIT_FCALL                                                   'filter_var'
          5        SEND_VAR                                                     !0
          6        SEND_VAL                                                     257
          7        SEND_VAR                                                     !3
          8        DO_ICALL                                             $8      
          9        TYPE_CHECK                                      1018          $8
         10      > JMPZ                                                         ~9, ->12
   13    11    >   ECHO                                                         '%D0%A7%D0%B8%D1%81%D0%BB%D0%BE+%28int_a%29+%D1%8F%D0%B2%D0%BB%D1%8F%D0%B5%D1%82%D1%81%D1%8F+%D0%B2%D0%B5%D1%80%D0%BD%D1%8B%D0%BC+%28%D0%BE%D1%82+0+%D0%B4%D0%BE+3%29.%0A'
   15    12    >   INIT_FCALL                                                   'filter_var'
         13        SEND_VAR                                                     !1
         14        SEND_VAL                                                     257
         15        SEND_VAR                                                     !3
         16        DO_ICALL                                             $10     
         17        TYPE_CHECK                                      1018          $10
         18      > JMPZ                                                         ~11, ->20
   16    19    >   ECHO                                                         '%D0%A7%D0%B8%D1%81%D0%BB%D0%BE+%28int_b%29+%D1%8F%D0%B2%D0%BB%D1%8F%D0%B5%D1%82%D1%81%D1%8F+%D0%B2%D0%B5%D1%80%D0%BD%D1%8B%D0%BC+%28%D0%BE%D1%82+0+%D0%B4%D0%BE+3%29.%0A'
   18    20    >   INIT_FCALL                                                   'filter_var'
         21        SEND_VAR                                                     !2
         22        SEND_VAL                                                     257
         23        SEND_VAR                                                     !3
         24        DO_ICALL                                             $12     
         25        TYPE_CHECK                                      1018          $12
         26      > JMPZ                                                         ~13, ->28
   19    27    >   ECHO                                                         '%D0%A7%D0%B8%D1%81%D0%BB%D0%BE+%28int_c%29+%D1%8F%D0%B2%D0%BB%D1%8F%D0%B5%D1%82%D1%81%D1%8F+%D0%B2%D0%B5%D1%80%D0%BD%D1%8B%D0%BC+%28%D0%BE%D1%82+0+%D0%B4%D0%BE+3%29.%0A'
   22    28    >   FETCH_DIM_W                                          $14     !3, 'options'
         29        ASSIGN_DIM                                                   $14, 'default'
         30        OP_DATA                                                      1
   23    31        INIT_FCALL                                                   'filter_var'
         32        SEND_VAR                                                     !2
         33        SEND_VAL                                                     257
         34        SEND_VAR                                                     !3
         35        DO_ICALL                                             $16     
         36        ASSIGN                                               ~17     !2, $16
         37        TYPE_CHECK                                      1018          ~17
         38      > JMPZ                                                         ~18, ->43
   24    39    >   ROPE_INIT                                         3  ~20     '%D0%A7%D0%B8%D1%81%D0%BB%D0%BE+%28int_c%29+%D1%8F%D0%B2%D0%BB%D1%8F%D0%B5%D1%82%D1%81%D1%8F+%D0%B2%D0%B5%D1%80%D0%BD%D1%8B%D0%BC+%28%D0%BE%D1%82+0+%D0%B8+3%29+%D0%B8+%D1%80%D0%B0%D0%B2%D0%BD%D0%BE+'
         40        ROPE_ADD                                          1  ~20     ~20, !2
         41        ROPE_END                                          2  ~19     ~20, '.'
         42        ECHO                                                         ~19
   25    43    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.42 ms | 482 KiB | 8 Q