3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); $i=0; while($i < 60000) { unserialize(serialize(array('a'=>'b','c'=>'d'))); } $time = microtime(true) - $time; echo 'array_diff() took ' . number_format($time, 3) . ' seconds and returned ' . count($data_diff1) . " entries\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
Branch analysis from position: 6
filename:       /in/lO7Yv
function name:  (null)
number of ops:  30
compiled vars:  !0 = $time, !1 = $i, !2 = $data_diff1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    5     4        ASSIGN                                                   !1, 0
    6     5      > JMP                                                      ->12
    7     6    >   INIT_FCALL                                               'unserialize'
          7        INIT_FCALL                                               'serialize'
          8        SEND_VAL                                                 <array>
          9        DO_ICALL                                         $6      
         10        SEND_VAR                                                 $6
         11        DO_ICALL                                                 
    6    12    >   IS_SMALLER                                               !1, 60000
         13      > JMPNZ                                                    ~8, ->6
   10    14    >   INIT_FCALL                                               'microtime'
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $9      
         17        SUB                                              ~10     $9, !0
         18        ASSIGN                                                   !0, ~10
   12    19        INIT_FCALL                                               'number_format'
         20        SEND_VAR                                                 !0
         21        SEND_VAL                                                 3
         22        DO_ICALL                                         $12     
         23        CONCAT                                           ~13     'array_diff%28%29+took+', $12
         24        CONCAT                                           ~14     ~13, '+seconds+and+returned+'
         25        COUNT                                            ~15     !2
         26        CONCAT                                           ~16     ~14, ~15
         27        CONCAT                                           ~17     ~16, '+entries%0A'
         28        ECHO                                                     ~17
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.9 ms | 1396 KiB | 21 Q