3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class TypedProperties { public int $number; public string $text; public bool $flag; public \Monolog\Logger $logger; public function run() { $this->number = '100'; $this->logger = new \Monolog\Logger('logger'); } } $typedProperties = new TypedProperties(); $typedProperties->run();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cgdrq
function name:  (null)
number of ops:  6
compiled vars:  !0 = $typedProperties
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'TypedProperties'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_METHOD_CALL                                         !0, 'run'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class TypedProperties:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cgdrq
function name:  run
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ASSIGN_OBJ                                               'number'
          1        OP_DATA                                                  '100'
   14     2        NEW                                              $2      'Monolog%5CLogger'
          3        SEND_VAL_EX                                              'logger'
          4        DO_FCALL                                      0          
          5        ASSIGN_OBJ                                               'logger'
          6        OP_DATA                                                  $2
   15     7      > RETURN                                                   null

End of function run

End of class TypedProperties.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.88 ms | 1439 KiB | 13 Q