3v4l.org

run code in 300+ PHP versions simultaneously
<?php $student_comment_new = 'PDI+PEwuMDIwMzEwNDAwODAtVC01UC01PlJvbiBDb21tZW50IDI8ZS4yPg=='; $fixed = base64_decode($student_comment_new); echo $fixed . "\n\n"; //Decode the entire comment $comment_cltxt = base64_decode($student_comment_new); echo $comment_cltxt . "\n\n"; //get the comment number. $comment_nr = explode('><L.', $comment_cltxt)[0]; $comment_nr = explode('<', $comment_nr)[1]; //get the comment text $comment_nr_string = '<' . $comment_nr . '>'; $comment_end_string = '<e.' . $comment_nr . '>'; echo $comment_nr . "\n"; echo $comment_nr_string . "\n"; echo $comment_end_string . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B520D
function name:  (null)
number of ops:  38
compiled vars:  !0 = $student_comment_new, !1 = $fixed, !2 = $comment_cltxt, !3 = $comment_nr, !4 = $comment_nr_string, !5 = $comment_end_string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'PDI%2BPEwuMDIwMzEwNDAwODAtVC01UC01PlJvbiBDb21tZW50IDI8ZS4yPg%3D%3D'
    4     1        INIT_FCALL                                               'base64_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $7      
          4        ASSIGN                                                   !1, $7
    5     5        CONCAT                                           ~9      !1, '%0A%0A'
          6        ECHO                                                     ~9
    8     7        INIT_FCALL                                               'base64_decode'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $10     
         10        ASSIGN                                                   !2, $10
    9    11        CONCAT                                           ~12     !2, '%0A%0A'
         12        ECHO                                                     ~12
   13    13        INIT_FCALL                                               'explode'
         14        SEND_VAL                                                 '%3E%3CL.'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $13     
         17        FETCH_DIM_R                                      ~14     $13, 0
         18        ASSIGN                                                   !3, ~14
   14    19        INIT_FCALL                                               'explode'
         20        SEND_VAL                                                 '%3C'
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                         $16     
         23        FETCH_DIM_R                                      ~17     $16, 1
         24        ASSIGN                                                   !3, ~17
   17    25        CONCAT                                           ~19     '%3C', !3
         26        CONCAT                                           ~20     ~19, '%3E'
         27        ASSIGN                                                   !4, ~20
   18    28        CONCAT                                           ~22     '%3Ce.', !3
         29        CONCAT                                           ~23     ~22, '%3E'
         30        ASSIGN                                                   !5, ~23
   21    31        CONCAT                                           ~25     !3, '%0A'
         32        ECHO                                                     ~25
   22    33        CONCAT                                           ~26     !4, '%0A'
         34        ECHO                                                     ~26
   23    35        CONCAT                                           ~27     !5, '%0A'
         36        ECHO                                                     ~27
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.45 ms | 1396 KiB | 17 Q