3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( '4/9/2014', '3/9/2014', '2/9/2014', '5/9/2014', '1/9/2014' ); foreach ($arr as &$elem) { $elem = preg_replace('/2014/', '', $elem); } var_dump($arr); foreach ($arr as $elem) { $elem = $elem . 'BLAH'; } var_dump($arr);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 10
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 10
filename:       /in/Ne9v2
function name:  (null)
number of ops:  24
compiled vars:  !0 = $arr, !1 = $elem
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   10     1      > FE_RESET_RW                                      $3      !0, ->10
          2    > > FE_FETCH_RW                                              $3, !1, ->10
   11     3    >   INIT_FCALL                                               'preg_replace'
          4        SEND_VAL                                                 '%2F2014%2F'
          5        SEND_VAL                                                 ''
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
   10     9      > JMP                                                      ->2
         10    >   FE_FREE                                                  $3
   14    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
   16    14      > FE_RESET_R                                       $7      !0, ->19
         15    > > FE_FETCH_R                                               $7, !1, ->19
   17    16    >   CONCAT                                           ~8      !1, 'BLAH'
         17        ASSIGN                                                   !1, ~8
   16    18      > JMP                                                      ->15
         19    >   FE_FREE                                                  $7
   20    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.88 ms | 1395 KiB | 17 Q