3v4l.org

run code in 300+ PHP versions simultaneously
<?php $refundDelays = ['66', 66, '0', 0, '', null, false, 'caca maca', ' ', '1.e2']; foreach($refundDelays as $value) { $b = ctype_digit($value); $c = is_int($value) || ctype_digit($value); var_dump($value); var_dump($b); var_dump($c); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 24
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 24
Branch analysis from position: 3
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 13
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/iCjss
function name:  (null)
number of ops:  26
compiled vars:  !0 = $refundDelays, !1 = $value, !2 = $b, !3 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_R                                       $5      !0, ->24
          2    > > FE_FETCH_R                                               $5, !1, ->24
    5     3    >   INIT_FCALL                                               'ctype_digit'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
    6     7        TYPE_CHECK                                   16  ~8      !1
          8      > JMPNZ_EX                                         ~8      ~8, ->13
          9    >   INIT_FCALL                                               'ctype_digit'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $9      
         12        BOOL                                             ~8      $9
         13    >   ASSIGN                                                   !3, ~8
    7    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
    8    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                                 
    9    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                                 
    4    23      > JMP                                                      ->2
         24    >   FE_FREE                                                  $5
   10    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.9 ms | 1395 KiB | 17 Q