3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!function_exists('interface_exists')) { die('Days long-since passed.'); } if (interface_exists('Throwable')) { foreach (get_declared_classes() as $cn) { $implements = class_implements($cn); if (isset($implements['Throwable'])) { echo sprintf("Ah yes, the infamous Throwable, '%s'.", $cn); die(); } } echo "We have only heard legends of this so-called 'Throwable'"; } else { echo "What is a 'Throwable'?"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 30
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 27
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 27
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 26
Branch analysis from position: 20
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uCbXG
function name:  (null)
number of ops:  32
compiled vars:  !0 = $cn, !1 = $implements
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'interface_exists'
          2        DO_ICALL                                         $2      
          3        BOOL_NOT                                         ~3      $2
          4      > JMPZ                                                     ~3, ->6
    4     5    > > EXIT                                                     'Days+long-since+passed.'
    7     6    >   INIT_FCALL                                               'interface_exists'
          7        SEND_VAL                                                 'Throwable'
          8        DO_ICALL                                         $4      
          9      > JMPZ                                                     $4, ->30
    8    10    >   INIT_FCALL                                               'get_declared_classes'
         11        DO_ICALL                                         $5      
         12      > FE_RESET_R                                       $6      $5, ->27
         13    > > FE_FETCH_R                                               $6, !0, ->27
    9    14    >   INIT_FCALL                                               'class_implements'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $7      
         17        ASSIGN                                                   !1, $7
   10    18        ISSET_ISEMPTY_DIM_OBJ                         0          !1, 'Throwable'
         19      > JMPZ                                                     ~9, ->26
   11    20    >   INIT_FCALL                                               'sprintf'
         21        SEND_VAL                                                 'Ah+yes%2C+the+infamous+Throwable%2C+%27%25s%27.'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $10     
         24        ECHO                                                     $10
   12    25      > EXIT                                                     
    8    26    > > JMP                                                      ->13
         27    >   FE_FREE                                                  $6
   15    28        ECHO                                                     'We+have+only+heard+legends+of+this+so-called+%27Throwable%27'
         29      > JMP                                                      ->31
   17    30    >   ECHO                                                     'What+is+a+%27Throwable%27%3F'
   18    31    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.11 ms | 1400 KiB | 23 Q