3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new class { public function Bar () { echo 'bar'; } }; $unFoo = unserialize(serialize($foo)); $unFoo->Bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gb01b
function name:  (null)
number of ops:  14
compiled vars:  !0 = $foo, !1 = $unFoo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_ANON_CLASS                               <true>  
          1        NEW                                              $3      $2
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    9     4        INIT_FCALL                                               'unserialize'
          5        INIT_FCALL                                               'serialize'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        SEND_VAR                                                 $6
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !1, $7
   10    11        INIT_METHOD_CALL                                         !1, 'Bar'
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Class class@anonymous:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gb01b
function name:  Bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'bar'
    6     1      > RETURN                                                   null

End of function bar

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.3 ms | 1395 KiB | 17 Q