3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Cheese\Topping\Please { class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $biz = 'bizValue'; } $foo = new \Cheese\Topping\Please\Foo(); $arrayFoo = (array) $foo; $out = json_encode($arrayFoo); echo $out . "\n\n"; $out = preg_replace('/\\\u0000[*a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*\\\u0000/', '', $out); $newArray = json_decode($out, true); var_dump($newArray); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tPO1B
function name:  (null)
number of ops:  26
compiled vars:  !0 = $foo, !1 = $arrayFoo, !2 = $out, !3 = $newArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $4      'Cheese%5CTopping%5CPlease%5CFoo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
   12     3        CAST                                          7  ~7      !0
          4        ASSIGN                                                   !1, ~7
   14     5        INIT_NS_FCALL_BY_NAME                                    'Cheese%5CTopping%5CPlease%5Cjson_encode'
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0  $9      
          8        ASSIGN                                                   !2, $9
   15     9        CONCAT                                           ~11     !2, '%0A%0A'
         10        ECHO                                                     ~11
   16    11        INIT_NS_FCALL_BY_NAME                                    'Cheese%5CTopping%5CPlease%5Cpreg_replace'
         12        SEND_VAL_EX                                              '%2F%5C%5Cu0000%5B%2Aa-zA-Z_%5Cx7f-%5Cxff%5D%5Ba-zA-Z0-9_%5Cx7f-%5Cxff%5D%2A%5C%5Cu0000%2F'
         13        SEND_VAL_EX                                              ''
         14        SEND_VAR_EX                                              !2
         15        DO_FCALL                                      0  $12     
         16        ASSIGN                                                   !2, $12
   18    17        INIT_NS_FCALL_BY_NAME                                    'Cheese%5CTopping%5CPlease%5Cjson_decode'
         18        SEND_VAR_EX                                              !2
         19        SEND_VAL_EX                                              <true>
         20        DO_FCALL                                      0  $14     
         21        ASSIGN                                                   !3, $14
   19    22        INIT_NS_FCALL_BY_NAME                                    'Cheese%5CTopping%5CPlease%5Cvar_dump'
         23        SEND_VAR_EX                                              !3
         24        DO_FCALL                                      0          
   20    25      > RETURN                                                   1

Class Cheese\Topping\Please\Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.33 ms | 1395 KiB | 21 Q