3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array ( 0 => array ( 'php' => "5.3", ), 1 => array ( 'php' => "5.3", ), 2 => array ( 'php' => "5.3", ), ); $loopSize = 100000; for ($i = 0; $i < $loopSize; $i++) { $a = array_map('serialize', $a); $a = array_unique($a); $a = array_map('unserialize', $a); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 4
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 4
Branch analysis from position: 21
Branch analysis from position: 4
filename:       /in/X4TOo
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a, !1 = $loopSize, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   16     1        ASSIGN                                                   !1, 100000
   18     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->19
   19     4    >   INIT_FCALL                                               'array_map'
          5        SEND_VAL                                                 'serialize'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !0, $6
   20     9        INIT_FCALL                                               'array_unique'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !0, $8
   21    13        INIT_FCALL                                               'array_map'
         14        SEND_VAL                                                 'unserialize'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $10     
         17        ASSIGN                                                   !0, $10
   18    18        PRE_INC                                                  !2
         19    >   IS_SMALLER                                               !2, !1
         20      > JMPNZ                                                    ~13, ->4
   22    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.54 ms | 1395 KiB | 17 Q