3v4l.org

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

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

End of function setlongueur

Function setlargeur:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qFaoO
function name:  setLargeur
number of ops:  4
compiled vars:  !0 = $largeur
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
   17     1        ASSIGN_OBJ                                               'largeur'
          2        OP_DATA                                                  !0
   18     3      > RETURN                                                   null

End of function setlargeur

End of class Pont.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.97 ms | 1440 KiB | 13 Q