3v4l.org

run code in 300+ PHP versions simultaneously
<?php # # Things should work even if register_globals is set to off # $testVer=intval(str_replace(".", "",'4.1.0')); $curVer=intval(str_replace(".", "",phpversion())); if( $curVer >= $testVer ) import_request_variables('GPC'); @header('Content-type: text/html; charset='.$config[general_charset].';'); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/n7ib2
function name:  (null)
number of ops:  31
compiled vars:  !0 = $testVer, !1 = $curVer, !2 = $config
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'str_replace'
          1        SEND_VAL                                                 '.'
          2        SEND_VAL                                                 ''
          3        SEND_VAL                                                 '4.1.0'
          4        DO_ICALL                                         $3      
          5        CAST                                          4  ~4      $3
          6        ASSIGN                                                   !0, ~4
    7     7        INIT_FCALL                                               'str_replace'
          8        SEND_VAL                                                 '.'
          9        SEND_VAL                                                 ''
         10        INIT_FCALL                                               'phpversion'
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                         $7      
         14        CAST                                          4  ~8      $7
         15        ASSIGN                                                   !1, ~8
    8    16        IS_SMALLER_OR_EQUAL                                      !0, !1
         17      > JMPZ                                                     ~10, ->21
    9    18    >   INIT_FCALL_BY_NAME                                       'import_request_variables'
         19        SEND_VAL_EX                                              'GPC'
         20        DO_FCALL                                      0          
   11    21    >   BEGIN_SILENCE                                    ~12     
         22        INIT_FCALL                                               'header'
         23        FETCH_CONSTANT                                   ~13     'general_charset'
         24        FETCH_DIM_R                                      ~14     !2, ~13
         25        CONCAT                                           ~15     'Content-type%3A+text%2Fhtml%3B+charset%3D', ~14
         26        CONCAT                                           ~16     ~15, '%3B'
         27        SEND_VAL                                                 ~16
         28        DO_ICALL                                                 
         29        END_SILENCE                                              ~12
   12    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.8 ms | 1396 KiB | 19 Q