3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=0; $i<9998; $i++) { $array = array(); $array[0] = &$array; unset($array); } $matches = array("foo" => "bar"); $dummy = array("dummy"); $dummy[1] = &$dummy; $matches[1] = &$matches; $matches[2] = $dummy; $ma = $matches; preg_match_all("/(\d)+/", "foo123456bar", $matches); echo "okey";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
Branch analysis from position: 2
filename:       /in/DpSPY
function name:  (null)
number of ops:  25
compiled vars:  !0 = $i, !1 = $array, !2 = $matches, !3 = $dummy, !4 = $ma
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->7
    3     2    >   ASSIGN                                                   !1, <array>
    4     3        FETCH_DIM_W                                      $7      !1, 0
          4        ASSIGN_REF                                               $7, !1
    5     5        UNSET_CV                                                 !1
    2     6        PRE_INC                                                  !0
          7    >   IS_SMALLER                                               !0, 9998
          8      > JMPNZ                                                    ~10, ->2
    8     9    >   ASSIGN                                                   !2, <array>
    9    10        ASSIGN                                                   !3, <array>
   10    11        FETCH_DIM_W                                      $13     !3, 1
         12        ASSIGN_REF                                               $13, !3
   12    13        FETCH_DIM_W                                      $15     !2, 1
         14        ASSIGN_REF                                               $15, !2
   13    15        ASSIGN_DIM                                               !2, 2
         16        OP_DATA                                                  !3
   15    17        ASSIGN                                                   !4, !2
   16    18        INIT_FCALL                                               'preg_match_all'
         19        SEND_VAL                                                 '%2F%28%5Cd%29%2B%2F'
         20        SEND_VAL                                                 'foo123456bar'
         21        SEND_REF                                                 !2
         22        DO_ICALL                                                 
   17    23        ECHO                                                     'okey'
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.01 ms | 1395 KiB | 15 Q