3v4l.org

run code in 300+ 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:  27
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        INIT_FCALL                                               'substr'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 2
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    6    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
    8    13        ASSIGN                                                   !2, '.1234kjhgkdfkgjh'
   10    14        INIT_FCALL                                               'ctype_digit'
         15        INIT_FCALL                                               'substr'
         16        SEND_VAR                                                 !2
         17        SEND_VAL                                                 0
         18        SEND_VAL                                                 2
         19        DO_ICALL                                         $9      
         20        SEND_VAR                                                 $9
         21        DO_ICALL                                         $10     
         22        ASSIGN                                                   !1, $10
   11    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !1
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.72 ms | 1002 KiB | 16 Q