3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allowed = true; if (version_compare('1.7.02', '1.7', '>=')) { if (true) { $allowed = false; } } echo $allowed;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
Branch analysis from position: 9
filename:       /in/DcFC5
function name:  (null)
number of ops:  11
compiled vars:  !0 = $allowed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <true>
    3     1        INIT_FCALL                                               'version_compare'
          2        SEND_VAL                                                 '1.7.02'
          3        SEND_VAL                                                 '1.7'
          4        SEND_VAL                                                 '%3E%3D'
          5        DO_ICALL                                         $2      
          6      > JMPZ                                                     $2, ->9
    4     7    > > JMPZ                                                     <true>, ->9
    5     8    >   ASSIGN                                                   !0, <false>
    8     9    >   ECHO                                                     !0
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.38 ms | 1398 KiB | 15 Q