3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = array( '1','2','3','4','5' ); foreach ($o as $org) { echo $org. "\n\n"; } $test = "$"; $shahid = array_splice($o,3,0,"$test"); foreach($o as $s) { echo $s; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 6
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 6
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 20
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 6
filename:       /in/jXZXA
function name:  (null)
number of ops:  22
compiled vars:  !0 = $o, !1 = $org, !2 = $test, !3 = $shahid, !4 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1      > FE_RESET_R                                       $6      !0, ->6
          2    > > FE_FETCH_R                                               $6, !1, ->6
    5     3    >   CONCAT                                           ~7      !1, '%0A%0A'
          4        ECHO                                                     ~7
    3     5      > JMP                                                      ->2
          6    >   FE_FREE                                                  $6
    7     7        ASSIGN                                                   !2, '%24'
    8     8        INIT_FCALL                                               'array_splice'
          9        SEND_REF                                                 !0
         10        SEND_VAL                                                 3
         11        SEND_VAL                                                 0
         12        CAST                                          6  ~9      !2
         13        SEND_VAL                                                 ~9
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !3, $10
    9    16      > FE_RESET_R                                       $12     !0, ->20
         17    > > FE_FETCH_R                                               $12, !4, ->20
   10    18    >   ECHO                                                     !4
    9    19      > JMP                                                      ->17
         20    >   FE_FREE                                                  $12
   12    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.18 ms | 1395 KiB | 15 Q