3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = range(4,17); print_r( array_filter($a, function($x){ return strpos( (string)$x, '5' ) === false; }) ); // $x = 5; // echo strpos((string)$x, '5') !== false;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uShos
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 4
          2        SEND_VAL                                                 17
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    5     5        INIT_FCALL                                               'print_r'
          6        INIT_FCALL                                               'array_filter'
          7        SEND_VAR                                                 !0
          8        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FuShos%3A5%240'
          9        SEND_VAL                                                 ~3
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                                 
    8    13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FuShos%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uShos
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'strpos'
          2        CAST                                          6  ~1      !0
          3        SEND_VAL                                                 ~1
          4        SEND_VAL                                                 '5'
          5        DO_ICALL                                         $2      
          6        TYPE_CHECK                                    4  ~3      $2
          7      > RETURN                                                   ~3
          8*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FuShos%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.98 ms | 1387 KiB | 21 Q