3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contents = "<?php echo 'Hello World'; ?> "; file_put_contents('/tmp/test.php', $contents); ob_start(); include('/tmp/test.php'); echo 'end'; $output = ob_get_contents(); echo md5($output);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iKeFj
function name:  (null)
number of ops:  17
compiled vars:  !0 = $contents, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fphp%0A%0Aecho+%27Hello+World%27%3B%0A%0A%3F%3E%0A%0A%0A%0A'
   13     1        INIT_FCALL                                               'file_put_contents'
          2        SEND_VAL                                                 '%2Ftmp%2Ftest.php'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
   15     5        INIT_FCALL                                               'ob_start'
          6        DO_ICALL                                                 
   17     7        INCLUDE_OR_EVAL                                          '%2Ftmp%2Ftest.php', INCLUDE
   18     8        ECHO                                                     'end'
   20     9        INIT_FCALL                                               'ob_get_contents'
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !1, $6
   22    12        INIT_FCALL                                               'md5'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $8      
         15        ECHO                                                     $8
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.19 ms | 1394 KiB | 21 Q