3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chars = array_map('chr', range(32, 126)); $diff = array_filter( $chars, function ($c) { return $c !== mb_convert_encoding($c, 'UTF-8', 'SJIS'); } ); var_dump($diff);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eLeHE
function name:  (null)
number of ops:  19
compiled vars:  !0 = $chars, !1 = $diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_map'
          1        SEND_VAL                                                 'chr'
          2        INIT_FCALL                                               'range'
          3        SEND_VAL                                                 32
          4        SEND_VAL                                                 126
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
    4     9        INIT_FCALL                                               'array_filter'
    5    10        SEND_VAR                                                 !0
    6    11        DECLARE_LAMBDA_FUNCTION                          ~5      [0]
         12        SEND_VAL                                                 ~5
    4    13        DO_ICALL                                         $6      
         14        ASSIGN                                                   !1, $6
   10    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eLeHE
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'mb_convert_encoding'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'UTF-8'
          4        SEND_VAL                                                 'SJIS'
          5        DO_ICALL                                         $1      
          6        IS_NOT_IDENTICAL                                 ~2      !0, $1
          7      > RETURN                                                   ~2
          8*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.36 ms | 1438 KiB | 18 Q