3v4l.org

run code in 300+ PHP versions simultaneously
<?php // What will this print out in php5? $string1 = "Hello " . $string2 = 'World' . '!'; $string = $string1 . $string2; echo $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t8C1Q
function name:  (null)
number of ops:  7
compiled vars:  !0 = $string1, !1 = $string2, !2 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                           ~3      !1, 'World%21'
          1        CONCAT                                           ~4      'Hello+', ~3
    4     2        ASSIGN                                                   !0, ~4
    6     3        CONCAT                                           ~6      !0, !1
          4        ASSIGN                                                   !2, ~6
    8     5        ECHO                                                     !2
    9     6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.11 ms | 1392 KiB | 13 Q