3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '13290052201'; $string_length = mb_strlen($phone); $mark_length = 5; $head_length = ceil(($string-$mark_length)/2); $foot_length = $string_length-$head_length-$mark_length; echo mb_substr($string , 0, $head_length) . str_repeat('*', $mark_length) . mb_substr($m, -$foot_length, $foot_length);

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.60.0170.00318.43
8.3.50.0040.01116.67
8.3.40.0090.00618.67
8.3.30.0080.00618.90
8.3.20.0040.00421.90
8.3.10.0050.00321.96
8.3.00.0080.00020.84
8.2.180.0040.01118.26
8.2.170.0120.00322.96
8.2.160.0140.00422.11
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0070.00022.08
8.2.120.0040.00426.35
8.2.110.0100.01020.97
8.2.100.0070.00417.84
8.2.90.0040.00420.59
8.2.80.0040.00419.41
8.2.70.0050.00318.03
8.2.60.0030.00618.22
8.2.50.0000.00818.10
8.2.40.0000.00820.59
8.2.30.0000.00821.04
8.2.20.0000.00818.04
8.2.10.0030.00518.05
8.2.00.0000.00718.18
8.1.280.0060.01225.92
8.1.270.0040.00424.02
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00323.83
8.1.230.0080.00420.93
8.1.220.0080.00017.76
8.1.210.0060.00318.97
8.1.200.0030.00617.00
8.1.190.0050.00517.23
8.1.180.0000.00918.10
8.1.170.0040.00418.59
8.1.160.0020.00519.06
8.1.150.0080.00020.58
8.1.140.0050.00217.36
8.1.130.0000.00718.80
8.1.120.0080.00017.48
8.1.110.0040.00417.27
8.1.100.0000.00917.44
8.1.90.0000.00817.34
8.1.80.0030.00617.36
8.1.70.0070.00017.35
8.1.60.0040.00417.61
8.1.50.0040.00417.59
8.1.40.0060.00317.60
8.1.30.0050.00317.72
8.1.20.0080.00017.68
8.1.10.0040.00417.43
8.1.00.0050.00517.37
8.0.300.0030.00519.98
8.0.290.0050.00316.88
8.0.280.0000.00718.42
8.0.270.0000.00717.25
8.0.260.0030.00316.81
8.0.250.0000.00616.98
8.0.240.0040.00417.07
8.0.230.0050.00317.00
8.0.220.0000.01016.93
8.0.210.0030.00317.05
8.0.200.0060.00017.08
8.0.190.0030.00717.11
8.0.180.0000.00717.05
8.0.170.0040.00416.89
8.0.160.0030.00517.00
8.0.150.0040.00417.00
8.0.140.0040.00416.97
8.0.130.0000.00513.49
8.0.120.0050.00316.88
8.0.110.0030.00316.98
8.0.100.0030.00516.87
8.0.90.0040.00416.95
8.0.80.0090.00916.98
8.0.70.0070.00016.80
8.0.60.0070.00017.06
8.0.50.0040.00416.91
8.0.30.0090.01017.07
8.0.20.0100.00917.40
8.0.10.0000.00816.80
8.0.00.0090.00916.68
7.4.330.0050.00015.55
7.4.320.0030.00316.49
7.4.300.0000.00616.60
7.4.290.0070.00316.50
7.4.280.0030.00616.48
7.4.270.0080.00016.50
7.4.260.0020.00213.17
7.4.250.0080.00016.45
7.4.240.0000.00716.57
7.4.230.0050.00216.40
7.4.220.0070.01116.61
7.4.210.0100.00316.57
7.4.200.0000.00716.32
7.4.160.0030.01216.47
7.4.150.0080.00817.40
7.4.140.0100.00817.86
7.4.130.0140.00416.46
7.4.120.0130.00516.38
7.4.110.0140.00616.54
7.4.100.0160.00316.38
7.4.90.0110.00616.45
7.4.80.0090.01219.39
7.4.70.0000.01716.47
7.4.60.0120.00916.40
7.4.50.0070.00716.56
7.4.40.0070.01016.48
7.4.30.0080.00816.55
7.4.00.0120.00614.96
7.3.330.0030.00312.98
7.3.320.0030.00313.14
7.3.310.0030.00316.27
7.3.300.0030.00316.30
7.3.290.0080.00616.35
7.3.280.0080.00916.29
7.3.270.0180.00017.40
7.3.260.0090.00816.39
7.3.250.0120.00716.56
7.3.240.0130.00816.33
7.3.230.0250.03216.46
7.3.210.0100.00716.70
7.3.200.0100.00716.33
7.3.190.0090.00916.54
7.3.180.0170.00016.27
7.3.170.0070.00716.54
7.3.160.0120.00416.54
7.3.10.0090.00616.53
7.3.00.0030.01016.81
7.2.330.0100.00716.66
7.2.320.0150.00616.67
7.2.310.0030.01316.54
7.2.300.0080.00816.64
7.2.290.0080.00816.62
7.2.130.0060.00916.89
7.2.120.0030.01016.73
7.2.110.0090.00016.73
7.2.100.0070.00716.88
7.2.90.0070.00717.00
7.2.80.0100.00316.96
7.2.70.0030.00617.04
7.2.60.0050.01216.85
7.2.50.0030.00916.93
7.2.40.0060.00917.01
7.2.30.0070.01016.57
7.2.20.0060.01016.83
7.2.10.0000.01416.80
7.2.00.0070.00818.05
7.1.250.0090.00615.52
7.1.200.0120.00315.72
7.1.70.0000.00717.24
7.1.60.0830.01733.27
7.1.50.1030.01332.89
7.1.40.1000.01032.46
7.1.30.0700.01332.64
7.1.20.0730.01732.80
7.1.10.0530.01714.68
7.1.00.0430.01014.68
7.0.200.0730.01314.96
7.0.190.0800.01314.58
7.0.180.0500.01314.29
7.0.170.0770.00314.56
7.0.160.0500.00314.26
7.0.150.0570.01014.27
7.0.140.0630.00714.63
7.0.130.0530.01014.65
7.0.120.0500.01014.50
7.0.110.1800.01714.34
7.0.100.0670.01014.48
7.0.90.0470.01014.57
7.0.80.0600.01714.51
7.0.70.0770.01314.47
7.0.60.0670.01014.11
7.0.50.0730.01314.40
7.0.40.0700.01014.46
7.0.30.0700.01714.51
7.0.20.0530.00714.44
7.0.10.0900.01714.56
7.0.00.0670.01314.62

preferences:
59.42 ms | 401 KiB | 5 Q