3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo sprint_f('%s est gay',eval((rand(0,1)?current:end)(explode(',',"yves,spout,xa,steeve"))));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QIvsE
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'sprint_f'
          1        SEND_VAL_EX                                              '%25s+est+gay'
          2        INIT_FCALL                                               'rand'
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $0      
          6      > JMPZ                                                     $0, ->10
          7    >   FETCH_CONSTANT                                   ~1      'current'
          8        QM_ASSIGN                                        ~2      ~1
          9      > JMP                                                      ->12
         10    >   FETCH_CONSTANT                                   ~3      'end'
         11        QM_ASSIGN                                        ~2      ~3
         12    >   INIT_DYNAMIC_CALL                                        ~2
         13        INIT_FCALL                                               'explode'
         14        SEND_VAL                                                 '%2C'
         15        SEND_VAL                                                 'yves%2Cspout%2Cxa%2Csteeve'
         16        DO_ICALL                                         $4      
         17        SEND_VAR_NO_REF_EX                                       $4
         18        DO_FCALL                                      0  $5      
         19        INCLUDE_OR_EVAL                                  $6      $5, EVAL
         20        SEND_VAR_NO_REF_EX                                       $6
         21        DO_FCALL                                      0  $7      
         22        ECHO                                                     $7
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.86 ms | 1395 KiB | 17 Q