3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "<h1>This is a test page from ".gethostname()." </h1>"; $sum = 0; for ($i = 1; $i <= 10; $i++) { $sum += $i; echo "+ (".$i.")\n"; } echo "=\n[".$sum."]\n"; echo "<h1>If this opens correctly </h1>"."\n"."<h1>and adds variables to 55</h1>"." \n"."<h1>then PHP5 has been successfully installed.</h1>\n\n" ?> Below is the script used to output what you see above.<br><br> <?php highlight_string('<?php echo "<h1>This is a test page from ".gethostname()." </h1>"; $sum = 0; for ($i = 1; $i <= 10; $i++) { $sum += $i; echo "+ (".$i.")\n"; } echo "=\n[".$sum."]\n"; echo "<h1>If this opens correctly </h1>"."\n"."<h1>and adds variables to 55</h1>"." \n"."<h1>then PHP5 has been successfully installed.</h1>\n\n" ?>'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
Branch analysis from position: 8
filename:       /in/vQlEn
function name:  (null)
number of ops:  24
compiled vars:  !0 = $sum, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'gethostname'
          1        DO_ICALL                                         $2      
          2        CONCAT                                           ~3      '%3Ch1%3EThis+is+a+test+page+from+', $2
          3        CONCAT                                           ~4      ~3, '+%3C%2Fh1%3E'
          4        ECHO                                                     ~4
    3     5        ASSIGN                                                   !0, 0
    4     6        ASSIGN                                                   !1, 1
          7      > JMP                                                      ->13
    5     8    >   ASSIGN_OP                                     1          !0, !1
    6     9        CONCAT                                           ~8      '%2B+%28', !1
         10        CONCAT                                           ~9      ~8, '%29%0A'
         11        ECHO                                                     ~9
    4    12        PRE_INC                                                  !1
         13    >   IS_SMALLER_OR_EQUAL                                      !1, 10
         14      > JMPNZ                                                    ~11, ->8
    9    15    >   CONCAT                                           ~12     '%3D%0A%5B', !0
         16        CONCAT                                           ~13     ~12, '%5D%0A'
         17        ECHO                                                     ~13
   10    18        ECHO                                                     '%3Ch1%3EIf+this+opens+correctly+%3C%2Fh1%3E%0A%3Ch1%3Eand+adds+variables+to+55%3C%2Fh1%3E+%0A%3Ch1%3Ethen+PHP5+has+been+successfully+installed.%3C%2Fh1%3E%0A%0A'
   12    19        ECHO                                                     'Below+is+the+script+used+to+output+what+you+see+above.%3Cbr%3E%3Cbr%3E%0A%0A%0A'
   16    20        INIT_FCALL                                               'highlight_string'
         21        SEND_VAL                                                 '%3C%3Fphp%0Aecho+%22%3Ch1%3EThis+is+a+test+page+from+%22.gethostname%28%29.%22+%3C%2Fh1%3E%22%3B%0A%24sum+%3D+0%3B%0Afor+%28%24i+%3D+1%3B+%24i+%3C%3D+10%3B+%24i%2B%2B%29+%7B%0A++++%24sum+%2B%3D+%24i%3B+%0A++++echo+%22%2B+%28%22.%24i.%22%29%5Cn%22%3B+%0A%7D%0A%0Aecho+%22%3D%5Cn%5B%22.%24sum.%22%5D%5Cn%22%3B+%0Aecho+%22%3Ch1%3EIf+this+opens+correctly+%3C%2Fh1%3E%22.%22%5Cn%22.%22%3Ch1%3Eand+adds+variables+to+55%3C%2Fh1%3E%22.%22+%5Cn%22.%22%3Ch1%3Ethen+PHP5+has+been+successfully+installed.%3C%2Fh1%3E%5Cn%5Cn%22%0A%3F%3E'
         22        DO_ICALL                                                 
   27    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.18 ms | 1396 KiB | 17 Q