3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'say hello to @elise and @john'; function replace_at_symbol($matches){ str_replace("@", "", $matches[0]); return '<a href="/profile/'.$matches[0].'">'.$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.60.0110.00418.68
8.3.50.0150.00522.05
8.3.40.0120.00319.12
8.3.30.0150.00018.80
8.3.20.0050.00220.16
8.3.10.0050.00221.90
8.3.00.0040.00417.80
8.2.180.0140.00416.63
8.2.170.0140.00022.96
8.2.160.0100.00720.38
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00021.15
8.2.110.0080.00321.16
8.2.100.0080.00417.91
8.2.90.0030.00519.21
8.2.80.0060.00317.97
8.2.70.0030.00617.63
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0000.00918.16
8.2.30.0040.00418.04
8.2.20.0020.00517.78
8.2.10.0040.00418.02
8.2.00.0020.00518.01
8.1.280.0090.00625.92
8.1.270.0080.00823.92
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00422.64
8.1.230.0000.01120.99
8.1.220.0030.00618.77
8.1.210.0040.00418.97
8.1.200.0040.00817.48
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0050.00318.76
8.1.160.0050.00222.03
8.1.150.0000.00718.98
8.1.140.0040.00417.47
8.1.130.0070.00017.76
8.1.120.0040.00317.63
8.1.110.0000.00817.58
8.1.100.0050.00317.57
8.1.90.0070.00017.68
8.1.80.0000.00717.66
8.1.70.0040.00417.52
8.1.60.0000.00817.74
8.1.50.0080.00017.53
8.1.40.0080.00417.64
8.1.30.0030.00517.72
8.1.20.0060.00317.72
8.1.10.0000.00817.71
8.1.00.0000.00717.53
8.0.300.0070.00020.03
8.0.290.0070.00316.88
8.0.280.0000.00718.47
8.0.270.0040.00417.21
8.0.260.0000.00617.22
8.0.250.0000.00717.02
8.0.240.0050.00217.11
8.0.230.0000.00716.98
8.0.220.0040.00317.08
8.0.210.0040.00417.00
8.0.200.0000.00717.02
8.0.190.0000.00817.02
8.0.180.0000.00817.07
8.0.170.0040.00417.08
8.0.160.0050.00316.99
8.0.150.0040.00416.98
8.0.140.0080.00017.06
8.0.130.0000.00513.47
8.0.120.0030.00517.03
8.0.110.0080.00017.04
8.0.100.0070.00016.88
8.0.90.0030.00317.05
8.0.80.0060.00917.00
8.0.70.0000.00717.02
8.0.60.0030.00517.07
8.0.50.0000.00717.10
8.0.30.0080.01117.25
8.0.20.0110.01317.40
8.0.10.0000.00717.11
8.0.00.0120.00517.05
7.4.330.0050.00015.17
7.4.320.0040.00416.73
7.4.300.0030.00316.72
7.4.290.0000.01016.62
7.4.280.0030.00516.60
7.4.270.0050.00316.74
7.4.260.0060.00316.61
7.4.250.0040.00416.59
7.4.240.0030.00416.71
7.4.230.0030.00316.73
7.4.220.0090.00916.61
7.4.210.0120.00316.61
7.4.200.0000.00716.64
7.4.160.0210.01216.68
7.4.150.0090.00917.40
7.4.140.0060.01217.86
7.4.130.0110.00916.54
7.4.120.0110.00616.76
7.4.110.0070.01016.83
7.4.100.0030.01416.52
7.4.90.0140.00316.72
7.4.80.0150.00619.39
7.4.70.0130.00316.65
7.4.60.0120.00616.67
7.4.50.0060.00016.67
7.4.40.0100.00616.65
7.4.30.0060.00916.70
7.4.00.0050.01115.19
7.3.330.0000.00513.44
7.3.320.0000.00513.48
7.3.310.0070.00016.42
7.3.300.0040.00416.43
7.3.290.0070.01016.46
7.3.280.0100.00816.47
7.3.270.0130.00417.40
7.3.260.0080.01216.57
7.3.240.0100.00716.64
7.3.230.0140.00316.82
7.3.210.0070.01016.57
7.3.200.0090.01319.39
7.3.190.0090.00916.74
7.3.180.0100.00716.48
7.3.170.0080.00816.58
7.3.160.0110.00616.92
7.3.120.0080.00715.01
7.3.110.0070.01114.75
7.3.100.0100.00315.01
7.3.90.0000.01415.25
7.3.80.0120.00614.90
7.3.70.0090.00915.11
7.3.60.0060.00315.11
7.3.50.0060.01015.05
7.3.40.0060.00914.85
7.3.30.0030.00814.91
7.3.20.0040.01116.66
7.3.10.0150.00416.55
7.3.00.0120.00716.40
7.2.330.0210.00316.97
7.2.320.0070.01017.01
7.2.310.0090.01316.95
7.2.300.0100.00616.80
7.2.290.0100.01016.76
7.2.250.0070.01015.19
7.2.240.0000.02115.30
7.2.230.0100.00715.26
7.2.220.0040.01415.34
7.2.210.0110.00315.15
7.2.200.0030.01315.38
7.2.190.0030.01215.43
7.2.180.0040.01115.39
7.2.170.0030.01615.09
7.2.130.0120.01217.27
7.2.120.0160.00816.76
7.2.110.0170.00516.62
7.2.100.0140.00316.71
7.2.90.0130.00316.96
7.2.80.0130.00316.93
7.2.70.0120.00617.05
7.2.60.0100.01016.86
7.2.50.0140.01116.99
7.2.40.0180.00516.60
7.2.30.0130.00516.61
7.2.20.0080.00816.93
7.2.10.0140.00516.97
7.2.00.0090.00518.36
7.1.330.0000.01415.79
7.1.320.0080.00815.89
7.1.310.0090.00915.98
7.1.300.0140.00415.65
7.1.290.0030.01415.91
7.1.280.0100.00715.86
7.1.270.0060.00615.92
7.1.260.0130.00315.94
7.1.250.0090.01415.81
7.1.200.0030.00716.07
7.1.100.0030.01018.57
7.1.70.0000.00817.39
7.1.60.0140.01019.25
7.1.50.0120.00916.99
7.1.00.0030.07722.42
7.0.200.0000.00717.04
7.0.140.0030.07322.07
7.0.60.0070.07319.86
7.0.50.0100.05317.90
7.0.40.0000.06020.13
7.0.30.0200.05020.25
7.0.20.0300.04020.24
7.0.10.0130.05720.17
7.0.00.0030.04320.25
5.6.280.0000.09321.06
5.6.210.0200.07020.57
5.6.200.0030.06018.18
5.6.190.0230.07020.33
5.6.180.0530.07320.64
5.6.170.0130.04320.51
5.6.160.0130.07020.61
5.6.150.0130.07018.17
5.6.140.0030.03718.24
5.6.130.0100.07718.25
5.6.120.0000.04321.02
5.6.110.0070.06720.91
5.6.100.0130.07320.97
5.6.90.0030.09021.11
5.6.80.0000.06320.41
5.5.350.0270.07720.45
5.5.340.0130.07317.95
5.5.330.0170.06720.40
5.5.320.0030.04320.36
5.5.310.0130.04720.35
5.5.300.0030.08718.00
5.5.290.0030.04317.98
5.5.280.0030.05320.88
5.5.270.0130.03320.86
5.5.260.0170.08020.80
5.5.250.0000.04320.46
5.5.240.0100.06720.35
5.4.450.0230.05019.47
5.4.440.1170.07719.58
5.4.430.0100.05319.63
5.4.420.1030.05319.38
5.4.410.0700.05319.45
5.4.400.1200.07319.29
5.4.390.1330.05719.15
5.4.380.0770.05718.48
5.4.370.0630.06318.74
5.4.360.0570.07018.63
5.4.350.0930.06018.48
5.4.340.0470.05318.50
5.4.320.0070.03512.50
5.4.310.0040.04112.50
5.4.300.0120.03812.51
5.4.290.0080.03612.50
5.4.280.0020.04012.40
5.4.270.0100.03912.40
5.4.260.0050.04212.40
5.4.250.0060.03812.40
5.4.240.0070.05012.40
5.4.230.0100.03412.39
5.4.220.0110.03712.39
5.4.210.0080.03512.39
5.4.200.0060.04412.39
5.4.190.0050.03712.38
5.4.180.0050.03712.39
5.4.170.0060.03612.39
5.4.160.0050.03712.39
5.4.150.0040.04012.39
5.4.140.0090.03512.07
5.4.130.0050.03712.06
5.4.120.0050.03812.01
5.4.110.0060.03712.02
5.4.100.0050.03612.02
5.4.90.0080.03812.02
5.4.80.0040.04012.02
5.4.70.0050.03612.01
5.4.60.0080.03312.01
5.4.50.0070.03412.00
5.4.40.0060.03512.00
5.4.30.0050.04612.00
5.4.20.0080.03311.99
5.4.10.0050.03612.00
5.4.00.0090.03411.48
5.3.290.0040.05712.80
5.3.280.0060.03812.71
5.3.270.0030.04212.73
5.3.260.0060.04212.72
5.3.250.0040.03812.72
5.3.240.0070.03512.72
5.3.230.0040.04012.71
5.3.220.0050.03912.68
5.3.210.0030.04612.68
5.3.200.0060.03612.68
5.3.190.0090.03412.67
5.3.180.0060.04012.67
5.3.170.0060.03612.67
5.3.160.0050.04412.68
5.3.150.0030.03912.68
5.3.140.0070.03512.66
5.3.130.0090.04112.65
5.3.120.0060.04212.66
5.3.110.0050.03912.65
5.3.100.0070.03612.13
5.3.90.0060.04112.11
5.3.80.0070.03512.10
5.3.70.0070.03412.11
5.3.60.0060.04012.09
5.3.50.0080.04112.04
5.3.40.0100.03212.03
5.3.30.0040.03711.99
5.3.20.0070.03511.77
5.3.10.0040.03711.74
5.3.00.0080.03411.73
5.2.170.0060.0299.23
5.2.160.0040.0309.23
5.2.150.0060.0369.23
5.2.140.0050.0309.23
5.2.130.0050.0289.19
5.2.120.0040.0299.18
5.2.110.0070.0269.20
5.2.100.0030.0299.19
5.2.90.0030.0309.19
5.2.80.0050.0329.18
5.2.70.0040.0319.18
5.2.60.0050.0299.14
5.2.50.0050.0309.11
5.2.40.0050.0299.09
5.2.30.0060.0289.06
5.2.20.0070.0269.04
5.2.10.0030.0338.94
5.2.00.0040.0308.80
5.1.60.0080.0198.09
5.1.50.0040.0258.09
5.1.40.0040.0248.06
5.1.30.0070.0278.41
5.1.20.0040.0268.43
5.1.10.0030.0318.16
5.1.00.0060.0328.16
5.0.50.0030.0216.63
5.0.40.0040.0196.50
5.0.30.0030.0326.30
5.0.20.0030.0206.27
5.0.10.0050.0226.25
5.0.00.0050.0296.25
4.4.90.0040.0144.77
4.4.80.0030.0194.76
4.4.70.0050.0154.75
4.4.60.0040.0144.75
4.4.50.0040.0184.77
4.4.40.0040.0264.71
4.4.30.0020.0184.76
4.4.20.0030.0184.84
4.4.10.0020.0154.85
4.4.00.0030.0314.76
4.3.110.0030.0154.67
4.3.100.0030.0144.66
4.3.90.0030.0144.64
4.3.80.0020.0324.59
4.3.70.0030.0144.63
4.3.60.0020.0174.62
4.3.50.0040.0144.63
4.3.40.0030.0234.54
4.3.30.0010.0163.30
4.3.20.0020.0163.28
4.3.10.0030.0143.24
4.3.00.0170.01715.28

preferences:
40.97 ms | 401 KiB | 5 Q