3v4l.org

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

Function %00%7Bclosure%7D%2Fin%2FfqPCk%3A5%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fqPCk
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'strstr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '0'
          4        DO_ICALL                                         $1      
          5      > JMPZ                                                     $1, ->7
          6    > > RETURN                                                   <false>
    7     7    > > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.05 ms | 1395 KiB | 21 Q