3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 'ra'; $test .= 'nd'; echo $test(0, 9); // то же самое что и echo rand(0, 9); echo 'rand'(0, 9);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ddG1d
function name:  (null)
number of ops:  18
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ra'
    4     1        ASSIGN_OP                                     8          !0, 'nd'
    5     2        INIT_DYNAMIC_CALL                                        !0
          3        SEND_VAL_EX                                              0
          4        SEND_VAL_EX                                              9
          5        DO_FCALL                                      0  $3      
          6        ECHO                                                     $3
    9     7        INIT_FCALL                                               'rand'
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 9
         10        DO_ICALL                                         $4      
         11        ECHO                                                     $4
   11    12        INIT_FCALL                                               'rand'
         13        SEND_VAL                                                 0
         14        SEND_VAL                                                 9
         15        DO_ICALL                                         $5      
         16        ECHO                                                     $5
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.65 ms | 1394 KiB | 15 Q