3v4l.org

run code in 500+ PHP versions simultaneously
<?php // Online PHP compiler to run PHP program online // Print "Start small. Ship something." message echo "Start small. Ship something."; $array = [ 'a' => 'dog', 'b' => 'cat', 'c' => 'cow', 'd' => 'duck', 'e' => 'goose', 'f' => 'elephant' ]; var_dump(array_all($array, function (string $value) { return strlen($value) < 12; })); ?><?php // Online PHP compiler to run PHP program online // Print "Start small. Ship something." message echo "Start small. Ship something."; $array = [ 'a' => 'dog', 'b' => 'cat', 'c' => 'cow', 'd' => 'duck', 'e' => 'goose', 'f' => 'elephant' ]; var_dump(array_all($array, function (string $value) { return strlen($value) < 12; })); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L3iVi
function name:  (null)
number of ops:  21
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                         'Start+small.+Ship+something.'
    7     1        ASSIGN                                                       !0, <array>
   16     2        INIT_FCALL                                                   'var_dump'
          3        INIT_FCALL                                                   'array_all'
          4        SEND_VAR                                                     !0
          5        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
   18     6        SEND_VAL                                                     ~2
   16     7        DO_ICALL                                             $3      
   18     8        SEND_VAR                                                     $3
   16     9        DO_ICALL                                                     
   22    10        ECHO                                                         'Start+small.+Ship+something.'
   25    11        ASSIGN                                                       !0, <array>
   34    12        INIT_FCALL                                                   'var_dump'
         13        INIT_FCALL                                                   'array_all'
         14        SEND_VAR                                                     !0
         15        DECLARE_LAMBDA_FUNCTION                              ~6      [1]
   36    16        SEND_VAL                                                     ~6
   34    17        DO_ICALL                                             $7      
   36    18        SEND_VAR                                                     $7
   34    19        DO_ICALL                                                     
   37    20      > 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/L3iVi
function name:  {closure:/in/L3iVi:16}
number of ops:  5
compiled vars:  !0 = $value
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   16     0  E >   RECV                                                 !0      
   17     1        STRLEN                                               ~1      !0
          2        IS_SMALLER                                           ~2      ~1, 12
          3      > RETURN                                                       ~2
   18     4*     > RETURN                                                       null

End of Dynamic Function 0

Dynamic Function 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L3iVi
function name:  {closure:/in/L3iVi:34}
number of ops:  5
compiled vars:  !0 = $value
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   34     0  E >   RECV                                                 !0      
   35     1        STRLEN                                               ~1      !0
          2        IS_SMALLER                                           ~2      ~1, 12
          3      > RETURN                                                       ~2
   36     4*     > RETURN                                                       null

End of Dynamic Function 1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.75 ms | 1378 KiB | 15 Q