3v4l.org

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

Class Kurier:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PB4hd
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'Konstruktor'
   10     1        ASSIGN_STATIC_PROP                                       'koszt'
          2        OP_DATA                                                  10
   11     3      > 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/PB4hd
function name:  zrobCos
number of ops:  6
compiled vars:  !0 = $literka
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   15     1        INIT_FCALL                                               'strtoupper'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4      > RETURN                                                   $1
   16     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/PB4hd
function name:  __destruct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   ECHO                                                     'Destruktor'
   21     1      > RETURN                                                   null

End of function __destruct

End of class Kurier.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.8 ms | 1395 KiB | 15 Q