3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Palindrome { public static function isPalindrome($str) { str_replace("^[^A-Za-z]", '', $str); echo $str; throw new Exception('Not implemented'); } } // For testing purposes (do not submit uncommented): echo Palindrome::isPalindrome('Noel sees Leon.');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/35rjj
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_STATIC_METHOD_CALL                                  'Palindrome', 'isPalindrome'
          1        SEND_VAL                                                 'Noel+sees+Leon.'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Class Palindrome:
Function ispalindrome:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/35rjj
function name:  isPalindrome
number of ops:  12
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%5E%5B%5EA-Za-z%5D'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    7     6        ECHO                                                     !0
    8     7        NEW                                              $2      'Exception'
          8        SEND_VAL_EX                                              'Not+implemented'
          9        DO_FCALL                                      0          
         10      > THROW                                         0          $2
    9    11*     > RETURN                                                   null

End of function ispalindrome

End of class Palindrome.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.04 ms | 1395 KiB | 15 Q