3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Source: https://bugs.php.net/bug.php?id=70237 ini_set('opcache.enable_cli', true); if ((int) ini_get('opcache.enable_cli') !== 1) { throw new Exception('Opcode cache must be enabled on CLI environment'); } function neverUsed() { $bool = false; while ($bool) { }; // Same with: do { } while ($bool); } echo "OK";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sJa3q
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'opcache.enable_cli'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
    6     4        INIT_FCALL                                               'ini_get'
          5        SEND_VAL                                                 'opcache.enable_cli'
          6        DO_ICALL                                         $1      
          7        CAST                                          4  ~2      $1
          8        IS_NOT_IDENTICAL                                         ~2, 1
          9      > JMPZ                                                     ~3, ->14
    7    10    >   NEW                                              $4      'Exception'
         11        SEND_VAL_EX                                              'Opcode+cache+must+be+enabled+on+CLI+environment'
         12        DO_FCALL                                      0          
         13      > THROW                                         0          $4
   16    14    >   ECHO                                                     'OK'
         15      > RETURN                                                   1

Function neverused:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 3, Position 2 = 2
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
filename:       /in/sJa3q
function name:  neverUsed
number of ops:  4
compiled vars:  !0 = $bool
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, <false>
   12     1      > JMP                                                      ->2
          2    > > JMPNZ                                                    !0, ->2
   14     3    > > RETURN                                                   null

End of function neverused

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.34 ms | 1395 KiB | 17 Q