3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Point { public function __construct(public int $x, public int $y) {} } $p1 = new Point(10, 2); $p2 = new Point(0, 0); $p3 = new Point(5, 5); $result = min($p3, max($p2, $p1)); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pTmiV
function name:  (null)
number of ops:  22
compiled vars:  !0 = $p1, !1 = $p2, !2 = $p3, !3 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   NEW                                                  $4      'Point'
          1        SEND_VAL_EX                                                  10
          2        SEND_VAL_EX                                                  2
          3        DO_FCALL                                          0          
          4        ASSIGN                                                       !0, $4
    6     5        NEW                                                  $7      'Point'
          6        SEND_VAL_EX                                                  0
          7        SEND_VAL_EX                                                  0
          8        DO_FCALL                                          0          
          9        ASSIGN                                                       !1, $7
    7    10        NEW                                                  $10     'Point'
         11        SEND_VAL_EX                                                  5
         12        SEND_VAL_EX                                                  5
         13        DO_FCALL                                          0          
         14        ASSIGN                                                       !2, $10
   10    15        FRAMELESS_ICALL_2                max                 ~13     !1, !0
         16        FRAMELESS_ICALL_2                min                 ~14     !2, ~13
         17        ASSIGN                                                       !3, ~14
   12    18        INIT_FCALL                                                   'var_dump'
         19        SEND_VAR                                                     !3
         20        DO_ICALL                                                     
         21      > RETURN                                                       1

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

End of function __construct

End of class Point.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.86 ms | 1451 KiB | 14 Q