3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pismena = "ABA"; echo array_filter(count_chars($pismena, 1), function($c) { return $c > 1; })[65];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YdhnH
function name:  (null)
number of ops:  13
compiled vars:  !0 = $pismena
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ABA'
    4     1        INIT_FCALL                                               'array_filter'
          2        INIT_FCALL                                               'count_chars'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FYdhnH%3A4%240'
          8        SEND_VAL                                                 ~3
          9        DO_ICALL                                         $4      
         10        FETCH_DIM_R                                      ~5      $4, 65
         11        ECHO                                                     ~5
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FYdhnH%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YdhnH
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        IS_SMALLER                                       ~1      1, !0
          2      > RETURN                                                   ~1
          3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FYdhnH%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.51 ms | 1395 KiB | 17 Q