3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string_1 = "AnaHasSomeApples"; // we need to add $string_1 = "HsSomeApples"; // we need to add $string_1 = "HasApplesAlready"; // already exists at the beginning $string_1 = (substr( $string_1 , 0, 3 ) !== "https") ? "Has".$string_1:$string_1; echo $string_1; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VkPlS
function name:  (null)
number of ops:  17
compiled vars:  !0 = $string_1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'AnaHasSomeApples'
    3     1        ASSIGN                                                   !0, 'HsSomeApples'
    4     2        ASSIGN                                                   !0, 'HasApplesAlready'
    6     3        INIT_FCALL                                               'substr'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 0
          6        SEND_VAL                                                 3
          7        DO_ICALL                                         $4      
          8        IS_NOT_IDENTICAL                                         $4, 'https'
          9      > JMPZ                                                     ~5, ->13
         10    >   CONCAT                                           ~6      'Has', !0
         11        QM_ASSIGN                                        ~7      ~6
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~7      !0
         14    >   ASSIGN                                                   !0, ~7
    7    15        ECHO                                                     !0
    9    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
128.51 ms | 1432 KiB | 14 Q