3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class Price { public function __construct(private int $price, private int $decimalCount) { var_dump($price); var_dump($decimalCount); } } $price = new Price('100.82', '1');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lKgfG
function name:  (null)
number of ops:  6
compiled vars:  !0 = $price
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'Price'
          1        SEND_VAL_EX                                              '100.82'
          2        SEND_VAL_EX                                              '1'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
          5      > RETURN                                                   1

Class Price:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lKgfG
function name:  __construct
number of ops:  13
compiled vars:  !0 = $price, !1 = $decimalCount
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        ASSIGN_OBJ                                               'price'
          3        OP_DATA                                                  !0
          4        ASSIGN_OBJ                                               'decimalCount'
          5        OP_DATA                                                  !1
    7     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    8     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
    9    12      > RETURN                                                   null

End of function __construct

End of class Price.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.34 ms | 1406 KiB | 15 Q