3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * PHP 5.3.3-7+squeeze15 * php op.php */ class Op { private $lang = ''; private $id = null; function __construct() { $this->id = 5; $this->lang = ''; } public static function main() { $stack = array(); $howMuch = 0; while(1) { echo 'create : ',$howMuch, 'OpObject', "\n"; for ($i=0; $i < 1000; $i++) { $stack[] = new Op(); $howMuch++; } if($howMuch === 8000000) exit(2); } } } Op::main();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dV7tr
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   INIT_STATIC_METHOD_CALL                                  'Op', 'main'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class Op:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dV7tr
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ASSIGN_OBJ                                               'id'
          1        OP_DATA                                                  5
   16     2        ASSIGN_OBJ                                               'lang'
          3        OP_DATA                                                  ''
   17     4      > RETURN                                                   null

End of function __construct

Function main:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 3
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 9
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 9
Branch analysis from position: 17
Branch analysis from position: 9
filename:       /in/dV7tr
function name:  main
number of ops:  22
compiled vars:  !0 = $stack, !1 = $howMuch, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   ASSIGN                                                   !0, <array>
   22     1        ASSIGN                                                   !1, 0
   23     2      > JMP                                                      ->20
   24     3    >   ECHO                                                     'create+%3A+'
          4        ECHO                                                     !1
          5        ECHO                                                     'OpObject'
          6        ECHO                                                     '%0A'
   26     7        ASSIGN                                                   !2, 0
          8      > JMP                                                      ->15
   27     9    >   NEW                                              $7      'Op'
         10        DO_FCALL                                      0          
         11        ASSIGN_DIM                                               !0
         12        OP_DATA                                                  $7
   28    13        PRE_INC                                                  !1
   26    14        PRE_INC                                                  !2
         15    >   IS_SMALLER                                               !2, 1000
         16      > JMPNZ                                                    ~11, ->9
   30    17    >   IS_IDENTICAL                                             !1, 8000000
         18      > JMPZ                                                     ~12, ->20
         19    > > EXIT                                                     2
   23    20    > > JMPNZ                                                    1, ->3
   33    21    > > RETURN                                                   null

End of function main

End of class Op.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.17 ms | 1399 KiB | 13 Q