3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = "0501234555"; $result = substr_replace($num,"*****",3,8); echo $result;

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.0100.01016.63
8.3.50.0140.00317.72
8.3.40.0120.00318.53
8.3.30.0040.01118.64
8.3.20.0000.00818.90
8.3.10.0050.00321.60
8.3.00.0080.00023.64
8.2.180.0040.01616.38
8.2.170.0080.00622.96
8.2.160.0110.00419.46
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0110.00420.91
8.2.120.0070.00026.35
8.2.110.0060.00322.08
8.2.100.0060.00617.89
8.2.90.0030.00519.13
8.2.80.0000.00917.97
8.2.70.0050.00317.91
8.2.60.0060.00317.80
8.2.50.0050.00318.10
8.2.40.0000.00819.23
8.2.30.0080.00019.34
8.2.20.0040.00417.92
8.2.10.0050.00218.05
8.2.00.0070.00019.41
8.1.280.0110.00725.92
8.1.270.0040.00420.08
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00622.46
8.1.230.0040.00719.00
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0100.00019.01
8.1.180.0040.00418.10
8.1.170.0060.00318.89
8.1.160.0040.00418.86
8.1.150.0070.00018.88
8.1.140.0040.00417.61
8.1.130.0030.00319.00
8.1.120.0000.00717.33
8.1.110.0040.00417.43
8.1.100.0070.00017.28
8.1.90.0070.00017.41
8.1.80.0070.00017.26
8.1.70.0000.00717.30
8.1.60.0120.00017.50
8.1.50.0040.00417.41
8.1.40.0060.00317.40
8.1.30.0030.00517.57
8.1.20.0030.00617.59
8.1.10.0000.00817.57
8.1.00.0060.00317.45
8.0.300.0050.00318.77
8.0.290.0000.00816.63
8.0.280.0070.00018.35
8.0.270.0050.00217.15
8.0.260.0030.00717.25
8.0.250.0000.00716.96
8.0.240.0000.00816.88
8.0.230.0000.00816.79
8.0.220.0040.00416.85
8.0.210.0000.00716.87
8.0.200.0000.00616.79
8.0.190.0070.00016.88
8.0.180.0040.00416.84
8.0.170.0090.00016.73
8.0.160.0050.00316.81
8.0.150.0070.00016.65
8.0.140.0030.00316.80
8.0.130.0030.00313.23
8.0.120.0030.00516.67
8.0.110.0000.00816.72
8.0.100.0070.00016.73
8.0.90.0000.00816.67
8.0.80.0130.00316.79
8.0.70.0000.00816.75
8.0.60.0040.00416.59
8.0.50.0050.00316.82
8.0.30.0070.01217.00
8.0.20.0120.00817.40
8.0.10.0000.00816.95
8.0.00.0140.00916.88
7.4.330.0000.00515.55
7.4.320.0060.00016.52
7.4.300.0030.00316.55
7.4.290.0000.00716.53
7.4.280.0030.00616.53
7.4.270.0030.00616.39
7.4.260.0070.00316.54
7.4.250.0000.00716.25
7.4.240.0080.00016.44
7.4.230.0050.00316.26
7.4.220.0040.00416.33
7.4.210.0040.01016.54
7.4.200.0040.00416.43
7.4.160.0120.00616.46
7.4.140.0070.01017.86
7.4.130.0140.00416.40
7.4.120.0110.01016.36
7.4.110.0060.01016.39
7.4.100.0120.00416.46
7.4.90.0060.01116.51
7.4.80.0080.01619.39
7.4.70.0140.00316.38
7.4.60.0130.00316.41
7.4.50.0090.00616.13
7.4.40.0120.00616.46
7.4.00.0100.00715.18
7.3.330.0050.00013.09
7.3.320.0000.00512.86
7.3.310.0030.00316.27
7.3.300.0000.00616.14
7.3.290.0060.00016.05
7.3.280.0100.00616.21
7.3.260.0090.00916.28
7.3.240.0090.00916.36
7.3.230.0100.00716.49
7.3.210.0080.00816.41
7.3.200.0090.00616.30
7.3.190.0070.01016.17
7.3.180.0070.00716.27
7.3.170.0040.01216.41
7.3.160.0070.01016.23
7.3.10.0040.01516.18
7.3.00.0130.00716.18
7.2.330.0180.00016.36
7.2.320.0040.01416.66
7.2.310.0150.00916.63
7.2.300.0090.00816.63
7.2.290.0120.00916.38
7.2.130.0030.01316.71
7.2.120.0110.00416.80
7.2.110.0000.01616.41
7.2.100.0000.01216.43
7.2.90.0040.00816.48
7.2.80.0090.00916.41
7.2.70.0220.00415.79
7.2.60.0270.00615.58
7.2.50.0270.00315.49
7.2.40.0180.00915.56
7.2.30.0180.00815.67
7.2.20.0230.01015.83
7.2.10.0200.00615.70
7.2.00.0250.00715.60
7.1.250.0140.00015.13
7.1.200.0060.00615.52
7.1.170.1300.00713.96
7.1.160.0380.01313.73
7.1.150.0480.00714.01
7.1.140.0300.00713.93
7.1.130.0260.01013.82
7.1.120.0260.01013.84
7.1.110.0270.01014.05
7.1.100.0410.00913.84
7.1.90.0350.01613.65
7.1.80.0390.01313.89
7.1.70.0320.00713.87
7.1.60.0460.01331.68
7.1.50.0640.01731.71
7.1.40.0700.01031.78
7.1.30.0610.01031.80
7.1.20.0490.01631.63
7.1.10.0280.00913.45
7.1.00.0270.01013.70

preferences:
57.03 ms | 401 KiB | 5 Q