3v4l.org

run code in 300+ PHP versions simultaneously
<?php function check_successCode($code) { if (ctype_digit($code) && ((int) $code == 0)) { return true; } return false; } var_dump(check_successCode(0));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HDVKG
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'check_successcode'
          2        SEND_VAL                                                 0
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function check_successcode:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/HDVKG
function name:  check_successCode
number of ops:  12
compiled vars:  !0 = $code
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'ctype_digit'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4      > JMPZ_EX                                          ~2      $1, ->8
          5    >   CAST                                          4  ~3      !0
          6        IS_EQUAL                                         ~4      ~3, 0
          7        BOOL                                             ~2      ~4
          8    > > JMPZ                                                     ~2, ->10
    6     9    > > RETURN                                                   <true>
    8    10    > > RETURN                                                   <false>
    9    11*     > RETURN                                                   null

End of function check_successcode

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.86 ms | 1402 KiB | 18 Q