3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Generated ad-hoc $pub = 'O:3:"Pub":1:{s:5:"mVars";a:1:{s:3:"foo";s:3:"bar";}}'; $priv = 'O:4:"Priv":1:{s:5:"mVars";a:1:{s:3:"foo";s:3:"bar";}}'; class Pub { public $mVars; } class Priv { private $mVars; } var_dump(unserialize($pub),unserialize($priv));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H3g3G
function name:  (null)
number of ops:  13
compiled vars:  !0 = $pub, !1 = $priv
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'O%3A3%3A%22Pub%22%3A1%3A%7Bs%3A5%3A%22mVars%22%3Ba%3A1%3A%7Bs%3A3%3A%22foo%22%3Bs%3A3%3A%22bar%22%3B%7D%7D'
    5     1        ASSIGN                                                   !1, 'O%3A4%3A%22Priv%22%3A1%3A%7Bs%3A5%3A%22mVars%22%3Ba%3A1%3A%7Bs%3A3%3A%22foo%22%3Bs%3A3%3A%22bar%22%3B%7D%7D'
   15     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'unserialize'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        INIT_FCALL                                               'unserialize'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class Pub: [no user functions]
Class Priv: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.45 ms | 939 KiB | 18 Q