3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = "0501234555"; $result = substr_replace($num,"******",3,10); 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.0150.00616.63
8.3.50.0100.01017.95
8.3.40.0110.00318.70
8.3.30.0160.00318.42
8.3.20.0070.00019.03
8.3.10.0000.00821.72
8.3.00.0080.00023.45
8.2.180.0130.00616.50
8.2.170.0110.00422.96
8.2.160.0100.00319.51
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0100.00019.27
8.2.120.0070.00026.35
8.2.110.0000.01022.30
8.2.100.0120.00017.91
8.2.90.0040.00419.02
8.2.80.0000.00817.97
8.2.70.0040.00417.80
8.2.60.0030.00617.93
8.2.50.0060.00318.10
8.2.40.0060.00319.30
8.2.30.0000.00719.19
8.2.20.0040.00418.09
8.2.10.0000.00818.10
8.2.00.0070.00019.31
8.1.280.0150.00025.92
8.1.270.0080.00020.20
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.38
8.1.230.0170.00417.42
8.1.220.0080.00017.78
8.1.210.0000.00818.77
8.1.200.0040.00417.25
8.1.190.0030.00717.00
8.1.180.0050.00318.10
8.1.170.0060.00318.80
8.1.160.0000.00718.86
8.1.150.0040.00418.75
8.1.140.0040.00417.59
8.1.130.0030.00319.00
8.1.120.0030.00317.36
8.1.110.0040.00417.26
8.1.100.0070.00017.36
8.1.90.0000.00717.40
8.1.80.0040.00417.40
8.1.70.0070.00017.37
8.1.60.0060.00317.51
8.1.50.0040.00417.44
8.1.40.0090.00017.36
8.1.30.0050.00317.56
8.1.20.0030.00617.41
8.1.10.0050.00317.36
8.1.00.0090.00017.39
8.0.300.0070.00018.77
8.0.290.0000.00916.63
8.0.280.0000.00818.34
8.0.270.0050.00317.24
8.0.260.0040.00417.23
8.0.250.0070.00016.93
8.0.240.0040.00416.91
8.0.230.0080.00016.74
8.0.220.0000.00716.76
8.0.210.0000.00716.86
8.0.200.0030.00316.79
8.0.190.0030.00316.91
8.0.180.0020.00516.85
8.0.170.0030.00616.83
8.0.160.0050.00216.85
8.0.150.0040.00416.64
8.0.140.0050.00316.71
8.0.130.0050.00013.23
8.0.120.0040.00416.80
8.0.110.0040.00416.77
8.0.100.0070.00016.61
8.0.90.0040.00416.88
8.0.80.0050.01216.80
8.0.70.0000.00816.63
8.0.60.0040.00416.76
8.0.50.0040.00416.90
8.0.30.0110.00817.03
8.0.20.0140.00417.40
8.0.10.0040.00416.83
8.0.00.0100.00716.65
7.4.330.0020.00215.55
7.4.320.0040.00416.44
7.4.300.0000.00616.34
7.4.290.0040.00416.50
7.4.280.0040.00416.31
7.4.270.0110.00016.35
7.4.260.0030.00316.41
7.4.250.0000.00716.48
7.4.240.0040.00416.42
7.4.230.0030.00616.54
7.4.220.0030.00516.34
7.4.210.0070.00716.34
7.4.200.0030.00416.62
7.4.160.0090.00716.56
7.4.140.0140.00617.86
7.4.130.0110.00516.39
7.4.120.0100.01116.39
7.4.110.0080.00816.60
7.4.100.0100.00616.42
7.4.90.0120.00616.53
7.4.80.0100.01519.39
7.4.70.0060.01016.43
7.4.60.0060.00916.51
7.4.50.0040.01116.10
7.4.40.0130.01016.30
7.4.00.0030.01414.74
7.3.330.0050.00013.13
7.3.320.0000.00613.08
7.3.310.0030.00316.19
7.3.300.0000.00716.06
7.3.290.0030.00316.10
7.3.280.0090.00916.19
7.3.260.0100.00716.27
7.3.240.0080.01016.41
7.3.230.0100.00716.30
7.3.210.0100.00716.14
7.3.200.0080.01116.39
7.3.190.0130.00316.13
7.3.180.0070.01016.34
7.3.170.0080.00816.54
7.3.160.0070.01016.19
7.3.10.0040.01116.43
7.3.00.0060.00616.65
7.2.330.0090.00916.22
7.2.320.0030.01416.69
7.2.310.0100.00816.38
7.2.300.0060.00916.31
7.2.290.0120.01116.72
7.2.130.0090.00616.64
7.2.120.0070.00316.89
7.2.110.0030.00716.88
7.2.100.0080.00416.79
7.2.90.0000.01016.86
7.2.80.0030.01316.98
7.2.70.0240.00615.91
7.2.60.0160.01115.73
7.2.50.0150.00715.93
7.2.40.0320.00515.86
7.2.30.0130.00815.97
7.2.20.0190.00415.99
7.2.10.0150.01515.83
7.2.00.0210.00515.97
7.1.250.0030.00715.91
7.1.200.0030.00715.48
7.1.170.0230.01013.73
7.1.160.0230.00714.00
7.1.150.0220.00913.66
7.1.140.0280.00313.71
7.1.130.0380.00613.99
7.1.120.0290.00313.92
7.1.110.0260.00713.82
7.1.100.0300.00313.64
7.1.90.0310.00313.89
7.1.80.0300.00013.46
7.1.70.0230.00613.63
7.1.60.0430.01031.42
7.1.50.0390.01331.75
7.1.40.0470.00331.87
7.1.30.0360.01631.82
7.1.20.0440.00631.73
7.1.10.0250.00613.75
7.1.00.0230.01013.84

preferences:
59.85 ms | 400 KiB | 5 Q