3v4l.org

run code in 300+ PHP versions simultaneously
<?php $inner = 's:1:"1";a:1:{i:0;O:12:"DateInterval":1:{s:1:"y";R:1;}}'; var_dump(unserialize('a:1:{i:0;C:3:"GMP":'.strlen($inner).':{'.$inner.'}}'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/27ADT
function name:  (null)
number of ops:  13
compiled vars:  !0 = $inner
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 's%3A1%3A%221%22%3Ba%3A1%3A%7Bi%3A0%3BO%3A12%3A%22DateInterval%22%3A1%3A%7Bs%3A1%3A%22y%22%3BR%3A1%3B%7D%7D'
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'unserialize'
          3        STRLEN                                           ~2      !0
          4        CONCAT                                           ~3      'a%3A1%3A%7Bi%3A0%3BC%3A3%3A%22GMP%22%3A', ~2
          5        CONCAT                                           ~4      ~3, '%3A%7B'
          6        CONCAT                                           ~5      ~4, !0
          7        CONCAT                                           ~6      ~5, '%7D%7D'
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.91 ms | 1394 KiB | 17 Q