3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = "onclick=\"double_list_move(\$('{$selectableName}'), \$('{$selectedName}')); return false;\""; if (!isset($options['alt'])) { $path_pos = strrpos($source, '/'); $dot_pos = strrpos($source, '.'); $begin = $path_pos ? $path_pos + 1 : 0; $nb_str = ($dot_pos ? $dot_pos : strlen($source)) - $begin; $options['alt'] = ucfirst(substr($source, $begin, $nb_str)); } echo $options; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 42
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
Branch analysis from position: 28
Branch analysis from position: 42
filename:       /in/YKE2s
function name:  (null)
number of ops:  44
compiled vars:  !0 = $options, !1 = $selectableName, !2 = $selectedName, !3 = $path_pos, !4 = $source, !5 = $dot_pos, !6 = $begin, !7 = $nb_str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ROPE_INIT                                     5  ~9      'onclick%3D%22double_list_move%28%24%28%27'
          1        ROPE_ADD                                      1  ~9      ~9, !1
          2        ROPE_ADD                                      2  ~9      ~9, '%27%29%2C+%24%28%27'
          3        ROPE_ADD                                      3  ~9      ~9, !2
          4        ROPE_END                                      4  ~8      ~9, '%27%29%29%3B+return+false%3B%22'
          5        ASSIGN                                                   !0, ~8
    5     6        ISSET_ISEMPTY_DIM_OBJ                         0  ~13     !0, 'alt'
          7        BOOL_NOT                                         ~14     ~13
          8      > JMPZ                                                     ~14, ->42
    7     9    >   INIT_FCALL                                               'strrpos'
         10        SEND_VAR                                                 !4
         11        SEND_VAL                                                 '%2F'
         12        DO_ICALL                                         $15     
         13        ASSIGN                                                   !3, $15
    8    14        INIT_FCALL                                               'strrpos'
         15        SEND_VAR                                                 !4
         16        SEND_VAL                                                 '.'
         17        DO_ICALL                                         $17     
         18        ASSIGN                                                   !5, $17
    9    19      > JMPZ                                                     !3, ->23
         20    >   ADD                                              ~19     !3, 1
         21        QM_ASSIGN                                        ~20     ~19
         22      > JMP                                                      ->24
         23    >   QM_ASSIGN                                        ~20     0
         24    >   ASSIGN                                                   !6, ~20
   10    25      > JMPZ                                                     !5, ->28
         26    >   QM_ASSIGN                                        ~22     !5
         27      > JMP                                                      ->30
         28    >   STRLEN                                           ~23     !4
         29        QM_ASSIGN                                        ~22     ~23
         30    >   SUB                                              ~24     ~22, !6
         31        ASSIGN                                                   !7, ~24
   11    32        INIT_FCALL                                               'ucfirst'
         33        INIT_FCALL                                               'substr'
         34        SEND_VAR                                                 !4
         35        SEND_VAR                                                 !6
         36        SEND_VAR                                                 !7
         37        DO_ICALL                                         $27     
         38        SEND_VAR                                                 $27
         39        DO_ICALL                                         $28     
         40        ASSIGN_DIM                                               !0, 'alt'
         41        OP_DATA                                                  $28
   14    42    >   ECHO                                                     !0
   16    43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.87 ms | 1400 KiB | 19 Q