3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (class_exists('Phar') === true) { var_dump(Phar::running(false)); } else { echo "NO PHAR"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m6rJN
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'class_exists'
          1        SEND_VAL                                                 'Phar'
          2        DO_ICALL                                         $0      
          3        TYPE_CHECK                                    8          $0
          4      > JMPZ                                                     ~1, ->12
    3     5    >   INIT_FCALL                                               'var_dump'
          6        INIT_STATIC_METHOD_CALL                                  'Phar', 'running'
          7        SEND_VAL                                                 <false>
          8        DO_FCALL                                      0  $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                                 
         11      > JMP                                                      ->13
    5    12    >   ECHO                                                     'NO+PHAR'
    6    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.58 ms | 1394 KiB | 17 Q