3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Some { public function DoWork() { echo "doing\n"; } public function __toString() { throw new \Exception("Throwing..."); } public function __call($name, $args) { var_dump($name, $args); } } $obj = new Some; $obj->list(); echo $s;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JvMQ7
function name:  (null)
number of ops:  8
compiled vars:  !0 = $obj, !1 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'some'
   25     1        NEW                                              $2      'Some'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   27     4        INIT_METHOD_CALL                                         !0, 'list'
          5        DO_FCALL                                      0          
   29     6        ECHO                                                     !1
          7      > RETURN                                                   1

Class Some:
Function dowork:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JvMQ7
function name:  DoWork
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'doing%0A'
    7     1      > RETURN                                                   null

End of function dowork

Function __tostring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/JvMQ7
function name:  __toString
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $0      'Exception'
          1        SEND_VAL_EX                                              'Throwing...'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $0
   13     4*       VERIFY_RETURN_TYPE                                       
          5*     > RETURN                                                   null

End of function __tostring

Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JvMQ7
function name:  __call
number of ops:  7
compiled vars:  !0 = $name, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   17     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
   18     6      > RETURN                                                   null

End of function __call

End of class Some.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.57 ms | 1388 KiB | 15 Q