3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pass = '@password'; if ('@' === $pass[0] || version_compare(PHP_VERSION, '5.2.0') < 0) { echo 'true'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Branch analysis from position: 10
filename:       /in/NBD5S
function name:  (null)
number of ops:  13
compiled vars:  !0 = $pass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%40password'
    3     1        FETCH_DIM_R                                      ~2      !0, 0
          2        IS_IDENTICAL                                     ~3      ~2, '%40'
          3      > JMPNZ_EX                                         ~3      ~3, ->10
          4    >   INIT_FCALL                                               'version_compare'
          5        SEND_VAL                                                 '8.0.0'
          6        SEND_VAL                                                 '5.2.0'
          7        DO_ICALL                                         $4      
          8        IS_SMALLER                                       ~5      $4, 0
          9        BOOL                                             ~3      ~5
         10    > > JMPZ                                                     ~3, ->12
    4    11    >   ECHO                                                     'true'
    5    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.77 ms | 1394 KiB | 15 Q