3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.gordon.se/?aguid%3fasdfasdfasdfasdfasdf'; $urlData = preg_split('/aguid\=/i', $url); print "urldata:" . print_r($urlData, 1); $aguid = preg_replace_callback('/([^\w{32}])/i', function($match){ return $match[0]; }, $urlData[1]); print "aguid:" . print_r($aguid, 1); var_dump($aguid);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8vDU0
function name:  (null)
number of ops:  30
compiled vars:  !0 = $url, !1 = $urlData, !2 = $aguid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.gordon.se%2F%3Faguid%253fasdfasdfasdfasdfasdf'
    3     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2Faguid%5C%3D%2Fi'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 1
          9        DO_ICALL                                         $6      
         10        CONCAT                                           ~7      'urldata%3A', $6
         11        ECHO                                                     ~7
    5    12        INIT_FCALL                                               'preg_replace_callback'
         13        SEND_VAL                                                 '%2F%28%5B%5E%5Cw%7B32%7D%5D%29%2Fi'
         14        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F8vDU0%3A5%240'
    7    15        SEND_VAL                                                 ~8
         16        FETCH_DIM_R                                      ~9      !1, 1
         17        SEND_VAL                                                 ~9
         18        DO_ICALL                                         $10     
    5    19        ASSIGN                                                   !2, $10
    8    20        INIT_FCALL                                               'print_r'
         21        SEND_VAR                                                 !2
         22        SEND_VAL                                                 1
         23        DO_ICALL                                         $12     
         24        CONCAT                                           ~13     'aguid%3A', $12
         25        ECHO                                                     ~13
    9    26        INIT_FCALL                                               'var_dump'
         27        SEND_VAR                                                 !2
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F8vDU0%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8vDU0
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        FETCH_DIM_R                                      ~1      !0, 0
          2      > RETURN                                                   ~1
    7     3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F8vDU0%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.27 ms | 1396 KiB | 21 Q