3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input_lines="a senha eh senha:123132321"; $output = preg_replace("/(:\w+)/", "macaco", $input_lines); echo $output;

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.0090.00516.50
8.3.50.0070.01418.31
8.3.40.0100.01020.17
8.3.30.0180.00018.96
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0090.00026.16
8.2.180.0120.00325.92
8.2.170.0090.00919.07
8.2.160.0070.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00021.06
8.2.110.0030.00719.24
8.2.100.0000.01118.03
8.2.90.0040.00417.97
8.2.80.0050.00319.02
8.2.70.0030.00517.75
8.2.60.0050.00318.04
8.2.50.0080.00018.07
8.2.40.0040.00818.16
8.2.30.0060.00317.96
8.2.20.0050.00218.18
8.2.10.0040.00419.13
8.2.00.0040.00419.21
8.1.280.0140.00025.92
8.1.270.0030.00623.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00022.19
8.1.230.0030.00720.85
8.1.220.0040.00417.77
8.1.210.0080.00018.91
8.1.200.0060.00317.36
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.55
8.1.160.0060.00318.90
8.1.150.0000.00818.73
8.1.140.0080.00017.45
8.1.130.0070.00018.85
8.1.120.0050.00317.58
8.1.110.0040.00417.48
8.1.100.0000.00717.55
8.1.90.0040.00417.55
8.1.80.0070.00017.50
8.1.70.0030.00317.48
8.1.60.0040.00417.68
8.1.50.0050.00517.64
8.1.40.0000.00817.48
8.1.30.0030.00617.70
8.1.20.0040.00417.75
8.1.10.0030.00617.66
8.1.00.0000.00817.51
8.0.300.0000.00720.09
8.0.290.0060.00316.88
8.0.280.0060.00318.50
8.0.270.0000.00818.05
8.0.260.0000.00618.46
8.0.250.0000.00817.07
8.0.240.0000.00717.00
8.0.230.0000.00817.07
8.0.220.0030.00316.98
8.0.210.0030.00317.04
8.0.200.0060.00017.07
8.0.190.0000.00717.07
8.0.180.0030.00516.90
8.0.170.0030.00616.88
8.0.160.0070.00016.98
8.0.150.0000.00716.82
8.0.140.0000.00716.87
8.0.130.0070.00013.41
8.0.120.0040.00416.84
8.0.110.0040.00416.90
8.0.100.0030.00516.88
8.0.90.0040.00316.93
8.0.80.0040.00416.92
8.0.70.0040.00416.94
8.0.60.0050.00316.92
8.0.50.0020.00616.96
8.0.30.0060.00216.94
8.0.20.0040.00417.03
8.0.10.0020.00516.96
8.0.00.0030.00416.96
7.4.330.0050.00015.55
7.4.320.0070.00016.67
7.4.300.0000.00716.74
7.4.290.0050.00216.63
7.4.280.0080.00016.64
7.4.270.0080.00016.67
7.4.260.0030.00313.42
7.4.250.0000.00716.71
7.4.240.0040.00316.73
7.4.230.0020.00516.65
7.4.220.0020.00516.50
7.4.210.0000.00716.73
7.4.200.0070.00016.60
7.4.190.0000.00716.84
7.4.180.0030.00316.70
7.4.160.0040.00416.64
7.4.150.0000.00716.72
7.4.140.0020.00516.53
7.4.130.0020.00516.66
7.4.120.0020.00516.56
7.4.110.0020.00516.63
7.4.100.0060.00116.72
7.4.90.0040.00416.60
7.4.80.0070.00016.57
7.4.70.0040.00416.56
7.4.60.0060.00116.69
7.4.50.0020.00516.53
7.4.40.0040.00416.55
7.4.30.0060.00116.67
7.4.20.0020.00516.62
7.4.10.0030.00416.44
7.4.00.0020.00516.52
7.3.330.0000.00716.24
7.3.320.0030.00313.21
7.3.310.0040.00416.16
7.3.300.0020.00516.27
7.3.290.0050.00216.23
7.3.280.0030.00416.34
7.3.270.0030.00516.31
7.3.260.0030.00416.34
7.3.250.0030.00416.32
7.3.240.0020.00516.32
7.3.230.0070.00016.29
7.3.220.0020.00516.32
7.3.210.0060.00116.22
7.3.200.0040.00316.27
7.3.190.0050.00316.11
7.3.180.0000.00716.27
7.3.170.0030.00316.28
7.3.160.0000.00616.15
7.3.150.0020.00516.25
7.3.140.0040.00316.21
7.3.130.0020.00616.29
7.3.120.0020.00616.32
7.3.110.0070.00016.11
7.3.100.0020.00516.14
7.3.90.0050.00216.59
7.3.80.0020.00516.36
7.3.70.0030.00516.39
7.3.60.0000.00716.43
7.3.50.0040.00316.31
7.3.40.0000.00716.38
7.3.30.0030.00316.40
7.3.20.0040.00318.19
7.3.10.0000.00818.07
7.3.00.0010.00718.14

preferences:
58.65 ms | 401 KiB | 5 Q