3v4l.org

run code in 300+ PHP versions simultaneously
<?php mt_srand(125664); echo(ucfirst(join("", array_map(function($x) {return chr(mt_rand(ord("a"), ord("z")));}, array_fill(1, mt_rand(3, 8), "a")))));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TYS6f
function name:  (null)
number of ops:  26
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mt_srand'
          1        SEND_VAL                                                 125664
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'ucfirst'
          4        INIT_FCALL                                               'join'
          5        SEND_VAL                                                 ''
          6        INIT_FCALL                                               'array_map'
          7        DECLARE_LAMBDA_FUNCTION                          ~1      [0]
          8        SEND_VAL                                                 ~1
          9        INIT_FCALL                                               'array_fill'
         10        SEND_VAL                                                 1
         11        INIT_FCALL                                               'mt_rand'
         12        SEND_VAL                                                 3
         13        SEND_VAL                                                 8
         14        DO_ICALL                                         $2      
         15        SEND_VAR                                                 $2
         16        SEND_VAL                                                 'a'
         17        DO_ICALL                                         $3      
         18        SEND_VAR                                                 $3
         19        DO_ICALL                                         $4      
         20        SEND_VAR                                                 $4
         21        DO_ICALL                                         $5      
         22        SEND_VAR                                                 $5
         23        DO_ICALL                                         $6      
         24        ECHO                                                     $6
         25      > 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/TYS6f
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'chr'
          2        INIT_FCALL                                               'mt_rand'
          3        SEND_VAL                                                 97
          4        SEND_VAL                                                 122
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                         $2      
          8      > RETURN                                                   $2
          9*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.86 ms | 1007 KiB | 20 Q