3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Cat { public function __construct($nameCat) { echo "This string from constructor " . $nameCat . "\n"; } public function __destruct(){ echo "I was destructing..."; } } $testObj = new Cat("Vasya"); unset($testObj);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B594j
function name:  (null)
number of ops:  6
compiled vars:  !0 = $testObj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'Cat'
          1        SEND_VAL_EX                                              'Vasya'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   13     4        UNSET_CV                                                 !0
          5      > RETURN                                                   1

Class Cat:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B594j
function name:  __construct
number of ops:  5
compiled vars:  !0 = $nameCat
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        CONCAT                                           ~1      'This+string+from+constructor+', !0
          2        CONCAT                                           ~2      ~1, '%0A'
          3        ECHO                                                     ~2
    5     4      > RETURN                                                   null

End of function __construct

Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B594j
function name:  __destruct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'I+was+destructing...'
    9     1      > RETURN                                                   null

End of function __destruct

End of class Cat.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.44 ms | 1393 KiB | 13 Q