3v4l.org

run code in 300+ PHP versions simultaneously
<?php file_put_contents('A.php', '<?php class A{}'); include 'A.php'; $a = new A(); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MLAXP
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_put_contents'
          1        SEND_VAL                                                 'A.php'
          2        SEND_VAL                                                 '%3C%3Fphp+class+A%7B%7D'
          3        DO_ICALL                                                 
    4     4        INCLUDE_OR_EVAL                                          'A.php', INCLUDE
    5     5        NEW                                              $3      'A'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $3
    6     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.19 ms | 1394 KiB | 17 Q