3v4l.org

run code in 300+ PHP versions simultaneously
<?php $description = "ORG-000012 – Name of variation – Quantity: 12 Pack – $14.95"; $descriptionArray = explode(" – ", $description); $finalDescription = $descriptionArray[1]." – ".$descriptionArray[2]; var_dump($finalDescription);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/85LeU
function name:  (null)
number of ops:  15
compiled vars:  !0 = $description, !1 = $descriptionArray, !2 = $finalDescription
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'ORG-000012+%E2%80%93+Name+of+variation+%E2%80%93+Quantity%3A+12+Pack+%E2%80%93+%2414.95'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '+%E2%80%93+'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        FETCH_DIM_R                                      ~6      !1, 1
          7        CONCAT                                           ~7      ~6, '+%E2%80%93+'
          8        FETCH_DIM_R                                      ~8      !1, 2
          9        CONCAT                                           ~9      ~7, ~8
         10        ASSIGN                                                   !2, ~9
    5    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.81 ms | 997 KiB | 15 Q