3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Customer { public function getCustomerIdPlusCustomerFirstNamePlusCustomerLastName($id, $firstName, $lastName) { return $id .' '. $firstName . ' ' . $lastName; } } $a = (new Customer())->getCustomerIdPlusCustomerFirstNamePlusCustomerLastName('id', 'firstName', 'lastName'); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jFCWK
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'Customer'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $1, 'getCustomerIdPlusCustomerFirstNamePlusCustomerLastName'
          3        SEND_VAL_EX                                              'id'
          4        SEND_VAL_EX                                              'firstName'
          5        SEND_VAL_EX                                              'lastName'
          6        DO_FCALL                                      0  $3      
          7        ASSIGN                                                   !0, $3
   14     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class Customer:
Function getcustomeridpluscustomerfirstnamepluscustomerlastname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jFCWK
function name:  getCustomerIdPlusCustomerFirstNamePlusCustomerLastName
number of ops:  9
compiled vars:  !0 = $id, !1 = $firstName, !2 = $lastName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    7     3        CONCAT                                           ~3      !0, '+'
          4        CONCAT                                           ~4      ~3, !1
          5        CONCAT                                           ~5      ~4, '+'
          6        CONCAT                                           ~6      ~5, !2
          7      > RETURN                                                   ~6
    8     8*     > RETURN                                                   null

End of function getcustomeridpluscustomerfirstnamepluscustomerlastname

End of class Customer.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
218.24 ms | 1395 KiB | 15 Q