3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type:text/plain'); defined("PHP_EOL") ?: define("PHP_EOL","\n"); // Trick PHP and force convertion $_POST['loginserver'] = 500; if ($_POST['loginserver'] == 'login'){ echo "Type conversion bug", PHP_EOL; // This should not print } else{ echo "Ok", PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 20
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QgavD
function name:  (null)
number of ops:  23
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-Type%3Atext%2Fplain'
          2        DO_ICALL                                                 
    4     3        JMP_SET                                          ~1      <true>, ->9
          4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'PHP_EOL'
          6        SEND_VAL                                                 '%0A'
          7        DO_ICALL                                         $2      
          8        QM_ASSIGN                                        ~1      $2
          9        FREE                                                     ~1
    7    10        FETCH_W                      global              $3      '_POST'
         11        ASSIGN_DIM                                               $3, 'loginserver'
         12        OP_DATA                                                  500
    9    13        FETCH_R                      global              ~5      '_POST'
         14        FETCH_DIM_R                                      ~6      ~5, 'loginserver'
         15        IS_EQUAL                                                 ~6, 'login'
         16      > JMPZ                                                     ~7, ->20
   10    17    >   ECHO                                                     'Type+conversion+bug'
         18        ECHO                                                     '%0A'
         19      > JMP                                                      ->22
   12    20    >   ECHO                                                     'Ok'
         21        ECHO                                                     '%0A'
   13    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.63 ms | 1395 KiB | 17 Q