3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); function isPangram($string) { $string = preg_split('//u', $string); $range = range('a', 'z'); return count(array_intersect($range, $string)) === count($range); } echo isPangram('the quick brown fox jumps over the lazy dog');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SZutd
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'ispangram'
          1        SEND_VAL                                                 'the+quick+brown+fox+jumps+over+the+lazy+dog'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function ispangram:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SZutd
function name:  isPangram
number of ops:  20
compiled vars:  !0 = $string, !1 = $range
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%2Fu'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    8     6        INIT_FCALL                                               'range'
          7        SEND_VAL                                                 'a'
          8        SEND_VAL                                                 'z'
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !1, $4
   10    11        INIT_FCALL                                               'array_intersect'
         12        SEND_VAR                                                 !1
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $6      
         15        COUNT                                            ~7      $6
         16        COUNT                                            ~8      !1
         17        IS_IDENTICAL                                     ~9      ~7, ~8
         18      > RETURN                                                   ~9
   11    19*     > RETURN                                                   null

End of function ispangram

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.37 ms | 1397 KiB | 20 Q