3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (debug_backtrace()) { return new class { public $bar; public function bing($foo = null) { if ($foo) $foo->bing(); } }; } $oldFoo = require(__FILE__); $newFoo = require(__FILE__); var_dump(get_class_methods($oldFoo)); var_dump(get_object_vars($oldFoo)); $newFoo->bing($oldFoo);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H4q8L
function name:  (null)
number of ops:  27
compiled vars:  !0 = $oldFoo, !1 = $newFoo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'debug_backtrace'
          1        DO_ICALL                                         $2      
          2      > JMPZ                                                     $2, ->7
    4     3    >   DECLARE_ANON_CLASS                               <unknown> 
          4        NEW                                              $4      $3
          5        DO_FCALL                                      0          
          6      > RETURN                                                   $4
   12     7    >   INCLUDE_OR_EVAL                                  $6      '%2Fin%2FH4q8L', REQUIRE
          8        ASSIGN                                                   !0, $6
   13     9        INCLUDE_OR_EVAL                                  $8      '%2Fin%2FH4q8L', REQUIRE
         10        ASSIGN                                                   !1, $8
   15    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'get_class_methods'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $10     
         15        SEND_VAR                                                 $10
         16        DO_ICALL                                                 
   16    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'get_object_vars'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $12     
         21        SEND_VAR                                                 $12
         22        DO_ICALL                                                 
   18    23        INIT_METHOD_CALL                                         !1, 'bing'
         24        SEND_VAR_EX                                              !0
         25        DO_FCALL                                      0          
         26      > RETURN                                                   1

Class class@anonymous:
Function bing:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 4
Branch analysis from position: 2
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/H4q8L
function name:  bing
number of ops:  5
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV_INIT                                        !0      null
    7     1      > JMPZ                                                     !0, ->4
          2    >   INIT_METHOD_CALL                                         !0, 'bing'
          3        DO_FCALL                                      0          
    8     4    > > RETURN                                                   null

End of function bing

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.1 ms | 1396 KiB | 21 Q