3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Liam { public function __construct() { $this->printString(); $this->printArray(); } public function printString(string $prefix) : string { print $this->_generateString(); } public function printArray(array $array) : array { print array(); } private function _generateString() : string { return random(1,255); } } print_r(new Liam());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aa44t
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   INIT_FCALL                                               'print_r'
          1        NEW                                              $0      'Liam'
          2        DO_FCALL                                      0          
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Class Liam:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aa44t
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_METHOD_CALL                                         'printString'
          1        DO_FCALL                                      0          
    6     2        INIT_METHOD_CALL                                         'printArray'
          3        DO_FCALL                                      0          
    7     4      > RETURN                                                   null

End of function __construct

Function printstring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aa44t
function name:  printString
number of ops:  6
compiled vars:  !0 = $prefix
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   11     1        INIT_METHOD_CALL                                         '_generateString'
          2        DO_FCALL                                      0  $1      
          3        ECHO                                                     $1
   12     4        VERIFY_RETURN_TYPE                                       
          5      > RETURN                                                   null

End of function printstring

Function printarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aa44t
function name:  printArray
number of ops:  4
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   15     1        ECHO                                                     <array>
   16     2        VERIFY_RETURN_TYPE                                       
          3      > RETURN                                                   null

End of function printarray

Function _generatestring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aa44t
function name:  _generateString
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL_BY_NAME                                       'random'
          1        SEND_VAL_EX                                              1
          2        SEND_VAL_EX                                              255
          3        DO_FCALL                                      0  $0      
          4        VERIFY_RETURN_TYPE                                       $0
          5      > RETURN                                                   $0
   20     6*       VERIFY_RETURN_TYPE                                       
          7*     > RETURN                                                   null

End of function _generatestring

End of class Liam.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.82 ms | 1405 KiB | 15 Q