3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lines = array( 'keud orfd', 'signs %26 loves', 'love\'s and film', 'prosdfsd sdf', 'test', ); $callback = function($line){ return strpbrk($line, '%$@') === false; }; for ($i = 1; $i <= 5000; $i++) { $result = array_filter($lines, $callback); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
Branch analysis from position: 5
filename:       /in/GsLac
function name:  (null)
number of ops:  14
compiled vars:  !0 = $lines, !1 = $callback, !2 = $i, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FGsLac%3A11%240'
          2        ASSIGN                                                   !1, ~5
   15     3        ASSIGN                                                   !2, 1
          4      > JMP                                                      ->11
   16     5    >   INIT_FCALL                                               'array_filter'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !3, $8
   15    10        PRE_INC                                                  !2
         11    >   IS_SMALLER_OR_EQUAL                                      !2, 5000
         12      > JMPNZ                                                    ~11, ->5
   17    13    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FGsLac%3A11%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GsLac
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1        INIT_FCALL                                               'strpbrk'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%25%24%40'
          4        DO_ICALL                                         $1      
          5        TYPE_CHECK                                    4  ~2      $1
          6      > RETURN                                                   ~2
   13     7*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FGsLac%3A11%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.46 ms | 1395 KiB | 17 Q