3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'ajf097ebalu42784693052895=gs 0 1 2 3 4 5 6 7 8 9 0 �         10       20           30   ! " # $ % & \' 40 ( ) * + , - . / 0 1 50 2 3 4 5 6 7 8 9 : ; 60 < = > ? @ A B C D E 70 F G H I J K L M N O 80 P Q R S T U V W X Y 90 Z [ \ ] ^ _ ` a b crg@%$Udtth245456769-_23574690-_-+rwyeyfw,./\',mnbvcxzawerty`'; echo preg_replace('~[^\d]~', '~~', '', $str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NI5tAS
function name:  (null)
number of ops:  9
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ajf097ebalu42784693052895%3Dgs+%09++++0++++%09++++1++++%09++++2++++%09++++3++++%09++++4++++%09++++5++++%09++++6++++%09++++7++++%09++++8++++%09++++9++++%0A0++%09%EF%BF%BD%09%01%09%02%09%03%09%04%09%05%09%06%09%07%09%08%09%0A10++%09%09%09%09%09%0E%09%0F%09%10%09%11%09%12%09%13%0A20++%09%14%09%15%09%16%09%17%09%18%09%19%09%1A%09%1B%09%1C%09%1D%0A30++%09%1E%09%1F%09%09%21%09%22%09%23%09%24%09%25%09%26%09%27%0A40++%09%28%09%29%09%2A%09%2B%09%2C%09-%09.%09%2F%090%091%0A50++%092%093%094%095%096%097%098%099%09%3A%09%3B%0A60++%09%3C%09%3D%09%3E%09%3F%09%40%09A%09B%09C%09D%09E%0A70++%09F%09G%09H%09I%09J%09K%09L%09M%09N%09O%0A80++%09P%09Q%09R%09S%09T%09U%09V%09W%09X%09Y%0A90++%09Z%09%5B%09%5C%09%5D%09%5E%09_%09%60%09a%09b%09crg%40%25%24Udtth245456769-_23574690-_-%2Brwyeyfw%2C.%2F%27%2Cmnbvcxzawerty%60'
   14     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%7E%5B%5E%5Cd%5D%7E'
          3        SEND_VAL                                                 '%7E%7E'
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        ECHO                                                     $2
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.42 ms | 1394 KiB | 15 Q