3v4l.org

run code in 300+ PHP versions simultaneously
<?php // determine whether to use OpenSSL if (defined('PHP_WINDOWS_VERSION_BUILD') && version_compare(PHP_VERSION, '5.3.4', '<')) { var_dump(1); } elseif (!function_exists('openssl_random_pseudo_bytes')) { if (null !== $this->logger) { var_dump(2); } var_dump(3); } else { var_dump(4); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 2, Position 2 = 8
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 29
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 25
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
Branch analysis from position: 25
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/KYvC2
function name:  (null)
number of ops:  33
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DEFINED                                          ~0      'PHP_WINDOWS_VERSION_BUILD'
          1      > JMPZ_EX                                          ~0      ~0, ->8
          2    >   INIT_FCALL                                               'version_compare'
          3        SEND_VAL                                                 '8.0.0'
          4        SEND_VAL                                                 '5.3.4'
          5        SEND_VAL                                                 '%3C'
          6        DO_ICALL                                         $1      
          7        BOOL                                             ~0      $1
          8    > > JMPZ                                                     ~0, ->13
    5     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAL                                                 1
         11        DO_ICALL                                                 
         12      > JMP                                                      ->32
    6    13    >   INIT_FCALL                                               'function_exists'
         14        SEND_VAL                                                 'openssl_random_pseudo_bytes'
         15        DO_ICALL                                         $3      
         16        BOOL_NOT                                         ~4      $3
         17      > JMPZ                                                     ~4, ->29
    7    18    >   FETCH_THIS                                       $5      
         19        FETCH_OBJ_R                                      ~6      $5, 'logger'
         20        TYPE_CHECK                                  1020          ~6
         21      > JMPZ                                                     ~7, ->25
    8    22    >   INIT_FCALL                                               'var_dump'
         23        SEND_VAL                                                 2
         24        DO_ICALL                                                 
   10    25    >   INIT_FCALL                                               'var_dump'
         26        SEND_VAL                                                 3
         27        DO_ICALL                                                 
         28      > JMP                                                      ->32
   12    29    >   INIT_FCALL                                               'var_dump'
         30        SEND_VAL                                                 4
         31        DO_ICALL                                                 
   13    32    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.02 ms | 1396 KiB | 19 Q