3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Route { protected $path; public function __construct($path) { $this->path = $path; } } $routes = array(); for($x = 0; $x < 10000; $x++) { $routes[] = new Route("/a"); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 3
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 3
Branch analysis from position: 11
Branch analysis from position: 3
filename:       /in/LpR86
function name:  (null)
number of ops:  12
compiled vars:  !0 = $routes, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, <array>
   13     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->9
   14     3    >   NEW                                              $5      'Route'
          4        SEND_VAL_EX                                              '%2Fa'
          5        DO_FCALL                                      0          
          6        ASSIGN_DIM                                               !0
          7        OP_DATA                                                  $5
   13     8        PRE_INC                                                  !1
          9    >   IS_SMALLER                                               !1, 10000
         10      > JMPNZ                                                    ~8, ->3
   15    11    > > RETURN                                                   1

Class Route:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LpR86
function name:  __construct
number of ops:  4
compiled vars:  !0 = $path
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        ASSIGN_OBJ                                               'path'
          2        OP_DATA                                                  !0
    8     3      > RETURN                                                   null

End of function __construct

End of class Route.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.4 ms | 1393 KiB | 13 Q