3v4l.org

run code in 500+ PHP versions simultaneously
<?php foreach(['-1', '0', '1', '1e10', 'a', 'hello', 1, -1, 0, true, false, 1.0, 0.0, 1.3] as $s) { var_dump($s); var_dump(ctype_digit($s)); $arr[$s] = 1; var_dump(array_key_first($arr)); echo "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 21
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 21
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/vo6gg
function name:  (null)
number of ops:  23
compiled vars:  !0 = $s, !1 = $arr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E > > FE_RESET_R                                           $2      <array>, ->21
          1    > > FE_FETCH_R                                                   $2, !0, ->21
    4     2    >   INIT_FCALL                                                   'var_dump'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                                     
    6     5        INIT_FCALL                                                   'var_dump'
          6        INIT_FCALL                                                   'ctype_digit'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                             $4      
          9        SEND_VAR                                                     $4
         10        DO_ICALL                                                     
    8    11        ASSIGN_DIM                                                   !1, !0
         12        OP_DATA                                                      1
    9    13        INIT_FCALL                                                   'var_dump'
         14        INIT_FCALL                                                   'array_key_first'
         15        SEND_VAR                                                     !1
         16        DO_ICALL                                             $7      
         17        SEND_VAR                                                     $7
         18        DO_ICALL                                                     
   11    19        ECHO                                                         '%0A'
    3    20      > JMP                                                          ->1
         21    >   FE_FREE                                                      $2
   12    22      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.77 ms | 3624 KiB | 16 Q