3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { public function __construct( string $endpoint, ?string $publicKey = null, ?string $authToken = null, ?string $contentEncoding = null ) { $this->endpoint = $endpoint; } } $x = new X('blah', 'blahblah');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A1XeN
function name:  (null)
number of ops:  6
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'X'
          1        SEND_VAL_EX                                              'blah'
          2        SEND_VAL_EX                                              'blahblah'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
          5      > RETURN                                                   1

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

End of function __construct

End of class X.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.33 ms | 1384 KiB | 13 Q