3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); echo 'a'.'<a'; $time = microtime(true) - $time; echo 'array_diff() took ' . number_format($time, 3) . ' seconds ';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/alecM
function name:  (null)
number of ops:  18
compiled vars:  !0 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    5     4        ECHO                                                     'a%3Ca'
    7     5        INIT_FCALL                                               'microtime'
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $3      
          8        SUB                                              ~4      $3, !0
          9        ASSIGN                                                   !0, ~4
    9    10        INIT_FCALL                                               'number_format'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 3
         13        DO_ICALL                                         $6      
         14        CONCAT                                           ~7      'array_diff%28%29+took+', $6
         15        CONCAT                                           ~8      ~7, '+seconds+'
         16        ECHO                                                     ~8
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.47 ms | 1394 KiB | 17 Q