3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.24 ms | 1396 KiB | 15 Q