3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { private static $_cpt ; public function compt() { self::$_cpt ++; return $_cpt; } } $insta1 = new test(); // Un $insta2 = new test(); // 2 echo 'cpt : '. $insta1->compt();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fjfJX
function name:  (null)
number of ops:  11
compiled vars:  !0 = $insta1, !1 = $insta2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $2      'test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   15     3        NEW                                              $5      'test'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   17     6        INIT_METHOD_CALL                                         !0, 'compt'
          7        DO_FCALL                                      0  $8      
          8        CONCAT                                           ~9      'cpt+%3A++', $8
          9        ECHO                                                     ~9
         10      > RETURN                                                   1

Class test:
Function compt:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fjfJX
function name:  compt
number of ops:  3
compiled vars:  !0 = $_cpt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   PRE_INC_STATIC_PROP                                      '_cpt'
    8     1      > RETURN                                                   !0
    9     2*     > RETURN                                                   null

End of function compt

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.19 ms | 1384 KiB | 13 Q