3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.12 ms | 1385 KiB | 15 Q