3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Abcd { public $remain = 180; public function __construct() { $this->remain--; } public function __toString() { return (string) $this->remain; } } $abcd = new Abcd(); echo $abcd;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D1jjG
function name:  (null)
number of ops:  6
compiled vars:  !0 = $abcd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'abcd'
   14     1        NEW                                              $1      'Abcd'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   15     4        ECHO                                                     !0
   16     5      > RETURN                                                   1

Class Abcd:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D1jjG
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   PRE_DEC_OBJ                                              'remain'
    8     1      > RETURN                                                   null

End of function __construct

Function __tostring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D1jjG
function name:  __toString
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   FETCH_OBJ_R                                      ~0      'remain'
          1        CAST                                          6  ~1      ~0
          2        VERIFY_RETURN_TYPE                                       ~1
          3      > RETURN                                                   ~1
   12     4*       VERIFY_RETURN_TYPE                                       
          5*     > RETURN                                                   null

End of function __tostring

End of class Abcd.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.92 ms | 1393 KiB | 13 Q