3v4l.org

run code in 500+ PHP versions simultaneously
<?php $category = array('Home', 'Kategória 1', 'Kategória 2', 'Kategória 3', 'Kategória 4'); $oldcat = serialize($category); echo( implode( "|", array_slice( $category, 1, count($category) // kompatibilita s PHP =< 5.2.4 ) ) ); // pole sa nezmenilo assert($oldcat === serialize($category) /*, 'Pole $category sa zmenilo' */);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ttA2F
function name:  (null)
number of ops:  23
compiled vars:  !0 = $category, !1 = $oldcat
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        INIT_FCALL                                                   'serialize'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $3      
          4        ASSIGN                                                       !1, $3
    9     5        INIT_FCALL                                                   'array_slice'
   10     6        SEND_VAR                                                     !0
   11     7        SEND_VAL                                                     1
   12     8        COUNT                                                ~5      !0
          9        SEND_VAL                                                     ~5
    9    10        DO_ICALL                                             $6      
    7    11        FRAMELESS_ICALL_2                implode             ~7      '%7C', $6
   12    12        ECHO                                                         ~7
   19    13        ASSERT_CHECK                                                 
         14        INIT_FCALL                                                   'assert'
         15        INIT_FCALL                                                   'serialize'
         16        SEND_VAR                                                     !0
         17        DO_ICALL                                             $8      
         18        IS_IDENTICAL                                         ~9      !1, $8
         19        SEND_VAL                                                     ~9
         20        SEND_VAL                                                     'assert%28%24oldcat+%3D%3D%3D+serialize%28%24category%29%29'
         21        DO_ICALL                                                     
         22      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.65 ms | 2143 KiB | 11 Q