3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dataset = array("a" > "one", "b" > "two", "c" => "three"); function foo($a, $b) { return false; } var_dump($dataset); print(PHP_EOL); foreach($dataset as $key => $val) { $dataset[$key] = foo($val, 'bar'); var_dump($dataset[$key], $key, $val); print(PHP_EOL); } var_dump($dataset); print(PHP_EOL);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 22
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 22
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/VINCS
function name:  (null)
number of ops:  28
compiled vars:  !0 = $dataset, !1 = $val, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   10     4        ECHO                                                     '%0A'
   12     5      > FE_RESET_R                                       $5      !0, ->22
          6    > > FE_FETCH_R                                       ~6      $5, !1, ->22
          7    >   ASSIGN                                                   !2, ~6
   13     8        INIT_FCALL                                               'foo'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 'bar'
         11        DO_FCALL                                      0  $9      
         12        ASSIGN_DIM                                               !0, !2
         13        OP_DATA                                                  $9
   14    14        INIT_FCALL                                               'var_dump'
         15        FETCH_DIM_R                                      ~10     !0, !2
         16        SEND_VAL                                                 ~10
         17        SEND_VAR                                                 !2
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
   15    20        ECHO                                                     '%0A'
   12    21      > JMP                                                      ->6
         22    >   FE_FREE                                                  $5
   18    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                                 
   20    26        ECHO                                                     '%0A'
         27      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VINCS
function name:  foo
number of ops:  4
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2      > RETURN                                                   <false>
    6     3*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.35 ms | 1398 KiB | 16 Q