3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Concat $a = 'Hello '; $b = 'World!'; $out = $a . $b; echo $out; $out2 = sprintf("%s%s", $a, $b); echo $out2;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E31Nr
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b, !2 = $out, !3 = $out2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'Hello+'
    5     1        ASSIGN                                                   !1, 'World%21'
    7     2        CONCAT                                           ~6      !0, !1
          3        ASSIGN                                                   !2, ~6
    8     4        ECHO                                                     !2
   10     5        INIT_FCALL                                               'sprintf'
          6        SEND_VAL                                                 '%25s%25s'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !3, $8
   11    11        ECHO                                                     !3
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.76 ms | 1394 KiB | 15 Q