3v4l.org

run code in 300+ PHP versions simultaneously
<?php $features = array( 'Core' => 'Core module', 'XML' => 'XML module', 'HTML' => 'HTML module', 'Views' => 'Views module', 'Stylesheets' => 'Style Sheets module', 'CSS' => 'CSS module', 'CSS2' => 'CSS2 module', 'Events' => 'Events module', 'UIEvents' => 'User interface Events module', 'MouseEvents' => 'Mouse Events module', 'MutationEvents' => 'Mutation Events module', 'HTMLEvents' => 'HTML Events module', 'Range' => 'Range module', 'Traversal' => 'Traversal module' ); foreach ($features as $key => $name) { if (DOMImplementation::hasFeature($key, '2.0')) { echo "Has feature $name\n"; } else { echo "Missing feature $name\n"; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 19
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 19
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/aA2Qd
function name:  (null)
number of ops:  21
compiled vars:  !0 = $features, !1 = $name, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   20     1      > FE_RESET_R                                       $4      !0, ->19
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->19
          3    >   ASSIGN                                                   !2, ~5
   21     4        INIT_STATIC_METHOD_CALL                                  'DOMImplementation', 'hasFeature'
          5        SEND_VAR                                                 !2
          6        SEND_VAL                                                 '2.0'
          7        DO_FCALL                                      0  $7      
          8      > JMPZ                                                     $7, ->14
   22     9    >   ROPE_INIT                                     3  ~9      'Has+feature+'
         10        ROPE_ADD                                      1  ~9      ~9, !1
         11        ROPE_END                                      2  ~8      ~9, '%0A'
         12        ECHO                                                     ~8
         13      > JMP                                                      ->18
   24    14    >   ROPE_INIT                                     3  ~12     'Missing+feature+'
         15        ROPE_ADD                                      1  ~12     ~12, !1
         16        ROPE_END                                      2  ~11     ~12, '%0A'
         17        ECHO                                                     ~11
   20    18    > > JMP                                                      ->2
         19    >   FE_FREE                                                  $4
   28    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.88 ms | 1394 KiB | 13 Q