3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1= []; $arr2 = []; $arr1[] = "Hello"; $arr1[] = "This"; print_r($arr1); $tester = ["Hello", "This"]; foreach ($tester as $key) { $arr2[] = $key; } print_r($arr2);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/j3LRZ
function name:  (null)
number of ops:  20
compiled vars:  !0 = $arr1, !1 = $arr2, !2 = $tester, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    8     2        ASSIGN_DIM                                               !0
          3        OP_DATA                                                  'Hello'
    9     4        ASSIGN_DIM                                               !0
          5        OP_DATA                                                  'This'
   11     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   14     9        ASSIGN                                                   !2, <array>
   16    10      > FE_RESET_R                                       $10     !2, ->15
         11    > > FE_FETCH_R                                               $10, !3, ->15
   17    12    >   ASSIGN_DIM                                               !1
         13        OP_DATA                                                  !3
   16    14      > JMP                                                      ->11
         15    >   FE_FREE                                                  $10
   20    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.06 ms | 1395 KiB | 15 Q