3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo{ private $a1 = 'A1'; private $a2 = 'A2'; public $a3 = 'A3'; public $a4 = 'A4'; } $foo = new Foo(); print_r(json_decode(json_encode($foo), true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DoO8a
function name:  (null)
number of ops:  14
compiled vars:  !0 = $foo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   NEW                                                  $1      'Foo'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   11     3        INIT_FCALL                                                   'print_r'
          4        INIT_FCALL                                                   'json_decode'
          5        INIT_FCALL                                                   'json_encode'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                             $4      
          8        SEND_VAR                                                     $4
          9        SEND_VAL                                                     <true>
         10        DO_ICALL                                             $5      
         11        SEND_VAR                                                     $5
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
211.68 ms | 2469 KiB | 16 Q