3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $a = 12; protected $b = 'test'; public $c = false; } $obj = new Test(); echo serialize($obj), PHP_EOL; echo serialize((array) $obj), PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vql8v
function name:  (null)
number of ops:  15
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        INIT_FCALL                                               'serialize'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ECHO                                                     $4
          7        ECHO                                                     '%0A'
   11     8        INIT_FCALL                                               'serialize'
          9        CAST                                          7  ~5      !0
         10        SEND_VAL                                                 ~5
         11        DO_ICALL                                         $6      
         12        ECHO                                                     $6
         13        ECHO                                                     '%0A'
         14      > RETURN                                                   1

Class Test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.85 ms | 1394 KiB | 15 Q