3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "id[hi]=2&action=save&title=Corporate+Identity&short=identity&colour=%23ff751a&categoryID=1&bookURL=%2Ffiles%2Fbooks%2Fart_of_corporate_identity.pdf&bookImage=%2Ffiles%2Fimages%2Farticle-thumbs%2Fidentity.png&intro=%3Cp%3E%3Cbr+data-mce-bogus%3D%221%22%3E%3C%2Fp%3E&section%5B%5D%5Btitle%5D=Your+current+identity&section%5B%5D%5Bquestion%5D%5B%5D%5Btype%5D=5&section%5B%5D%5Bquestion%5D%5B%5D%5Btext%5D=What's+going+on+here%3F&section%5B%5D%5Bquestion%5D%5B%5D%5Boption%5D%5B%5D=This+is+option+1&section%5B%5D%5Bquestion%5D%5B%5D%5Boption%5D%5B%5D=Option+2!&section%5B%5D%5Bquestion%5D%5B%5D%5Boption%5D%5B%5D=And+number+3!&section%5B%5D%5Bquestion%5D%5B%5D%5Btype%5D=1&section%5B%5D%5Bquestion%5D%5B%5D%5Btext%5D=Hi&section%5B%5D%5Bquestion%5D%5B%5D%5Btype%5D=1&section%5B%5D%5Bquestion%5D%5B%5D%5Btext%5D=Hello&section%5B%5D%5Btitle%5D=Identity+management&section%5B%5D%5Btitle%5D=Brand+building&section%5B%5D%5Btitle%5D=Recognition&section%5B%5D%5Btitle%5D=Your+views+on+change&section%5B%5D%5Btitle%5D=Developing+a+new+identity"; $p = array_chunk(preg_split('/[&=]/', $s), 2); preg_match('/(\A[\[\]]*([^\[\]]+)\]*(.*))/', "id[test]", $matches); echo var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t6jsS
function name:  (null)
number of ops:  20
compiled vars:  !0 = $s, !1 = $p, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'id%5Bhi%5D%3D2%26action%3Dsave%26title%3DCorporate%2BIdentity%26short%3Didentity%26colour%3D%2523ff751a%26categoryID%3D1%26bookURL%3D%252Ffiles%252Fbooks%252Fart_of_corporate_identity.pdf%26bookImage%3D%252Ffiles%252Fimages%252Farticle-thumbs%252Fidentity.png%26intro%3D%253Cp%253E%253Cbr%2Bdata-mce-bogus%253D%25221%2522%253E%253C%252Fp%253E%26section%255B%255D%255Btitle%255D%3DYour%2Bcurrent%2Bidentity%26section%255B%255D%255Bquestion%255D%255B%255D%255Btype%255D%3D5%26section%255B%255D%255Bquestion%255D%255B%255D%255Btext%255D%3DWhat%27s%2Bgoing%2Bon%2Bhere%253F%26section%255B%255D%255Bquestion%255D%255B%255D%255Boption%255D%255B%255D%3DThis%2Bis%2Boption%2B1%26section%255B%255D%255Bquestion%255D%255B%255D%255Boption%255D%255B%255D%3DOption%2B2%21%26section%255B%255D%255Bquestion%255D%255B%255D%255Boption%255D%255B%255D%3DAnd%2Bnumber%2B3%21%26section%255B%255D%255Bquestion%255D%255B%255D%255Btype%255D%3D1%26section%255B%255D%255Bquestion%255D%255B%255D%255Btext%255D%3DHi%26section%255B%255D%255Bquestion%255D%255B%255D%255Btype%255D%3D1%26section%255B%255D%255Bquestion%255D%255B%255D%255Btext%255D%3DHello%26section%255B%255D%255Btitle%255D%3DIdentity%2Bmanagement%26section%255B%255D%255Btitle%255D%3DBrand%2Bbuilding%26section%255B%255D%255Btitle%255D%3DRecognition%26section%255B%255D%255Btitle%255D%3DYour%2Bviews%2Bon%2Bchange%26section%255B%255D%255Btitle%255D%3DDeveloping%2Ba%2Bnew%2Bidentity'
    3     1        INIT_FCALL                                               'array_chunk'
          2        INIT_FCALL                                               'preg_split'
          3        SEND_VAL                                                 '%2F%5B%26%3D%5D%2F'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        SEND_VAL                                                 2
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    4    10        INIT_FCALL                                               'preg_match'
         11        SEND_VAL                                                 '%2F%28%5CA%5B%5C%5B%5C%5D%5D%2A%28%5B%5E%5C%5B%5C%5D%5D%2B%29%5C%5D%2A%28.%2A%29%29%2F'
         12        SEND_VAL                                                 'id%5Btest%5D'
         13        SEND_REF                                                 !2
         14        DO_ICALL                                                 
    5    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $8      
         18        ECHO                                                     $8
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.23 ms | 1388 KiB | 21 Q