3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo array_reduce(array(' ','world'),create_function('$total,$new','return $total.$new;'),'hello');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IC5QE
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'array_reduce'
          1        SEND_VAL                                                 <array>
          2        INIT_FCALL_BY_NAME                                       'create_function'
          3        SEND_VAL_EX                                              '%24total%2C%24new'
          4        SEND_VAL_EX                                              'return+%24total.%24new%3B'
          5        DO_FCALL                                      0  $0      
          6        SEND_VAR                                                 $0
          7        SEND_VAL                                                 'hello'
          8        DO_ICALL                                         $1      
          9        ECHO                                                     $1
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.52 ms | 1398 KiB | 15 Q