3v4l.org

run code in 300+ PHP versions simultaneously
<?php function wrap_emojis($s, $str_before, $str_after) { return $str_before . $s . $str_after; } echo wrap_emojis('😎', '<span style="font-size:30px">', '</span>'); echo wrap_emojis('☀️', '<span style="font-size:30px">', '</span>');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gR5o1
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'wrap_emojis'
          1        SEND_VAL                                                 '%F0%9F%98%8E'
          2        SEND_VAL                                                 '%3Cspan+style%3D%22font-size%3A30px%22%3E'
          3        SEND_VAL                                                 '%3C%2Fspan%3E'
          4        DO_FCALL                                      0  $0      
          5        ECHO                                                     $0
    8     6        INIT_FCALL                                               'wrap_emojis'
          7        SEND_VAL                                                 '%E2%98%80%EF%B8%8F'
          8        SEND_VAL                                                 '%3Cspan+style%3D%22font-size%3A30px%22%3E'
          9        SEND_VAL                                                 '%3C%2Fspan%3E'
         10        DO_FCALL                                      0  $1      
         11        ECHO                                                     $1
         12      > RETURN                                                   1

Function wrap_emojis:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gR5o1
function name:  wrap_emojis
number of ops:  7
compiled vars:  !0 = $s, !1 = $str_before, !2 = $str_after
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    4     3        CONCAT                                           ~3      !1, !0
          4        CONCAT                                           ~4      ~3, !2
          5      > RETURN                                                   ~4
    5     6*     > RETURN                                                   null

End of function wrap_emojis

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.76 ms | 1006 KiB | 15 Q