3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = 'PRICE:384.00'; $parts = explode(":", $string); $newPrice = $parts[1] * 2; // Multiply the second value, which is 384.00 echo $parts[0].":".$newPrice;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Qgi4b
function name:  (null)
number of ops:  14
compiled vars:  !0 = $string, !1 = $parts, !2 = $newPrice
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'PRICE%3A384.00'
    3     1        INIT_FCALL                                                   'explode'
          2        SEND_VAL                                                     '%3A'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $4      
          5        ASSIGN                                                       !1, $4
    5     6        FETCH_DIM_R                                          ~6      !1, 1
          7        MUL                                                  ~7      ~6, 2
          8        ASSIGN                                                       !2, ~7
    6     9        FETCH_DIM_R                                          ~9      !1, 0
         10        CONCAT                                               ~10     ~9, '%3A'
         11        CONCAT                                               ~11     ~10, !2
         12        ECHO                                                         ~11
    7    13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.16 ms | 2007 KiB | 14 Q