3v4l.org

run code in 300+ PHP versions simultaneously
<?php $full_text = "[b]This is a test[/b] :) :D It's a boring test."; $body = $full_text; $body = nl2br($body); $body = str_replace( array(':)', ':D', '[b]', '[/b]'), array('Emoticon Smile', 'Emoticon colon D', '<b>', '</b>'), $body ); echo $body;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kbv6f
function name:  (null)
number of ops:  14
compiled vars:  !0 = $full_text, !1 = $body
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5Bb%5DThis+is+a+test%5B%2Fb%5D%0A%0A%3A%29%0A%0A%3AD%0A%0AIt%27s+a+boring+test.'
   11     1        ASSIGN                                                   !1, !0
   12     2        INIT_FCALL                                               'nl2br'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   13     6        INIT_FCALL                                               'str_replace'
   14     7        SEND_VAL                                                 <array>
   15     8        SEND_VAL                                                 <array>
   16     9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
   13    11        ASSIGN                                                   !1, $6
   19    12        ECHO                                                     !1
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.47 ms | 1394 KiB | 17 Q