3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_encode('foo\bar'); echo json_decode('"name:*br\\\\:\u00d6*"'); echo json_decode('{ "query": { "bool": { "must": [ { "query_string": { "query": "name:*br\\Ö*", "default_operator": "AND", "analyze_wildcard": "true" } } ], "should": [ { "match": { "name": { "query": "br\\:Ö", "type": "phrase_prefix" } } } ] } } }');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mOu53
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_encode'
          1        SEND_VAL                                                 'foo%5Cbar'
          2        DO_ICALL                                         $0      
          3        ECHO                                                     $0
    4     4        INIT_FCALL                                               'json_decode'
          5        SEND_VAL                                                 '%22name%3A%2Abr%5C%5C%3A%5Cu00d6%2A%22'
          6        DO_ICALL                                         $1      
          7        ECHO                                                     $1
    5     8        INIT_FCALL                                               'json_decode'
          9        SEND_VAL                                                 '%7B%0A++%22query%22%3A+%7B%0A++++%22bool%22%3A+%7B%0A++++++%22must%22%3A+%5B%0A++++++++%7B%0A++++++++++%22query_string%22%3A+%7B%0A++++++++++++%22query%22%3A+%22name%3A%2Abr%5C%C3%96%2A%22%2C%0A++++++++++++%22default_operator%22%3A+%22AND%22%2C%0A++++++++++++%22analyze_wildcard%22%3A+%22true%22%0A++++++++++%7D%0A++++++++%7D%0A++++++%5D%2C%0A++++++%22should%22%3A+%5B%0A++++++++%7B%0A++++++++++%22match%22%3A+%7B%0A++++++++++++%22name%22%3A+%7B%0A++++++++++++++%22query%22%3A+%22br%5C%3A%C3%96%22%2C%0A++++++++++++++%22type%22%3A+%22phrase_prefix%22%0A++++++++++++%7D%0A++++++++++%7D%0A++++++++%7D%0A++++++%5D%0A++++%7D%0A++%7D%0A%7D'
         10        DO_ICALL                                         $2      
         11        ECHO                                                     $2
   29    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.36 ms | 1395 KiB | 17 Q