3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = 123456; echo implode(array_map(function($v){ return $v % 2 !== 0 ? mt_rand(0, 9) : $v; }, str_split($number)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h8U0A
function name:  (null)
number of ops:  14
compiled vars:  !0 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 123456
    4     1        INIT_FCALL                                               'implode'
          2        INIT_FCALL                                               'array_map'
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fh8U0A%3A4%240'
    6     4        SEND_VAL                                                 ~2
          5        INIT_FCALL                                               'str_split'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        ECHO                                                     $5
         13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fh8U0A%3A4%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h8U0A
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        MOD                                              ~1      !0, 2
          2        IS_NOT_IDENTICAL                                         ~1, 0
          3      > JMPZ                                                     ~2, ->10
          4    >   INIT_FCALL                                               'mt_rand'
          5        SEND_VAL                                                 0
          6        SEND_VAL                                                 9
          7        DO_ICALL                                         $3      
          8        QM_ASSIGN                                        ~4      $3
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~4      !0
         11    > > RETURN                                                   ~4
    6    12*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fh8U0A%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.48 ms | 1396 KiB | 21 Q