3v4l.org

run code in 500+ PHP versions simultaneously
<?php enum e : string { case A = 'a'; } print http_build_query(['a' => 'A', 'b' => e::A]); // PHP 8.4 and more recent : a=A&b=a // Pre PHP 8.4 : a=A&b%5Bname%5D=A&b%5Bvalue%5D=a a=A&b[name]=A&b[value]='a'
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0mWQs
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                                'e'
    7     1        INIT_FCALL                                                   'http_build_query'
          2        INIT_ARRAY                                           ~0      'A', 'a'
          3        FETCH_CLASS_CONSTANT                                 ~1      'e', 'A'
          4        ADD_ARRAY_ELEMENT                                    ~0      ~1, 'b'
          5        SEND_VAL                                                     ~0
          6        DO_ICALL                                             $2      
          7        ECHO                                                         $2
   11     8      > RETURN                                                       1

Class e: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
132.5 ms | 1263 KiB | 14 Q