3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; $x = array(); class person { public $firstname; public $lastname; } do { $p = new person; $p->firstname = "Patrick"; $p->lastname = "Allaert"; $x[] = $p; ++$i; } while ( $i < 500000 );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
filename:       /in/ZRvQ0
function name:  (null)
number of ops:  15
compiled vars:  !0 = $i, !1 = $x, !2 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        ASSIGN                                                   !1, <array>
    9     2    >   NEW                                              $5      'person'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !2, $5
   10     5        ASSIGN_OBJ                                               !2, 'firstname'
          6        OP_DATA                                                  'Patrick'
   11     7        ASSIGN_OBJ                                               !2, 'lastname'
          8        OP_DATA                                                  'Allaert'
   12     9        ASSIGN_DIM                                               !1
         10        OP_DATA                                                  !2
   13    11        PRE_INC                                                  !0
   14    12        IS_SMALLER                                               !0, 500000
         13      > JMPNZ                                                    ~12, ->2
         14    > > RETURN                                                   1

Class person: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.14 ms | 1393 KiB | 13 Q