3v4l.org

run code in 300+ PHP versions simultaneously
<?php class T { public $te1; public $te2; } $tCollection = []; for($i=0;$i<10;$i++) { $t = new T(); $t->te1 = rand(); $t->te2 = rand(); $tCollection[] = $t; } var_dump($tCollection);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 3
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 3
Branch analysis from position: 19
Branch analysis from position: 3
filename:       /in/Udbc0
function name:  (null)
number of ops:  23
compiled vars:  !0 = $tCollection, !1 = $i, !2 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->17
   11     3    >   NEW                                              $5      'T'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !2, $5
   12     6        INIT_FCALL                                               'rand'
          7        DO_ICALL                                         $9      
          8        ASSIGN_OBJ                                               !2, 'te1'
          9        OP_DATA                                                  $9
   13    10        INIT_FCALL                                               'rand'
         11        DO_ICALL                                         $11     
         12        ASSIGN_OBJ                                               !2, 'te2'
         13        OP_DATA                                                  $11
   14    14        ASSIGN_DIM                                               !0
         15        OP_DATA                                                  !2
   10    16        PRE_INC                                                  !1
         17    >   IS_SMALLER                                               !1, 10
         18      > JMPNZ                                                    ~14, ->3
   17    19    >   INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Class T: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.05 ms | 1395 KiB | 17 Q