3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET = array_map(function() { $a = 'TESTING TESTING TESTING TESTING TESTING TESTING'; return $a.$a.$a.$a; }, range(0, 500)); $before = microtime(1); array_walk_recursive($_GET, function($item) { return stripslashes($item); }); echo microtime(1) - $before;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7RaXv
function name:  (null)
number of ops:  27
compiled vars:  !0 = $before
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_map'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F7RaXv%3A3%240'
          2        SEND_VAL                                                 ~2
          3        INIT_FCALL                                               'range'
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 500
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        FETCH_W                      global              $1      '_GET'
         10        ASSIGN                                                   $1, $4
    5    11        INIT_FCALL                                               'microtime'
         12        SEND_VAL                                                 1
         13        DO_ICALL                                         $6      
         14        ASSIGN                                                   !0, $6
    7    15        INIT_FCALL                                               'array_walk_recursive'
         16        FETCH_W                      global              $8      '_GET'
         17        SEND_REF                                                 $8
         18        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F7RaXv%3A7%241'
         19        SEND_VAL                                                 ~9
         20        DO_ICALL                                                 
    9    21        INIT_FCALL                                               'microtime'
         22        SEND_VAL                                                 1
         23        DO_ICALL                                         $11     
         24        SUB                                              ~12     $11, !0
         25        ECHO                                                     ~12
         26      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F7RaXv%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7RaXv
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'TESTING+TESTING+TESTING+TESTING+TESTING+TESTING'
          1        CONCAT                                           ~2      !0, !0
          2        CONCAT                                           ~3      ~2, !0
          3        CONCAT                                           ~4      ~3, !0
          4      > RETURN                                                   ~4
          5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F7RaXv%3A3%240

Function %00%7Bclosure%7D%2Fin%2F7RaXv%3A7%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7RaXv
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'stripslashes'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4      > RETURN                                                   $1
          5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F7RaXv%3A7%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.4 ms | 1400 KiB | 23 Q