3v4l.org

run code in 300+ PHP versions simultaneously
<?php $acceptLanguagesHeader = "da, en-gb;q=0.8, en;q=0.7"; $languageParts = explode(';', $acceptLanguagesHeader); var_dump($languageParts); $languagesString = reset($languageParts); var_dump(explode(',', $languagesString));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n63OF
function name:  (null)
number of ops:  21
compiled vars:  !0 = $acceptLanguagesHeader, !1 = $languageParts, !2 = $languagesString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'da%2C+en-gb%3Bq%3D0.8%2C+en%3Bq%3D0.7'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%3B'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'reset'
         10        SEND_REF                                                 !1
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
    6    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'explode'
         15        SEND_VAL                                                 '%2C'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $9      
         18        SEND_VAR                                                 $9
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.47 ms | 1395 KiB | 19 Q