3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value='1392387900'; var_dump(ctype_digit($value)); var_dump(new \DateTime('@' .$value)); $value=1092387900; var_dump(ctype_digit($value)); var_dump(new \DateTime('@' .$value)); for($i=0;$i<100;$i++){ if(ctype_digit($i)){ echo $i;break; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 30
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 36
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 30
Branch analysis from position: 39
Branch analysis from position: 30
filename:       /in/JJRqC
function name:  (null)
number of ops:  40
compiled vars:  !0 = $value, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1392387900'
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'ctype_digit'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'var_dump'
          8        NEW                                              $5      'DateTime'
          9        CONCAT                                           ~6      '%40', !0
         10        SEND_VAL_EX                                              ~6
         11        DO_FCALL                                      0          
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                                 
    5    14        ASSIGN                                                   !0, 1092387900
    6    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'ctype_digit'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $10     
         19        SEND_VAR                                                 $10
         20        DO_ICALL                                                 
    7    21        INIT_FCALL                                               'var_dump'
         22        NEW                                              $12     'DateTime'
         23        CONCAT                                           ~13     '%40', !0
         24        SEND_VAL_EX                                              ~13
         25        DO_FCALL                                      0          
         26        SEND_VAR                                                 $12
         27        DO_ICALL                                                 
    8    28        ASSIGN                                                   !1, 0
         29      > JMP                                                      ->37
    9    30    >   INIT_FCALL                                               'ctype_digit'
         31        SEND_VAR                                                 !1
         32        DO_ICALL                                         $17     
         33      > JMPZ                                                     $17, ->36
   10    34    >   ECHO                                                     !1
         35      > JMP                                                      ->39
    8    36    >   PRE_INC                                                  !1
         37    >   IS_SMALLER                                               !1, 100
         38      > JMPNZ                                                    ~19, ->30
   12    39    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.43 ms | 1405 KiB | 17 Q