3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $a = array(); 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"; $a = array_merge($a,$a1); print_r($a); ?> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KC9Kk
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $a1, !2 = $a2
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'
    6     1        ASSIGN                                                   !0, <array>
   12     2        NEW                                              $4      'testClass'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
   13     5        ASSIGN_OBJ                                               !1, 'flagname'
          6        OP_DATA                                                  'LTV+Under+50'
   14     7        ASSIGN_OBJ                                               !1, 'message'
          8        OP_DATA                                                  'green'
   16     9        NEW                                              $9      'testClass'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !2, $9
   17    12        ASSIGN_OBJ                                               !2, 'flagname'
         13        OP_DATA                                                  'Blue'
   18    14        ASSIGN_OBJ                                               !2, 'message'
         15        OP_DATA                                                  'Yellow'
   20    16        INIT_FCALL                                               'array_merge'
         17        SEND_VAR                                                 !0
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $14     
         20        ASSIGN                                                   !0, $14
   21    21        INIT_FCALL                                               'print_r'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
   26    24        ECHO                                                     '%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   28    25      > RETURN                                                   1

Class testClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.79 ms | 1400 KiB | 17 Q