3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<?php class Foo { public function __construct($x) { $this->x = $x; } }'; include "data://text/plain;base64,".base64_encode($string); $test = new Foo(5);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F8Pbc
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fphp+class+Foo+%7B+public+function+__construct%28%24x%29+%7B+%24this-%3Ex+%3D+%24x%3B+%7D+%7D'
    5     1        INIT_FCALL                                               'base64_encode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        CONCAT                                           ~4      'data%3A%2F%2Ftext%2Fplain%3Bbase64%2C', $3
          5        INCLUDE_OR_EVAL                                          ~4, INCLUDE
    7     6        NEW                                              $6      'Foo'
          7        SEND_VAL_EX                                              5
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $6
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.25 ms | 1398 KiB | 15 Q