3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( //"one" => "'1", "one" => ch(0xbf27), "two" => 2, "three" => 3, "seventeen" => 17 ); foreach ($a as $k => $v) { echo "$v...\n"; //$str = $v; $str = addslashes($v); echo "\$a[$k] => $str.\n"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 25
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 25
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/8L7Vm
function name:  (null)
number of ops:  27
compiled vars:  !0 = $a, !1 = $v, !2 = $k, !3 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL_BY_NAME                                       'ch'
          1        SEND_VAL_EX                                              48935
          2        DO_FCALL                                      0  $4      
          3        INIT_ARRAY                                       ~5      $4, 'one'
    6     4        ADD_ARRAY_ELEMENT                                ~5      2, 'two'
    7     5        ADD_ARRAY_ELEMENT                                ~5      3, 'three'
    8     6        ADD_ARRAY_ELEMENT                                ~5      17, 'seventeen'
    3     7        ASSIGN                                                   !0, ~5
   11     8      > FE_RESET_R                                       $7      !0, ->25
          9    > > FE_FETCH_R                                       ~8      $7, !1, ->25
         10    >   ASSIGN                                                   !2, ~8
   12    11        NOP                                                      
         12        FAST_CONCAT                                      ~10     !1, '...%0A'
         13        ECHO                                                     ~10
   14    14        INIT_FCALL                                               'addslashes'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $11     
         17        ASSIGN                                                   !3, $11
   15    18        ROPE_INIT                                     5  ~14     '%24a%5B'
         19        ROPE_ADD                                      1  ~14     ~14, !2
         20        ROPE_ADD                                      2  ~14     ~14, '%5D+%3D%3E+'
         21        ROPE_ADD                                      3  ~14     ~14, !3
         22        ROPE_END                                      4  ~13     ~14, '.%0A'
         23        ECHO                                                     ~13
   11    24      > JMP                                                      ->9
         25    >   FE_FREE                                                  $7
   22    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.49 ms | 1395 KiB | 15 Q