3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = "1234kjhgkdfkgjh"; $result = ctype_digit(substr($str, 0, 2)); var_dump($result); $str2 = ".1234kjhgkdfkgjh"; $result = ctype_digit(substr($str2, 0, 2)); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C33ui
function name:  (null)
number of ops:  21
compiled vars:  !0 = $str, !1 = $result, !2 = $str2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '1234kjhgkdfkgjh'
    5     1        INIT_FCALL                                                   'ctype_digit'
          2        FRAMELESS_ICALL_3                substr              ~4      !0, 0
          3        OP_DATA                                                      2
          4        SEND_VAL                                                     ~4
          5        DO_ICALL                                             $5      
          6        ASSIGN                                                       !1, $5
    6     7        INIT_FCALL                                                   'var_dump'
          8        SEND_VAR                                                     !1
          9        DO_ICALL                                                     
    8    10        ASSIGN                                                       !2, '.1234kjhgkdfkgjh'
   10    11        INIT_FCALL                                                   'ctype_digit'
         12        FRAMELESS_ICALL_3                substr              ~9      !2, 0
         13        OP_DATA                                                      2
         14        SEND_VAL                                                     ~9
         15        DO_ICALL                                             $10     
         16        ASSIGN                                                       !1, $10
   11    17        INIT_FCALL                                                   'var_dump'
         18        SEND_VAR                                                     !1
         19        DO_ICALL                                                     
         20      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.9 ms | 3300 KiB | 15 Q