3v4l.org

run code in 300+ PHP versions simultaneously
<?php $digits = '1234567890'; $alnum = '123test'; var_dump(strspn($digits, $digits) === strlen($digits)); var_dump(strspn($alnum, $digits) === strlen($alnum));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ei6m6
function name:  (null)
number of ops:  21
compiled vars:  !0 = $digits, !1 = $alnum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1234567890'
    4     1        ASSIGN                                                   !1, '123test'
    6     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'strspn'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        STRLEN                                           ~5      !0
          8        IS_IDENTICAL                                     ~6      $4, ~5
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
    7    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'strspn'
         13        SEND_VAR                                                 !1
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $8      
         16        STRLEN                                           ~9      !1
         17        IS_IDENTICAL                                     ~10     $8, ~9
         18        SEND_VAL                                                 ~10
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.11 ms | 1395 KiB | 17 Q