3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Palindrome { public static function isPalindrome($str) { $s = str_replace("/^[^A-Za-z]/", '', $str); echo $s; 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/NjIfY
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/NjIfY
function name:  isPalindrome
number of ops:  13
compiled vars:  !0 = $str, !1 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%2F%5E%5B%5EA-Za-z%5D%2F'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !1, $2
    7     7        ECHO                                                     !1
    8     8        NEW                                              $4      'Exception'
          9        SEND_VAL_EX                                              'Not+implemented'
         10        DO_FCALL                                      0          
         11      > THROW                                         0          $4
    9    12*     > RETURN                                                   null

End of function ispalindrome

End of class Palindrome.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.02 ms | 1395 KiB | 15 Q