3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test\SuperTest{ class testA { private $b = 123; public function __construct() { $a = 5; } } } namespace{ $className = "Test\SuperTest\testA"; $object = unserialize( sprintf('O:%d:"%s":0:{}', strlen($className), $className) ); var_dump($object); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N6Ja5
function name:  (null)
number of ops:  15
compiled vars:  !0 = $className, !1 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ASSIGN                                                   !0, 'Test%5CSuperTest%09estA'
   18     1        INIT_FCALL                                               'unserialize'
   19     2        INIT_FCALL                                               'sprintf'
          3        SEND_VAL                                                 'O%3A%25d%3A%22%25s%22%3A0%3A%7B%7D'
          4        STRLEN                                           ~3      !0
          5        SEND_VAL                                                 ~3
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
   18    10        ASSIGN                                                   !1, $5
   23    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
   24    14      > RETURN                                                   1

Class Test\SuperTest\testA:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N6Ja5
function name:  __construct
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, 5
   11     1      > RETURN                                                   null

End of function __construct

End of class Test\SuperTest\testA.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.05 ms | 1395 KiB | 19 Q