3v4l.org

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

Class Pont: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.18 ms | 1435 KiB | 14 Q