3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var='JGM9J2NvdW50JzskYT0kX0NPT0tJRTtpZihyZXNldCgkYSk9PSd2aScgJiYgJGMoJGEpPjMpeyRrPSdjdG9yJztlY2hvICc8Jy4kay4nPic7ZXZhbChiYXNlNjRfZGVjb2RlKHByZWdfcmVwbGFjZShhcnJheSgnL1teXHc9XHNdLycsJy9ccy8nKSwgYXJyYXkoJycsJysnKSwgam9pbihhcnJheV9zbGljZSgkYSwkYygkYSktMykpKSkpO2VjaG8gJzwvJy4kay4nPic7f=='; echo base64_decode($var); $var = base64_encode('test'); echo $var; echo base64_decode($var);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/rUvdK
function name:  (null)
number of ops:  15
compiled vars:  !0 = $var
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   ASSIGN                                                   !0, 'JGM9J2NvdW50JzskYT0kX0NPT0tJRTtpZihyZXNldCgkYSk9PSd2aScgJiYgJGMoJGEpPjMpeyRrPSdjdG9yJztlY2hvICc8Jy4kay4nPic7ZXZhbChiYXNlNjRfZGVjb2RlKHByZWdfcmVwbGFjZShhcnJheSgnL1teXHc9XHNdLycsJy9ccy8nKSwgYXJyYXkoJycsJysnKSwgam9pbihhcnJheV9zbGljZSgkYSwkYygkYSktMykpKSkpO2VjaG8gJzwvJy4kay4nPic7f%3D%3D'
   6     1        INIT_FCALL                                               'base64_decode'
         2        SEND_VAR                                                 !0
         3        DO_ICALL                                         $2      
         4        ECHO                                                     $2
   8     5        INIT_FCALL                                               'base64_encode'
         6        SEND_VAL                                                 'test'
         7        DO_ICALL                                         $3      
         8        ASSIGN                                                   !0, $3
   9     9        ECHO                                                     !0
  10    10        INIT_FCALL                                               'base64_decode'
        11        SEND_VAR                                                 !0
        12        DO_ICALL                                         $5      
        13        ECHO                                                     $5
        14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.1.0