3v4l.org

run code in 300+ PHP versions simultaneously
<?php file_put_contents('php://temp', '<?php echo "boo!\n"; $foo = "foo" $bar; foo();'); echo file_get_contents('php://temp'); try { require('php://temp'); } catch (throwable $e) { var_dump($e); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 10
Branch analysis from position: 10
2 jumps found. (Code = 107) Position 1 = 11, Position 2 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rAIi6
function name:  (null)
number of ops:  15
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_put_contents'
          1        SEND_VAL                                                 'php%3A%2F%2Ftemp'
          2        SEND_VAL                                                 '%3C%3Fphp+echo+%22boo%21%5Cn%22%3B+%24foo+%3D+%22foo%22+%24bar%3B+foo%28%29%3B'
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'file_get_contents'
          5        SEND_VAL                                                 'php%3A%2F%2Ftemp'
          6        DO_ICALL                                         $2      
          7        ECHO                                                     $2
    7     8        INCLUDE_OR_EVAL                                          'php%3A%2F%2Ftemp', REQUIRE
          9      > JMP                                                      ->14
    8    10  E > > CATCH                                       last         'throwable'
    9    11    >   INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
   10    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.08 ms | 1398 KiB | 19 Q