3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('opcache.enable', true); $file = __DIR__.'/file.txt'; file_put_contents($file, '<?php return 1;'); $var = include $file; file_put_contents($file, '<?php return 2;'); $var = include $file; var_dump($var);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pjnin
function name:  (null)
number of ops:  21
compiled vars:  !0 = $file, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'opcache.enable'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
    5     4        ASSIGN                                                   !0, '%2Fin%2Ffile.txt'
    6     5        INIT_FCALL                                               'file_put_contents'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 '%3C%3Fphp+return+1%3B'
          8        DO_ICALL                                                 
    7     9        INCLUDE_OR_EVAL                                  $5      !0, INCLUDE
         10        ASSIGN                                                   !1, $5
    8    11        INIT_FCALL                                               'file_put_contents'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 '%3C%3Fphp+return+2%3B'
         14        DO_ICALL                                                 
    9    15        INCLUDE_OR_EVAL                                  $8      !0, INCLUDE
         16        ASSIGN                                                   !1, $8
   10    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.24 ms | 1395 KiB | 19 Q