3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo class_exists('PDO') && in_array('setFetchMode', get_class_methods('PDO')) ? 'Yes' : 'No';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/f0jd4
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'class_exists'
          1        SEND_VAL                                                 'PDO'
          2        DO_ICALL                                         $0      
          3      > JMPZ_EX                                          ~1      $0, ->12
          4    >   INIT_FCALL                                               'in_array'
          5        SEND_VAL                                                 'setFetchMode'
          6        INIT_FCALL                                               'get_class_methods'
          7        SEND_VAL                                                 'PDO'
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                         $3      
         11        BOOL                                             ~1      $3
         12    > > JMPZ                                                     ~1, ->15
         13    >   QM_ASSIGN                                        ~4      'Yes'
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~4      'No'
         16    >   ECHO                                                     ~4
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.05 ms | 1395 KiB | 19 Q