3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<!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
Jump found. Position 1 = -2
filename:       /in/5TT2l
function name:  (null)
number of ops:  38
compiled vars:  !0 = $a1, !1 = $a2, !2 = $a3
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E >   ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml%3E%0A%3Cbody%3E%0A%0A'
   6     1        NOP                                                      
  11     2        NEW                                              $4      :-5
         3        DO_FCALL                                      0          
         4        ASSIGN                                                   !0, $4
  12     5        ASSIGN_OBJ                                               !0, 'flagname'
         6        OP_DATA                                                  'LTV+Under+50'
  13     7        ASSIGN_OBJ                                               !0, 'message'
         8        OP_DATA                                                  'green'
  15     9        NEW                                              $9      :1
        10        DO_FCALL                                      0          
        11        ASSIGN                                                   !1, $9
  16    12        ASSIGN_OBJ                                               !1, 'flagname'
        13        OP_DATA                                                  'Blue'
  17    14        ASSIGN_OBJ                                               !1, 'message'
        15        OP_DATA                                                  'Yellow'
  19    16        INIT_FCALL                                               'array_merge'
        17        SEND_VAR                                                 !0
        18        SEND_VAR                                                 !1
        19        DO_ICALL                                         $14     
        20        ASSIGN                                                   !2, $14
  20    21        INIT_FCALL                                               'print_r'
        22        SEND_VAR                                                 !2
        23        DO_ICALL                                                 
  23    24        CAST                                          8  ~17     <array>
        25        ASSIGN                                                   !0, ~17
  24    26        CAST                                          8  ~19     <array>
        27        ASSIGN                                                   !1, ~19
  25    28        INIT_FCALL                                               'array_merge'
        29        SEND_VAR                                                 !0
        30        SEND_VAR                                                 !1
        31        DO_ICALL                                         $21     
        32        ASSIGN                                                   !0, $21
  26    33        INIT_FCALL                                               'print_r'
        34        SEND_VAR                                                 !0
        35        DO_ICALL                                                 
  30    36        ECHO                                                     '%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
        37      > RETURN                                                   1

Class testClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 7.3.0