3v4l.org

run code in 300+ PHP versions simultaneously
<?php $description = "ORG-000012 – Name of variation – Quantity: 12 Pack – $14.95"; $descriptionArray = explode(" – ", $description); array_pop($descriptionArray); array_shift($descriptionArray); var_dump($descriptionArray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ErLrm
function name:  (null)
number of ops:  16
compiled vars:  !0 = $description, !1 = $descriptionArray
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                                         $3      
          5        ASSIGN                                                   !1, $3
    4     6        INIT_FCALL                                               'array_pop'
          7        SEND_REF                                                 !1
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'array_shift'
         10        SEND_REF                                                 !1
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.89 ms | 1000 KiB | 17 Q