3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = "the cat is on the roof"; $str2 = "the mouse is on the roof"; $chars = similar_text($str1, $str2, $percent); echo $chars . "\n"; echo $percent;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LrGB7
function name:  (null)
number of ops:  12
compiled vars:  !0 = $str1, !1 = $str2, !2 = $chars, !3 = $percent
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'the+cat+is+on+the+roof'
    3     1        ASSIGN                                                   !1, 'the+mouse+is+on+the+roof'
    5     2        INIT_FCALL                                               'similar_text'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !3
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !2, $6
    7     8        CONCAT                                           ~8      !2, '%0A'
          9        ECHO                                                     ~8
    8    10        ECHO                                                     !3
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.59 ms | 1394 KiB | 15 Q