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)$url);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZrhtP
function name:  (null)
number of ops:  5
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'var_dump'
          1        CAST                                          7  ~1      !0
          2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
          4      > RETURN                                                   1

Class Url:
Function seturl:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZrhtP
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:
191.46 ms | 1398 KiB | 15 Q