3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.34 ms | 1394 KiB | 17 Q