3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register(function($name) { var_dump($name); }); $string = 'O:6:"Foobar":2:{s:3:"foo";s:1:"1";s:3:"bar";s:1:"2";}'; $result = unserialize($string); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NW5j4
function name:  (null)
number of ops:  13
compiled vars:  !0 = $string, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FNW5j4%3A2%240'
    4     2        SEND_VAL                                                 ~2
          3        DO_ICALL                                                 
    6     4        ASSIGN                                                   !0, 'O%3A6%3A%22Foobar%22%3A2%3A%7Bs%3A3%3A%22foo%22%3Bs%3A1%3A%221%22%3Bs%3A3%3A%22bar%22%3Bs%3A1%3A%222%22%3B%7D'
    8     5        INIT_FCALL                                               'unserialize'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
   10     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FNW5j4%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NW5j4
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    4     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FNW5j4%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.67 ms | 1395 KiB | 19 Q