3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pass = '@password'; if ('@' === (string)$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 = 5, Position 2 = 11
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 11
filename:       /in/icPgd
function name:  (null)
number of ops:  14
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        CAST                                          6  ~3      ~2
          3        IS_IDENTICAL                                     ~4      ~3, '%40'
          4      > JMPNZ_EX                                         ~4      ~4, ->11
          5    >   INIT_FCALL                                               'version_compare'
          6        SEND_VAL                                                 '8.0.0'
          7        SEND_VAL                                                 '5.2.0'
          8        DO_ICALL                                         $5      
          9        IS_SMALLER                                       ~6      $5, 0
         10        BOOL                                             ~4      ~6
         11    > > JMPZ                                                     ~4, ->13
    4    12    >   ECHO                                                     'true'
    5    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.74 ms | 1394 KiB | 15 Q