3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = range(1,150000); $t = microtime(true); array_filter($arr); $t = microtime(true) - $t; printf('array_filter took %0.6f seconds to filter through %d elements', $t, count($arr));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/brKdh
function name:  (null)
number of ops:  24
compiled vars:  !0 = $arr, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 150000
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    3     5        INIT_FCALL                                               'microtime'
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    4     9        INIT_FCALL                                               'array_filter'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    5    12        INIT_FCALL                                               'microtime'
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $7      
         15        SUB                                              ~8      $7, !1
         16        ASSIGN                                                   !1, ~8
    6    17        INIT_FCALL                                               'printf'
         18        SEND_VAL                                                 'array_filter+took+%250.6f+seconds+to+filter+through+%25d+elements'
         19        SEND_VAR                                                 !1
         20        COUNT                                            ~10     !0
         21        SEND_VAL                                                 ~10
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.29 ms | 1395 KiB | 21 Q