3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $a = 4; protected $c = 7; public $b = 5; } $a = new A(); $str = sprintf("<?php\n\n// $resource\nreturn %s;\n", var_export($a, true)); eval($str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fc51X
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $str, !2 = $resource
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $3      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   17     3        INIT_FCALL                                               'sprintf'
          4        ROPE_INIT                                     3  ~7      '%3C%3Fphp%0A%0A%2F%2F+'
          5        ROPE_ADD                                      1  ~7      ~7, !2
          6        ROPE_END                                      2  ~6      ~7, '%0Areturn+%25s%3B%0A'
          7        SEND_VAL                                                 ~6
          8        INIT_FCALL                                               'var_export'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $9      
         12        SEND_VAR                                                 $9
         13        DO_ICALL                                         $10     
         14        ASSIGN                                                   !1, $10
   18    15        INCLUDE_OR_EVAL                                          !1, EVAL
         16      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.34 ms | 1394 KiB | 17 Q