3v4l.org

run code in 300+ PHP versions simultaneously
<?php $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }) $.ajax({ url: $(this).attr('action'), dataType: 'text', cache: false, contentType: false, processData: false, data: form_data, type: 'post', success : function(fssp){ console.log(fssp); $(".none_img").append('<img src="'+fssp+'">'); const file = '.'+fssp+''; const lang = 'rus'; Tesseract.recognize(file, lang) .then(({ data: {text }}) => { console.log(text); $(".none_img").append('<p>"'+text+'"</p>'); }) }, ?>
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.24, 7.4.0 - 7.4.12
Parse error: syntax error, unexpected '.', expecting variable (T_VARIABLE) or '{' or '$' in /in/dtT23 on line 3
Process exited with code 255.

preferences:
176.56 ms | 1003 KiB | 7 Q