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"; $kurier = new Kurier(); echo $kurier->zrobCos('o'); unset($kurier); echo "Koniec";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jcip2
function name:  (null)
number of ops:  11
compiled vars:  !0 = $kurier
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   ECHO                                                     'Poczatek'
   22     1        NEW                                              $1      'Kurier'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   23     4        INIT_METHOD_CALL                                         !0, 'zrobCos'
          5        SEND_VAL_EX                                              'o'
          6        DO_FCALL                                      0  $4      
          7        ECHO                                                     $4
   24     8        UNSET_CV                                                 !0
   26     9        ECHO                                                     'Koniec'
         10      > RETURN                                                   1

Class Kurier:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jcip2
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/Jcip2
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/Jcip2
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:
200.03 ms | 1396 KiB | 15 Q