3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Monko { var $dizz = 1; } $obj = new Monko(); $ser = serialize($obj); $class = 'Librarize_..\\/\\PSR-0\\RoACKs'; $buffer = sprintf('O:%d:"%s"', strlen($class), $class) . substr($ser, 11); unserialize($buffer);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mqIQu
function name:  (null)
number of ops:  24
compiled vars:  !0 = $obj, !1 = $ser, !2 = $class, !3 = $buffer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $4      'Monko'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    9     3        INIT_FCALL                                               'serialize'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !1, $7
   10     7        ASSIGN                                                   !2, 'Librarize_..%5C%2F%5CPSR-0%5CRoACKs'
   11     8        INIT_FCALL                                               'sprintf'
          9        SEND_VAL                                                 'O%3A%25d%3A%22%25s%22'
         10        STRLEN                                           ~10     !2
         11        SEND_VAL                                                 ~10
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $11     
         14        INIT_FCALL                                               'substr'
         15        SEND_VAR                                                 !1
         16        SEND_VAL                                                 11
         17        DO_ICALL                                         $12     
         18        CONCAT                                           ~13     $11, $12
         19        ASSIGN                                                   !3, ~13
   13    20        INIT_FCALL                                               'unserialize'
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Class Monko: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.17 ms | 1386 KiB | 21 Q