3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Url { public $url; function setUrl($url) { $this->url = $url; return $this; } } var_dump((array)new Url());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uMXEX
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'Url'
          2        DO_FCALL                                      0          
          3        CAST                                          7  ~2      $0
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Class Url:
Function seturl:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uMXEX
function name:  setUrl
number of ops:  6
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        ASSIGN_OBJ                                               'url'
          2        OP_DATA                                                  !0
    8     3        FETCH_THIS                                       ~2      
          4      > RETURN                                                   ~2
    9     5*     > RETURN                                                   null

End of function seturl

End of class Url.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.21 ms | 1394 KiB | 15 Q