3v4l.org

run code in 300+ PHP versions simultaneously
<?php $serialized = <<<ROLES a:2:{i:0;s:16:"ROLE_SUPER_ADMIN";i:1;s:10:"ROLE_ADMIN";} ROLES; $roles = unserialize($serialized); $roles[] = 'ROLE_SONATA_ADMIN'; var_dump(serialize($roles));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/06VeP
function name:  (null)
number of ops:  14
compiled vars:  !0 = $serialized, !1 = $roles
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'a%3A2%3A%7Bi%3A0%3Bs%3A16%3A%22ROLE_SUPER_ADMIN%22%3Bi%3A1%3Bs%3A10%3A%22ROLE_ADMIN%22%3B%7D'
    6     1        INIT_FCALL                                               'unserialize'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    7     5        ASSIGN_DIM                                               !1
          6        OP_DATA                                                  'ROLE_SONATA_ADMIN'
    8     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'serialize'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.35 ms | 1394 KiB | 19 Q