3v4l.org

run code in 500+ PHP versions simultaneously
<?php /** *class Foo *{ * protected $bar = null; * * public function __construct($bar = null) * { * $this->bar = $bar; * } *} * * The class above represents the serialized, base64_encoded string below. */ $serialized = 'TzozOiJGb28iOjE6e3M6NjoiACoAYmFyIjtzOjM6ImJheiI7fQ=='; class Foo { public $bar = null; } $class = unserialize(base64_decode($serialized)); var_dump($class);exit;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 61) Position 1 = -2
filename:       /in/mnHXp
function name:  (null)
number of ops:  14
compiled vars:  !0 = $serialized, !1 = $class
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   16     0  E >   ASSIGN                                                       !0, 'TzozOiJGb28iOjE6e3M6NjoiACoAYmFyIjtzOjM6ImJheiI7fQ%3D%3D'
   23     1        INIT_FCALL                                                   'unserialize'
          2        INIT_FCALL                                                   'base64_decode'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $3      
          5        SEND_VAR                                                     $3
          6        DO_ICALL                                             $4      
          7        ASSIGN                                                       !1, $4
   24     8        INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !1
         10        DO_ICALL                                                     
         11      > INIT_FCALL                                                   'exit'
         12*       DO_ICALL                                                     
         13*     > RETURN                                                       1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
225.68 ms | 3315 KiB | 17 Q