3v4l.org

run code in 300+ PHP versions simultaneously
<?php $js_date = "12.12.2013"; $js_time = "10.00"; $string = preg_replace( '~a~', #your pattern '<a href="$0" title="$0">$0</a>', 'a, b, a, b, a, b, a' #your text-area ); echo $string; #<a href="a" title="a">a</a>, b, <a href="a" title="a">a</a>, b, <a href="a" title="a">a</a>, b, <a href="a" title="a">a</a> $email_message ="\n Lugupeetud klient, \n \n teile broneeritud ülevaatuse aeg on ".$js_date." kell ".$js_time.". \n ABC Tehno asub aadressil Sõpruse pst 27, tel: 6 999 227, email: ".$string.".\n Tuletame meelde, et hilinemisel kaotab broneering kehtivuse. \n \n Kohtumiseni, \n ABC Tehno"; echo $email_message; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WG2O2
function name:  (null)
number of ops:  18
compiled vars:  !0 = $js_date, !1 = $js_time, !2 = $string, !3 = $email_message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '12.12.2013'
    3     1        ASSIGN                                                   !1, '10.00'
    4     2        INIT_FCALL                                               'preg_replace'
    5     3        SEND_VAL                                                 '%7Ea%7E'
    6     4        SEND_VAL                                                 '%3Ca+href%3D%22%240%22+title%3D%22%240%22%3E%240%3C%2Fa%3E'
    7     5        SEND_VAL                                                 'a%2C+b%2C+a%2C+b%2C+a%2C+b%2C+a'
          6        DO_ICALL                                         $6      
    4     7        ASSIGN                                                   !2, $6
    9     8        ECHO                                                     !2
   12     9        CONCAT                                           ~8      '%0A+Lugupeetud+klient%2C+%0A+%0A+teile+broneeritud+%C3%BClevaatuse+aeg+on+', !0
         10        CONCAT                                           ~9      ~8, '+kell+'
         11        CONCAT                                           ~10     ~9, !1
         12        CONCAT                                           ~11     ~10, '.+%0A+ABC+Tehno+asub+aadressil+S%C3%B5pruse+pst+27%2C+tel%3A+6+999+227%2C+email%3A+'
         13        CONCAT                                           ~12     ~11, !2
         14        CONCAT                                           ~13     ~12, '.%0A+Tuletame+meelde%2C+et+hilinemisel+kaotab+broneering+kehtivuse.+%0A+%0A+Kohtumiseni%2C+%0A+ABC+Tehno'
         15        ASSIGN                                                   !3, ~13
   13    16        ECHO                                                     !3
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.54 ms | 1399 KiB | 15 Q