3v4l.org

run code in 500+ PHP versions simultaneously
<?php class 🦜 { public function __construct( public int $🐦, public ?string $🦃, ) { } } $🐓 = new 🦜(1234, "birb"); echo $🐓->🐦;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MQlNZ
function name:  (null)
number of ops:  8
compiled vars:  !0 = $🐓
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   NEW                                                  $1      '%F0%9F%A6%9C'
          1        SEND_VAL_EX                                                  1234
          2        SEND_VAL_EX                                                  'birb'
          3        DO_FCALL                                          0          
          4        ASSIGN                                                       !0, $1
   13     5        FETCH_OBJ_R                                          ~4      !0, '%F0%9F%90%A6'
          6        ECHO                                                         ~4
          7      > RETURN                                                       1

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

End of function __construct

End of class 🦜.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.8 ms | 1306 KiB | 13 Q