3v4l.org

run code in 300+ PHP versions simultaneously
<?php file_put_contents('/tmp/config.php',"<?php return [ 'hostname' => 'https://booking.example.com', 'mainSite' => 'https://www.example.com', ];"); foreach((require '/tmp/config.php') as $key => $value) { echo "$key=$value\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/dja4F
function name:  (null)
number of ops:  16
compiled vars:  !0 = $value, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_put_contents'
          1        SEND_VAL                                                 '%2Ftmp%2Fconfig.php'
          2        SEND_VAL                                                 '%3C%3Fphp%0Areturn+%5B%0A++++%27hostname%27+%3D%3E+%27https%3A%2F%2Fbooking.example.com%27%2C%0A++++%27mainSite%27+%3D%3E+%27https%3A%2F%2Fwww.example.com%27%2C%0A%5D%3B'
          3        DO_ICALL                                                 
    9     4        INCLUDE_OR_EVAL                                  $3      '%2Ftmp%2Fconfig.php', REQUIRE
          5      > FE_RESET_R                                       $4      $3, ->14
          6    > > FE_FETCH_R                                       ~5      $4, !0, ->14
          7    >   ASSIGN                                                   !1, ~5
   10     8        ROPE_INIT                                     4  ~8      !1
          9        ROPE_ADD                                      1  ~8      ~8, '%3D'
         10        ROPE_ADD                                      2  ~8      ~8, !0
         11        ROPE_END                                      3  ~7      ~8, '%0A'
         12        ECHO                                                     ~7
    9    13      > JMP                                                      ->6
         14    >   FE_FREE                                                  $4
   11    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.49 ms | 1399 KiB | 15 Q