3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new stdClass; $s = var_export($obj , true); echo $s; eval('$my_var=' . $s . ';'); var_dump($my_var);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OB9b0
function name:  (null)
number of ops:  16
compiled vars:  !0 = $obj, !1 = $s, !2 = $my_var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    3     3        INIT_FCALL                                               'var_export'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !1, $6
    4     8        ECHO                                                     !1
    6     9        CONCAT                                           ~8      '%24my_var%3D', !1
         10        CONCAT                                           ~9      ~8, '%3B'
         11        INCLUDE_OR_EVAL                                          ~9, EVAL
    8    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.21 ms | 1394 KiB | 17 Q