3v4l.org

run code in 500+ PHP versions simultaneously
<?php $data = array_map( Closure::fromCallable('trim'), [' x', 'z '] ); var_dump($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7tiOX
function name:  (null)
number of ops:  12
compiled vars:  !0 = $data
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'array_map'
    3     1        INIT_STATIC_METHOD_CALL                                      'Closure', 'fromCallable'
          2        SEND_VAL                                                     'trim'
          3        DO_FCALL                                          0  $1      
          4        SEND_VAR                                                     $1
    4     5        SEND_VAL                                                     <array>
    2     6        DO_ICALL                                             $2      
          7        ASSIGN                                                       !0, $2
    6     8        INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !0
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.05 ms | 1453 KiB | 15 Q