3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '{ "123": "application/vnd.lotus-1-2-3", "3dml": "text/vnd.in3d.3dml", "3g2": "video/3gpp2", "3gp": "video/3gpp", "7z": "application/x-7z-compressed", "aab": "application/x-authorware-bin" }'; var_dump(); foreach (json_decode($string, 1) as $k => $v) { var_dump($k); var_dump($v); die; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/54j9A
function name:  (null)
number of ops:  20
compiled vars:  !0 = $string, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%0A++%22123%22%3A+%22application%2Fvnd.lotus-1-2-3%22%2C%0A++%223dml%22%3A+%22text%2Fvnd.in3d.3dml%22%2C%0A++%223g2%22%3A+%22video%2F3gpp2%22%2C%0A++%223gp%22%3A+%22video%2F3gpp%22%2C%0A++%227z%22%3A+%22application%2Fx-7z-compressed%22%2C%0A++%22aab%22%3A+%22application%2Fx-authorware-bin%22%0A%7D'
   10     1        INIT_FCALL                                               'var_dump'
          2        DO_ICALL                                                 
   12     3        INIT_FCALL                                               'json_decode'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $5      
          7      > FE_RESET_R                                       $6      $5, ->18
          8    > > FE_FETCH_R                                       ~7      $6, !1, ->18
          9    >   ASSIGN                                                   !2, ~7
   13    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
   14    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
   15    16      > EXIT                                                     
   12    17*       JMP                                                      ->8
         18    >   FE_FREE                                                  $6
   16    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.59 ms | 1395 KiB | 17 Q