3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Kurier { public function __construct() { echo "Konstruktor"; } public static function zrobCos($literka) { return strtoupper($literka); } public function __destruct() { echo "Destruktor"; } } echo "Poczatek"; echo Kurier::zrobCos('o'); echo "Koniec";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4KsmI
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   ECHO                                                     'Poczatek'
   22     1        INIT_STATIC_METHOD_CALL                                  'Kurier', 'zrobCos'
          2        SEND_VAL                                                 'o'
          3        DO_FCALL                                      0  $0      
          4        ECHO                                                     $0
   24     5        ECHO                                                     'Koniec'
          6      > RETURN                                                   1

Class Kurier:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4KsmI
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'Konstruktor'
    8     1      > RETURN                                                   null

End of function __construct

Function zrobcos:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4KsmI
function name:  zrobCos
number of ops:  6
compiled vars:  !0 = $literka
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   12     1        INIT_FCALL                                               'strtoupper'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4      > RETURN                                                   $1
   13     5*     > RETURN                                                   null

End of function zrobcos

Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4KsmI
function name:  __destruct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   ECHO                                                     'Destruktor'
   18     1      > RETURN                                                   null

End of function __destruct

End of class Kurier.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.41 ms | 1395 KiB | 15 Q