3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '23bc'; $b = ''; $c = '123'; $d = null; echo ( !strlen($a) || ctype_digit($a) )? "Good to Go\n" : "Bad to Go\n"; echo ( !strlen($b) || ctype_digit($b) )? "Good to Go\n" : "Bad to Go\n"; echo ( !strlen($c) || ctype_digit($c) )? "Good to Go\n" : "Bad to Go\n"; echo ( !strlen($d) || ctype_digit($c) )? "Good to Go\n" : "Bad to Go\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 47) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 47) Position 1 = 31, Position 2 = 35
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 38
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 47) Position 1 = 43, Position 2 = 47
Branch analysis from position: 43
2 jumps found. (Code = 43) Position 1 = 48, Position 2 = 50
Branch analysis from position: 48
1 jumps found. (Code = 42) Position 1 = 51
Branch analysis from position: 51
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 50
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 47
Branch analysis from position: 38
2 jumps found. (Code = 47) Position 1 = 43, Position 2 = 47
Branch analysis from position: 43
Branch analysis from position: 47
Branch analysis from position: 35
Branch analysis from position: 26
2 jumps found. (Code = 47) Position 1 = 31, Position 2 = 35
Branch analysis from position: 31
Branch analysis from position: 35
Branch analysis from position: 23
Branch analysis from position: 14
2 jumps found. (Code = 47) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
Branch analysis from position: 23
Branch analysis from position: 11
filename:       /in/7cfV0
function name:  (null)
number of ops:  53
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '23bc'
    3     1        ASSIGN                                                   !1, ''
    4     2        ASSIGN                                                   !2, '123'
    5     3        ASSIGN                                                   !3, null
    7     4        STRLEN                                           ~8      !0
          5        BOOL_NOT                                         ~9      ~8
          6      > JMPNZ_EX                                         ~9      ~9, ->11
          7    >   INIT_FCALL                                               'ctype_digit'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $10     
         10        BOOL                                             ~9      $10
         11    > > JMPZ                                                     ~9, ->14
         12    >   QM_ASSIGN                                        ~11     'Good+to+Go%0A'
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~11     'Bad+to+Go%0A'
         15    >   ECHO                                                     ~11
    8    16        STRLEN                                           ~12     !1
         17        BOOL_NOT                                         ~13     ~12
         18      > JMPNZ_EX                                         ~13     ~13, ->23
         19    >   INIT_FCALL                                               'ctype_digit'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $14     
         22        BOOL                                             ~13     $14
         23    > > JMPZ                                                     ~13, ->26
         24    >   QM_ASSIGN                                        ~15     'Good+to+Go%0A'
         25      > JMP                                                      ->27
         26    >   QM_ASSIGN                                        ~15     'Bad+to+Go%0A'
         27    >   ECHO                                                     ~15
    9    28        STRLEN                                           ~16     !2
         29        BOOL_NOT                                         ~17     ~16
         30      > JMPNZ_EX                                         ~17     ~17, ->35
         31    >   INIT_FCALL                                               'ctype_digit'
         32        SEND_VAR                                                 !2
         33        DO_ICALL                                         $18     
         34        BOOL                                             ~17     $18
         35    > > JMPZ                                                     ~17, ->38
         36    >   QM_ASSIGN                                        ~19     'Good+to+Go%0A'
         37      > JMP                                                      ->39
         38    >   QM_ASSIGN                                        ~19     'Bad+to+Go%0A'
         39    >   ECHO                                                     ~19
   10    40        STRLEN                                           ~20     !3
         41        BOOL_NOT                                         ~21     ~20
         42      > JMPNZ_EX                                         ~21     ~21, ->47
         43    >   INIT_FCALL                                               'ctype_digit'
         44        SEND_VAR                                                 !2
         45        DO_ICALL                                         $22     
         46        BOOL                                             ~21     $22
         47    > > JMPZ                                                     ~21, ->50
         48    >   QM_ASSIGN                                        ~23     'Good+to+Go%0A'
         49      > JMP                                                      ->51
         50    >   QM_ASSIGN                                        ~23     'Bad+to+Go%0A'
         51    >   ECHO                                                     ~23
         52      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
126.66 ms | 1405 KiB | 15 Q