3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function __toString() { return "bar"; } } $params = array(); $params['a'] = 'b'; $params['foo'] = new foo(); $query = http_build_query($params); var_dump($params, $query);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/16dMa
function name:  (null)
number of ops:  16
compiled vars:  !0 = $params, !1 = $query
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  11     0  E >   QM_ASSIGN                                                !0
  12     1        ASSIGN_ADD                                    0          !0, 'a'
         2        OP_DATA                                                  'b'
  13     3        NEW                                              $5      :25
         4        DO_FCALL                                      0          
         5        ASSIGN_ADD                                    0          !0, 'foo'
         6        OP_DATA                                                  $5
  15     7        INIT_FCALL                                               'http_build_query'
         8        SEND_VAR                                                 !0
         9        DO_ICALL                                         $7      
        10        QM_ASSIGN                                                !1
  17    11        INIT_FCALL                                               'var_dump'
        12        SEND_VAR                                                 !0
        13        SEND_VAR                                                 !1
        14        DO_ICALL                                                 
        15      > RETURN                                                   1

Class foo:
Function __tostring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/16dMa
function name:  __toString
number of ops:  2
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   7     0  E > > RETURN                                                   'bar'
   8     1*     > RETURN                                                   null

End of function __tostring

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
14.64 ms | 411 KiB | 7 Q