3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Connection { public $server, $username, $password, $db; public function a($server, $username, $password, $db){ echo $server; echo $username; echo $password; echo $db; } } $server="server1"; $username="username1"; $password="password1"; $db="db1"; $conect= new Connection("server1", "username1", "password1", "db1"); $conect->a($server, $username, $password, $db); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4fmAG
function name:  (null)
number of ops:  18
compiled vars:  !0 = $server, !1 = $username, !2 = $password, !3 = $db, !4 = $conect
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   ASSIGN                                                   !0, 'server1'
   20     1        ASSIGN                                                   !1, 'username1'
   21     2        ASSIGN                                                   !2, 'password1'
   22     3        ASSIGN                                                   !3, 'db1'
   23     4        NEW                                              $9      'Connection'
          5        SEND_VAL_EX                                              'server1'
          6        SEND_VAL_EX                                              'username1'
          7        SEND_VAL_EX                                              'password1'
          8        SEND_VAL_EX                                              'db1'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !4, $9
   24    11        INIT_METHOD_CALL                                         !4, 'a'
         12        SEND_VAR_EX                                              !0
         13        SEND_VAR_EX                                              !1
         14        SEND_VAR_EX                                              !2
         15        SEND_VAR_EX                                              !3
         16        DO_FCALL                                      0          
   25    17      > RETURN                                                   1

Class Connection:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4fmAG
function name:  a
number of ops:  9
compiled vars:  !0 = $server, !1 = $username, !2 = $password, !3 = $db
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
   13     4        ECHO                                                     !0
   14     5        ECHO                                                     !1
   15     6        ECHO                                                     !2
   16     7        ECHO                                                     !3
   17     8      > RETURN                                                   null

End of function a

End of class Connection.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.23 ms | 1395 KiB | 13 Q