3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'ajfebalu42784693052895=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);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.70.0130.00618.30
8.3.60.0070.00716.50
8.3.50.0120.00616.66
8.3.40.0070.00718.92
8.3.30.0070.00718.57
8.3.20.0070.00020.16
8.3.10.0080.00021.94
8.3.00.0120.00017.72
8.2.190.0150.00616.58
8.2.180.0100.00316.75
8.2.170.0000.01422.96
8.2.160.0140.00020.39
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0080.00020.79
8.2.110.0000.01121.05
8.2.100.0030.00917.96
8.2.90.0080.00019.20
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0030.00617.89
8.2.50.0000.00818.10
8.2.40.0080.00020.47
8.2.30.0040.00421.12
8.2.20.0040.00418.05
8.2.10.0040.00418.00
8.2.00.0040.00418.00
8.1.280.0000.01425.92
8.1.270.0080.00023.81
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0040.00423.85
8.1.230.0090.00617.57
8.1.220.0060.00317.74
8.1.210.0050.00518.77
8.1.200.0040.00417.47
8.1.190.0000.00817.25
8.1.180.0080.00018.10
8.1.170.0040.00418.52
8.1.160.0030.00319.05
8.1.150.0040.00418.78
8.1.140.0030.00519.47
8.1.130.0000.00818.76
8.1.120.0000.00717.43
8.1.110.0070.00017.43
8.1.100.0030.00317.54
8.1.90.0040.00417.50
8.1.80.0040.00417.53
8.1.70.0000.00817.49
8.1.60.0040.00417.65
8.1.50.0040.00417.66
8.1.40.0050.00317.61
8.1.30.0000.00917.72
8.1.20.0000.00917.63
8.1.10.0080.00017.53
8.1.00.0040.00417.57
8.0.300.0080.00018.77
8.0.290.0070.00016.75
8.0.280.0070.00018.38
8.0.270.0040.00317.24
8.0.260.0000.00717.01
8.0.250.0000.00617.15
8.0.240.0040.00417.07
8.0.230.0030.00316.95
8.0.220.0040.00416.91
8.0.210.0050.00316.94
8.0.200.0040.00417.09
8.0.190.0040.00417.01
8.0.180.0050.00317.00
8.0.170.0000.00716.99
8.0.160.0080.00017.01
8.0.150.0050.00317.02
8.0.140.0020.00516.90
8.0.130.0000.00713.45
8.0.120.0050.00216.90
8.0.110.0040.00417.08
8.0.100.0050.00316.86
8.0.90.0000.00716.88
8.0.80.0140.00316.89
8.0.70.0030.00516.86
8.0.60.0020.00516.97
8.0.50.0000.00716.99
8.0.30.0130.00317.19
8.0.20.0140.00617.40
8.0.10.0030.00316.93
8.0.00.0030.01416.72
7.4.330.0050.00015.55
7.4.320.0030.00316.77
7.4.300.0070.00016.63
7.4.290.0100.00016.75
7.4.280.0040.00416.75
7.4.270.0000.00716.74
7.4.260.0060.00013.36
7.4.250.0000.00816.55
7.4.240.0040.00416.74
7.4.230.0070.00016.84
7.4.220.0090.01316.67
7.4.210.0060.00916.77
7.4.200.0030.00316.54
7.4.160.0100.00716.79
7.4.150.0150.00917.40
7.4.140.0120.01017.86
7.4.130.0090.00916.66
7.4.120.0080.01216.62
7.4.110.0000.01616.54
7.4.100.0030.01616.56
7.4.90.0080.00816.75
7.4.80.0140.00319.39
7.4.70.0070.01016.66
7.4.60.0030.01316.59
7.4.50.0040.01116.59
7.4.40.0170.00316.73
7.4.30.0110.00516.47
7.4.00.0030.01015.30
7.3.330.0000.00513.12
7.3.320.0000.00613.19
7.3.310.0060.00016.36
7.3.300.0000.00716.33
7.3.290.0100.00516.30
7.3.280.0080.01016.27
7.3.270.0140.01017.40
7.3.260.0090.00816.31
7.3.250.0130.00816.41
7.3.240.0060.01216.43
7.3.230.0090.00916.36
7.3.210.0100.00616.54
7.3.200.0060.00916.19
7.3.190.0090.00616.34
7.3.180.0030.01216.42
7.3.170.0030.01216.40
7.3.160.0090.00616.53
7.3.10.0000.01416.41
7.3.00.0100.00316.75
7.2.330.0180.00016.76
7.2.320.0100.00716.66
7.2.310.0120.00616.68
7.2.300.0000.01616.71
7.2.290.0110.00516.64
7.2.130.0030.00717.14
7.2.120.0070.01017.11
7.2.110.0030.00616.94
7.2.100.0080.00416.85
7.2.90.0070.00716.95
7.2.80.0070.00316.98
7.2.70.0060.00316.97
7.2.60.0070.00716.84
7.2.50.0080.00417.05
7.2.40.0040.00416.95
7.2.30.0070.00717.00
7.2.20.0100.00716.80
7.2.10.0070.00416.95
7.2.00.0090.00616.84
7.1.250.0060.00615.93
7.1.70.0150.00415.34
7.1.60.0240.00733.47
7.1.50.0190.01233.16
7.1.40.0270.00732.84
7.1.30.0230.01032.97
7.1.20.0250.00732.99
7.1.10.0180.00614.95
7.1.00.0100.01015.11
7.0.200.0110.00815.03
7.0.190.0120.00415.17
7.0.180.0040.01314.46
7.0.170.0070.01014.48
7.0.160.0250.00614.59
7.0.150.0180.00714.44
7.0.140.0140.00714.55
7.0.130.0100.01014.83
7.0.120.0110.00714.81
7.0.110.0060.01314.55
7.0.100.0060.01214.73
7.0.90.0140.00414.63
7.0.80.0100.01714.56
7.0.70.0130.01314.52
7.0.60.0130.00714.60
7.0.50.0100.01014.69
7.0.40.0110.00914.82
7.0.30.0080.01114.57
7.0.20.0090.01214.73
7.0.10.0150.00514.96
7.0.00.0100.01014.51

preferences:
32.11 ms | 401 KiB | 5 Q