3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'say hello to @elise_123.com and @john-abc'; function replace_at_symbol($matches){ $username = str_replace("@", "", $matches[0]); return '<a href="/profile/'.$username.'">'.$matches[0].'</a>';} $output = preg_replace_callback("/([@][-_a-zA-Z-0-9]+)/", "replace_at_symbol", $text); 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.70.0160.00016.63
8.3.60.0040.01418.55
8.3.50.0100.00622.16
8.3.40.0070.00719.00
8.3.30.0070.00719.17
8.3.20.0000.00720.30
8.3.10.0060.00321.70
8.3.00.0050.00317.93
8.2.180.0130.01018.42
8.2.170.0170.00322.96
8.2.160.0080.00620.30
8.2.150.0000.00724.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0080.00020.88
8.2.110.0050.00520.35
8.2.100.0080.00418.03
8.2.90.0050.00519.95
8.2.80.0000.00817.97
8.2.70.0000.00817.84
8.2.60.0000.01017.68
8.2.50.0050.00318.07
8.2.40.0090.00018.34
8.2.30.0000.00718.07
8.2.20.0040.00417.82
8.2.10.0000.00718.24
8.2.00.0030.00617.91
8.1.280.0100.00725.92
8.1.270.0070.00323.99
8.1.260.0000.00826.35
8.1.250.0050.00528.09
8.1.240.0090.00022.61
8.1.230.0070.00421.04
8.1.220.0080.00017.74
8.1.210.0000.00919.04
8.1.200.0040.00417.47
8.1.190.0030.00517.48
8.1.180.0040.00418.10
8.1.170.0000.00818.80
8.1.160.0000.00822.08
8.1.150.0040.00419.01
8.1.140.0000.01117.54
8.1.130.0030.00317.73
8.1.120.0000.00717.50
8.1.110.0000.00817.54
8.1.100.0050.00317.68
8.1.90.0040.00417.59
8.1.80.0040.00417.64
8.1.70.0000.00817.59
8.1.60.0000.00817.63
8.1.50.0080.00017.56
8.1.40.0030.00717.60
8.1.30.0040.00417.71
8.1.20.0040.00417.68
8.1.10.0060.00317.77
8.1.00.0000.00817.71
8.0.300.0050.00320.03
8.0.290.0000.00716.75
8.0.280.0030.00318.39
8.0.270.0040.00417.36
8.0.260.0000.00617.20
8.0.250.0000.00717.11
8.0.240.0030.00317.01
8.0.230.0030.00317.10
8.0.220.0000.00717.11
8.0.210.0000.00717.07
8.0.200.0000.00717.11
8.0.190.0000.00717.01
8.0.180.0030.00616.98
8.0.170.0030.00617.06
8.0.160.0000.00717.04
8.0.150.0040.00417.00
8.0.140.0030.00616.90
8.0.130.0030.00313.43
8.0.120.0000.00817.00
8.0.110.0000.00717.10
8.0.100.0000.00817.16
8.0.90.0070.00017.09
8.0.80.0060.00917.07
8.0.70.0050.00216.99
8.0.60.0080.00016.90
8.0.50.0020.00516.90
8.0.30.0160.00517.51
8.0.20.0120.01317.40
8.0.10.0050.00217.03
8.0.00.0120.00717.08
7.4.330.0060.00015.09
7.4.320.0070.00016.83
7.4.300.0060.00016.75
7.4.290.0000.01116.63
7.4.280.0020.00516.86
7.4.270.0040.00416.77
7.4.260.0000.00716.79
7.4.250.0080.00016.71
7.4.240.0000.00816.84
7.4.230.0000.00716.86
7.4.220.0120.00616.73
7.4.210.0000.01416.74
7.4.200.0000.00716.71
7.4.160.0150.01516.75
7.4.150.0110.00717.40
7.4.140.0140.01817.86
7.4.130.0120.00916.41
7.4.120.0110.00716.63
7.4.110.0360.01616.78
7.4.100.0060.01216.62
7.4.90.0100.00716.60
7.4.80.0130.01019.39
7.4.70.0110.00616.73
7.4.60.0000.01716.71
7.4.50.0000.00816.72
7.4.40.0120.00316.69
7.4.30.0080.00816.70
7.4.00.0030.01315.11
7.3.330.0050.00013.51
7.3.320.0000.00513.54
7.3.310.0000.00716.37
7.3.300.0070.00016.52
7.3.290.0150.00016.45
7.3.280.0090.00916.42
7.3.270.0100.00717.40
7.3.260.0100.00716.48
7.3.240.0160.00016.45
7.3.230.0140.00316.80
7.3.210.0170.00316.56
7.3.200.0090.00919.39
7.3.190.0120.01216.57
7.3.180.0030.01316.87
7.3.170.0030.01316.69
7.3.160.0080.00816.79
7.3.120.0000.01615.24
7.2.330.0120.00916.93
7.2.320.0140.00316.57
7.2.310.0180.00316.98
7.2.300.0100.00716.71
7.2.290.0060.00916.67
7.1.70.0100.00717.07
7.1.60.0060.01019.25
7.1.50.0110.00016.98
7.1.00.0070.07022.50
7.0.200.0000.00916.98
7.0.140.0100.06322.00
7.0.60.0070.05019.79
7.0.50.0030.04317.90
7.0.40.0070.04320.13
7.0.30.0230.03720.12
7.0.20.0300.08020.22
7.0.10.0030.05020.24
7.0.00.0100.06720.20
5.6.280.0030.07320.91
5.6.210.0000.04320.47
5.6.200.0030.06318.19
5.6.190.0000.05020.39
5.6.180.0270.03720.39
5.6.170.0200.04720.62
5.6.160.0000.05020.71
5.6.150.0030.08318.16
5.6.140.0030.08318.27
5.6.130.0000.06718.14
5.6.120.0030.06021.12
5.6.110.0070.09021.02
5.6.100.0070.08320.98
5.6.90.0130.05720.93
5.6.80.0070.03720.49
5.5.350.0070.08720.39
5.5.340.0030.08317.96
5.5.330.0070.06020.32
5.5.320.0200.04020.34
5.5.310.0300.05020.44
5.5.300.0030.08017.96
5.5.290.0070.03718.01
5.5.280.0070.08020.98
5.5.270.0100.04720.87
5.5.260.0170.07320.95
5.5.250.0100.08320.58
5.5.240.0100.07720.37
5.4.450.0430.06019.59
5.4.440.0300.04319.43
5.4.430.0300.04019.29
5.4.420.0230.05719.32
5.4.410.0400.03319.42
5.4.400.0230.06319.27
5.4.390.0270.06719.20
5.4.380.0270.03019.04
5.4.370.0130.04719.22
5.4.360.0170.05319.20
5.4.350.0170.08019.26
5.4.340.0230.07019.26
5.4.320.0270.06719.23
5.4.310.0270.06719.11
5.4.300.0130.06319.22
5.4.290.0230.04019.06
5.4.280.0370.06019.17
5.4.270.0270.04018.97
5.4.260.0100.05019.00
5.4.250.0200.04718.94
5.4.240.0130.04719.21
5.4.230.0270.08019.05
5.4.220.0170.04019.22
5.4.210.0230.06319.14
5.4.200.0230.05018.91
5.4.190.0230.06319.13
5.4.180.0230.05719.05
5.4.170.0170.04719.24
5.4.160.0300.06719.02
5.4.150.0270.03719.16
5.4.140.0100.04016.50
5.4.130.0300.03016.43
5.4.120.0200.04316.43
5.4.110.0170.04716.50
5.4.100.0230.07016.52
5.4.90.0230.03016.58
5.4.80.0130.03716.52
5.4.70.0130.03716.49
5.4.60.0230.04016.54
5.4.50.0030.05016.21
5.4.40.0300.06316.53
5.4.30.0200.06316.34
5.4.20.0230.06316.32
5.4.10.0130.04716.41
5.4.00.0200.03715.74
5.3.290.0200.07714.66
5.3.280.0200.07014.60
5.3.270.0170.03714.63
5.3.260.0130.04314.60
5.3.250.0230.07014.48
5.3.240.0130.04714.61
5.3.230.0200.07314.59
5.3.220.0170.07314.61
5.3.210.0230.05714.59
5.3.200.0170.08014.62
5.3.190.0200.04714.57
5.3.180.0100.04314.59
5.3.170.0170.04314.63
5.3.160.0170.04014.57
5.3.150.0130.04714.61
5.3.140.0230.04014.71
5.3.130.0230.06014.69
5.3.120.0130.04314.60
5.3.110.0200.06314.54
5.3.100.0170.03714.08
5.3.90.0200.05014.08
5.3.80.0170.05714.04
5.3.70.0070.04714.02
5.3.60.0230.02714.06
5.3.50.0170.07314.11
5.3.40.0200.06313.94
5.3.30.0270.04013.79
5.3.20.0270.05313.70
5.3.10.0330.02013.63
5.3.00.0130.04713.79
5.2.170.0170.05011.04
5.2.160.0300.02311.04
5.2.150.0200.02711.11
5.2.140.0270.05711.30
5.2.130.0200.03311.27
5.2.120.0130.03311.10
5.2.110.0130.05711.09
5.2.100.0100.03011.12
5.2.90.0170.02711.10
5.2.80.0230.05711.06
5.2.70.0200.05011.04
5.2.60.0130.05011.00
5.2.50.0170.05010.98
5.2.40.0170.05711.14
5.2.30.0130.04310.94
5.2.20.0070.03311.00
5.2.10.0130.06310.93
5.2.00.0170.03310.72
5.1.60.0100.0309.99
5.1.50.0100.0279.97
5.1.40.0130.05310.02
5.1.30.0170.04710.48
5.1.20.0200.04710.24
5.1.10.0170.05310.09
5.1.00.0100.04710.09
5.0.50.0030.0278.63
5.0.40.0100.0408.63
5.0.30.0070.0438.63
5.0.20.0130.0408.63
5.0.10.0070.0438.63
5.0.00.0130.0508.63
4.4.90.0100.0238.63
4.4.80.0030.0208.63
4.4.70.0030.0178.63
4.4.60.0100.0278.63
4.4.50.0130.0308.63
4.4.40.0100.0408.63
4.4.30.0100.0208.63
4.4.20.0030.0338.63
4.4.10.0070.0238.63
4.4.00.0100.0238.63
4.3.110.0100.0208.63
4.3.100.0070.0238.63
4.3.90.0070.0308.63
4.3.80.0130.0438.63
4.3.70.0100.0238.63
4.3.60.0070.0278.63
4.3.50.0100.0138.63
4.3.40.0070.0238.63
4.3.30.0030.0208.63
4.3.20.0030.0178.63
4.3.10.0030.0378.63
4.3.00.0000.0408.63

preferences:
57.62 ms | 401 KiB | 5 Q