3v4l.org

run code in 300+ PHP versions simultaneously
<?php // palindrom function anagram($s1, $s2) { $l1 = strlen($s1); $l2 = strlen($s2); if($l1 != $l2) return false; return count_words($s1); } echo anagram('test', 'test');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pWrk4
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'anagram'
          1        SEND_VAL                                                 'test'
          2        SEND_VAL                                                 'test'
          3        DO_FCALL                                      0  $0      
          4        ECHO                                                     $0
          5      > RETURN                                                   1

Function anagram:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pWrk4
function name:  anagram
number of ops:  14
compiled vars:  !0 = $s1, !1 = $s2, !2 = $l1, !3 = $l2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        STRLEN                                           ~4      !0
          3        ASSIGN                                                   !2, ~4
    5     4        STRLEN                                           ~6      !1
          5        ASSIGN                                                   !3, ~6
    6     6        IS_NOT_EQUAL                                             !2, !3
          7      > JMPZ                                                     ~8, ->9
    7     8    > > RETURN                                                   <false>
    8     9    >   INIT_FCALL_BY_NAME                                       'count_words'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0  $9      
         12      > RETURN                                                   $9
   10    13*     > RETURN                                                   null

End of function anagram

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.9 ms | 1398 KiB | 14 Q