3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Entity { private $a; private $b; private $c; public function __construct($a = 1, $b = 2, $c = 3) { } } echo serialize(new Entity()); echo PHP_EOL; $createInstance = ':O:1:"Entity":{}'; $obj = unserialize($createInstance); var_dump($obj);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eEOGL
function name:  (null)
number of ops:  16
compiled vars:  !0 = $createInstance, !1 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'serialize'
          1        NEW                                              $2      'Entity'
          2        DO_FCALL                                      0          
          3        SEND_VAR                                                 $2
          4        DO_ICALL                                         $4      
          5        ECHO                                                     $4
   16     6        ECHO                                                     '%0A'
   18     7        ASSIGN                                                   !0, '%3AO%3A1%3A%22Entity%22%3A%7B%7D'
   20     8        INIT_FCALL                                               'unserialize'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !1, $6
   22    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Class Entity:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eEOGL
function name:  __construct
number of ops:  4
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV_INIT                                        !0      1
          1        RECV_INIT                                        !1      2
          2        RECV_INIT                                        !2      3
   11     3      > RETURN                                                   null

End of function __construct

End of class Entity.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.55 ms | 1395 KiB | 19 Q