3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Pont { public function __construct(private float $longueur, private float $largeur) { } } $towerBridge = new Pont(286.0, 62.0); var_dump($towerBridge);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W70Lr
function name:  (null)
number of ops:  9
compiled vars:  !0 = $towerBridge
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'Pont'
          1        SEND_VAL_EX                                              286
          2        SEND_VAL_EX                                              62
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   13     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class Pont:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W70Lr
function name:  __construct
number of ops:  7
compiled vars:  !0 = $longueur, !1 = $largeur
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        ASSIGN_OBJ                                               'longueur'
          3        OP_DATA                                                  !0
          4        ASSIGN_OBJ                                               'largeur'
          5        OP_DATA                                                  !1
    9     6      > RETURN                                                   null

End of function __construct

End of class Pont.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
134.27 ms | 1442 KiB | 14 Q