3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (defined('PHP_VERSION_ID') && is_int(PHP_VERSION_ID) && PHP_VERSION_ID > 1000) { echo 'ok'; } else { var_dump(PHP_VERSION_ID); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/ifWRP
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   TYPE_CHECK                                   16  ~0      80300
          1        BOOL                                             ~1      ~0
          2      > JMPZ_EX                                          ~1      ~1, ->4
          3    >   BOOL                                             ~1      <true>
          4    > > JMPZ                                                     ~1, ->7
    4     5    >   ECHO                                                     'ok'
    3     6      > JMP                                                      ->10
    6     7    >   INIT_FCALL                                               'var_dump'
          8        SEND_VAL                                                 80300
          9        DO_ICALL                                                 
    7    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.04 ms | 1004 KiB | 14 Q