3v4l.org

run code in 300+ PHP versions simultaneously
<?php $className = "SplFileInfo"; $serializedString = sprintf( '%s:%d:"%s":0:{}', 'C', strlen($className), $className ); $instance = unserialize($serializedString); var_dump($instance);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F1MiT
function name:  (null)
number of ops:  17
compiled vars:  !0 = $className, !1 = $serializedString, !2 = $instance
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'SplFileInfo'
    5     1        INIT_FCALL                                               'sprintf'
    6     2        SEND_VAL                                                 '%25s%3A%25d%3A%22%25s%22%3A0%3A%7B%7D'
    7     3        SEND_VAL                                                 'C'
    8     4        STRLEN                                           ~4      !0
          5        SEND_VAL                                                 ~4
    9     6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
    5     8        ASSIGN                                                   !1, $5
   11     9        INIT_FCALL                                               'unserialize'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
   13    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.02 ms | 1394 KiB | 19 Q