3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hoge = array(5,5,3,2,1,3); $hogehoge = array_map(function($arg){ if(array_values($arg)>1){ return $arg; } },array_count_values($hoge)); var_dump($hogehoge);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RMj2B
function name:  (null)
number of ops:  14
compiled vars:  !0 = $hoge, !1 = $hogehoge
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'array_map'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FRMj2B%3A3%240'
    7     3        SEND_VAL                                                 ~3
          4        INIT_FCALL                                               'array_count_values'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                         $5      
    3     9        ASSIGN                                                   !1, $5
    9    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FRMj2B%3A3%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/RMj2B
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'array_values'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4        IS_SMALLER                                               1, $1
          5      > JMPZ                                                     ~2, ->7
    5     6    > > RETURN                                                   !0
    7     7    > > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.95 ms | 1395 KiB | 21 Q