3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "j3987snmj3j"; $numbers= filter_var($string , FILTER_SANITIZE_NUMBER_INT); $length = strlen($numbers); echo "There are ".$length." numbers in that string";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RFqEl
function name:  (null)
number of ops:  12
compiled vars:  !0 = $string, !1 = $numbers, !2 = $length
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'j3987snmj3j'
    4     1        INIT_FCALL                                               'filter_var'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 519
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        STRLEN                                           ~6      !1
          7        ASSIGN                                                   !2, ~6
    6     8        CONCAT                                           ~8      'There+are+', !2
          9        CONCAT                                           ~9      ~8, '+numbers+in+that+string'
         10        ECHO                                                     ~9
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.77 ms | 1009 KiB | 14 Q