3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s ='O:8:"stdClass":10:{s:2:"-8";i:0;s:2:"-7";i:0;s:2:"-6";i:0;s:2:"-5";i:0;s:2:"-4";i:0;s:2:"-3";i:0;s:2:"-2";i:0;s:2:"-1";i:0;s:1:"0";i:100;s:1:"1";i:0;}'; $obj=unserialize($s); $ar =(array)$obj; // var_dump($obj->{'0'}, $obj->{0}, $ar['0'], $ar[0]); foreach ($ar as $key => $value){ echo $key.' = '.$value."\n"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/TfnSc
function name:  (null)
number of ops:  17
compiled vars:  !0 = $s, !1 = $obj, !2 = $ar, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'O%3A8%3A%22stdClass%22%3A10%3A%7Bs%3A2%3A%22-8%22%3Bi%3A0%3Bs%3A2%3A%22-7%22%3Bi%3A0%3Bs%3A2%3A%22-6%22%3Bi%3A0%3Bs%3A2%3A%22-5%22%3Bi%3A0%3Bs%3A2%3A%22-4%22%3Bi%3A0%3Bs%3A2%3A%22-3%22%3Bi%3A0%3Bs%3A2%3A%22-2%22%3Bi%3A0%3Bs%3A2%3A%22-1%22%3Bi%3A0%3Bs%3A1%3A%220%22%3Bi%3A100%3Bs%3A1%3A%221%22%3Bi%3A0%3B%7D'
    3     1        INIT_FCALL                                               'unserialize'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !1, $6
    4     5        CAST                                          7  ~8      !1
          6        ASSIGN                                                   !2, ~8
    7     7      > FE_RESET_R                                       $10     !2, ->15
          8    > > FE_FETCH_R                                       ~11     $10, !3, ->15
          9    >   ASSIGN                                                   !4, ~11
    8    10        CONCAT                                           ~13     !4, '+%3D+'
         11        CONCAT                                           ~14     ~13, !3
         12        CONCAT                                           ~15     ~14, '%0A'
         13        ECHO                                                     ~15
    7    14      > JMP                                                      ->8
         15    >   FE_FREE                                                  $10
   10    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.37 ms | 1395 KiB | 15 Q