3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.78 ms | 1400 KiB | 19 Q