3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = array_filter( array_map('strtoupper', explode(htmlentities("Hello World")) ), fn($v) => $v != 'O' ); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tLO0s
function name:  (null)
number of ops:  20
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_filter'
    4     1        INIT_FCALL                                               'array_map'
          2        SEND_VAL                                                 'strtoupper'
    5     3        INIT_FCALL                                               'explode'
          4        INIT_FCALL                                               'htmlentities'
          5        SEND_VAL                                                 'Hello+World'
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
    6    12        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FtLO0s%3A6%240'
    7    13        SEND_VAL                                                 ~4
         14        DO_ICALL                                         $5      
    3    15        ASSIGN                                                   !0, $5
    9    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FtLO0s%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.6 ms | 1395 KiB | 23 Q