3v4l.org

run code in 300+ PHP versions simultaneously
<?php function autoloader($className) { echo "Autoload: '$className'\n"; } $classStr = 'O:1:"a":0:{}'; spl_autoload_register('autoloader'); var_dump(unserialize($classStr));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lY6tZ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $classStr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'O%3A1%3A%22a%22%3A0%3A%7B%7D'
    9     1        INIT_FCALL                                               'spl_autoload_register'
          2        SEND_VAL                                                 'autoloader'
          3        DO_ICALL                                                 
   11     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'unserialize'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function autoloader:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lY6tZ
function name:  autoloader
number of ops:  6
compiled vars:  !0 = $className
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ROPE_INIT                                     3  ~2      'Autoload%3A+%27'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%27%0A'
          4        ECHO                                                     ~1
    5     5      > RETURN                                                   null

End of function autoloader

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.72 ms | 1395 KiB | 19 Q