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($ar); // var_dump($obj->{'0'}, $obj->{0}, $ar['0'], $ar[0]); // foreach ($ar as $key => $value){ // echo gettype($key).'; '.$key.' = '.$value."\n"; // } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TDNfd
function name:  (null)
number of ops:  11
compiled vars:  !0 = $s, !1 = $obj, !2 = $ar
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                                         $4      
          4        ASSIGN                                                   !1, $4
    4     5        CAST                                          7  ~6      !1
          6        ASSIGN                                                   !2, ~6
    5     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
   10    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.11 ms | 1394 KiB | 17 Q