3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php class testClass { public $flagName; public $message; } $a1 = new testClass(); $a1->flagname = "LTV Under 50"; $a1->message = "green"; $a2 = new testClass(); $a2->flagname = "Blue"; $a2->message = "Yellow"; $a3 = array_merge($a1,$a2); print_r($a3); $a1=(object) array("flagname"=>"LTV Under 50","b"=>"green"); $a2=(object) array("flagname"=>"blue","b"=>"yellow"); $a1 = array_merge($a1,$a2); print_r($a1); ?> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5TT2l
function name:  (null)
number of ops:  37
compiled vars:  !0 = $a1, !1 = $a2, !2 = $a3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml%3E%0A%3Cbody%3E%0A%0A'
   11     1        NEW                                              $3      'testClass'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
   12     4        ASSIGN_OBJ                                               !0, 'flagname'
          5        OP_DATA                                                  'LTV+Under+50'
   13     6        ASSIGN_OBJ                                               !0, 'message'
          7        OP_DATA                                                  'green'
   15     8        NEW                                              $8      'testClass'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $8
   16    11        ASSIGN_OBJ                                               !1, 'flagname'
         12        OP_DATA                                                  'Blue'
   17    13        ASSIGN_OBJ                                               !1, 'message'
         14        OP_DATA                                                  'Yellow'
   19    15        INIT_FCALL                                               'array_merge'
         16        SEND_VAR                                                 !0
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $13     
         19        ASSIGN                                                   !2, $13
   20    20        INIT_FCALL                                               'print_r'
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                                 
   23    23        CAST                                          8  ~16     <array>
         24        ASSIGN                                                   !0, ~16
   24    25        CAST                                          8  ~18     <array>
         26        ASSIGN                                                   !1, ~18
   25    27        INIT_FCALL                                               'array_merge'
         28        SEND_VAR                                                 !0
         29        SEND_VAR                                                 !1
         30        DO_ICALL                                         $20     
         31        ASSIGN                                                   !0, $20
   26    32        INIT_FCALL                                               'print_r'
         33        SEND_VAR                                                 !0
         34        DO_ICALL                                                 
   28    35        ECHO                                                     '%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   30    36      > RETURN                                                   1

Class testClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.94 ms | 1396 KiB | 17 Q