3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a= explode ('|' , 'intro|chorus|verses?|chords|main|riff|bridge|pre|solo|legend|duration|misc|tablature|section|outro|middle|part|finish|once|twice|first|second|third|note|again|end(ing)?|start(ing)?|guitar|then|one|two|three|lyrics|pattern'); sort($a); echo "'".implode("\n'",$a)."'";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8PUUh
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '%7C'
          2        SEND_VAL                                                 'intro%7Cchorus%7Cverses%3F%7Cchords%7Cmain%7Criff%7Cbridge%7Cpre%7Csolo%7Clegend%7Cduration%7Cmisc%7Ctablature%7Csection%7Coutro%7Cmiddle%7Cpart%7Cfinish%7Conce%7Ctwice%7Cfirst%7Csecond%7Cthird%7Cnote%7Cagain%7Cend%28ing%29%3F%7Cstart%28ing%29%3F%7Cguitar%7Cthen%7Cone%7Ctwo%7Cthree%7Clyrics%7Cpattern'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    4     5        INIT_FCALL                                               'sort'
          6        SEND_REF                                                 !0
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'implode'
          9        SEND_VAL                                                 '%0A%27'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        CONCAT                                           ~5      '%27', $4
         13        CONCAT                                           ~6      ~5, '%27'
         14        ECHO                                                     ~6
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.68 ms | 1394 KiB | 19 Q