3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<TEXT BUILD THE ULTIMATE BRAWLER Not a full line of UPPERCASE TEXT BATTLE THROUGH EPIC LEGO THEMES text text TEXT; echo preg_replace_callback('/([A-Z-]+(?: [A-Z]+)+)(\r\n|\r|\n)/', function($matches) { return "[b]{$matches[0]}[/b]"; }, $string);

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.5.00.0120.00920.11
8.4.150.0030.00014.05
8.4.140.0100.01117.79
8.4.130.0120.01018.24
8.4.120.0070.01322.18
8.4.110.0050.00422.53
8.4.100.0110.01118.05
8.4.90.0140.00718.70
8.4.80.0060.00418.05
8.4.70.0150.00917.87
8.4.60.0050.00418.81
8.4.50.0090.00717.75
8.4.40.0100.01019.86
8.4.30.0070.01118.93
8.4.20.0070.01526.02
8.4.10.0180.00323.95
8.3.280.0140.00618.52
8.3.270.0100.01016.95
8.3.260.0120.00816.85
8.3.250.0120.00618.71
8.3.240.0140.00616.89
8.3.230.0060.00516.66
8.3.220.0050.00317.21
8.3.210.0090.00516.67
8.3.200.0070.00216.58
8.3.190.0060.00217.13
8.3.180.0030.00616.58
8.3.170.0110.00317.34
8.3.160.0160.00016.73
8.3.150.0090.00017.19
8.3.140.0110.00716.86
8.3.130.0060.00316.56
8.3.120.0110.00820.47
8.3.110.0040.00420.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0090.00018.30
8.3.70.0150.00018.43
8.3.60.0140.00716.88
8.3.50.0090.00620.41
8.3.40.0150.00320.07
8.3.30.0160.00618.89
8.3.20.0070.00024.18
8.3.10.0030.00524.66
8.3.00.0000.00826.16
8.2.290.0060.00620.55
8.2.280.0080.00918.54
8.2.270.0100.00717.18
8.2.260.0070.00018.49
8.2.250.0190.00316.89
8.2.240.0100.00716.82
8.2.230.0090.00022.58
8.2.220.0040.00437.54
8.2.210.0100.01026.77
8.2.200.0110.00418.30
8.2.190.0120.00416.75
8.2.180.0120.00925.92
8.2.170.0110.00418.92
8.2.160.0090.00622.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0070.00021.11
8.2.110.0070.00421.30
8.2.100.0100.00318.16
8.2.90.0090.00019.20
8.2.80.0000.00817.97
8.2.70.0030.00617.88
8.2.60.0080.00617.42
8.2.50.0030.00518.07
8.2.40.0040.00421.11
8.2.30.0060.00318.07
8.2.20.0000.00719.35
8.2.10.0000.00818.04
8.2.00.0060.00617.89
8.1.330.0040.00423.93
8.1.320.0120.00716.59
8.1.310.0070.00318.45
8.1.300.0030.00618.24
8.1.290.0050.00530.84
8.1.280.0180.00025.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0130.00028.09
8.1.240.0100.00022.02
8.1.230.0070.00420.86
8.1.220.0000.00817.78
8.1.210.0060.00318.77
8.1.200.0030.00617.48
8.1.190.0040.00417.35
8.1.180.0050.00518.10
8.1.170.0040.00418.68
8.1.160.0000.00718.98
8.1.150.0040.00418.80
8.1.140.0000.00917.57
8.1.130.0080.00317.52
8.1.120.0120.00417.71
8.1.110.0120.00417.73
8.1.100.0100.00717.67
8.1.90.0120.00417.67
8.1.80.0130.00317.69
8.1.70.0090.00617.61
8.1.60.0100.01017.80
8.1.50.0110.00617.78
8.1.40.0050.01417.72
8.1.30.0090.00517.72
8.1.20.0120.00617.86
8.1.10.0140.00417.71
8.1.00.0090.00917.59
8.0.300.0040.00418.77
8.0.290.0000.00816.88
8.0.280.0030.00318.41
8.0.270.0090.00018.23
8.0.260.0050.00517.08
8.0.250.0040.00817.16
8.0.240.0080.00617.13
8.0.230.0090.00417.06
8.0.220.0130.00016.95
8.0.210.0130.00317.04
8.0.200.0130.00017.00
8.0.190.0160.00016.99
8.0.180.0060.00617.02
8.0.170.0050.00717.00
8.0.160.0140.00217.09
8.0.150.0130.00316.91
8.0.140.0110.00517.02
8.0.130.0050.01016.91
8.0.120.0070.00716.89
8.0.110.0120.00216.87
8.0.100.0080.00817.05
8.0.90.0130.00316.98
8.0.80.0110.00516.92
8.0.70.0120.00316.93
8.0.60.0110.00416.93
8.0.50.0120.00317.03
8.0.30.0120.00317.03
8.0.20.0150.00017.00
8.0.10.0080.00817.11
5.3.260.0070.00113.00
5.3.140.0070.00113.06
5.3.20.0060.00113.00
5.3.10.0050.00313.00
5.3.00.0030.00413.00
5.2.170.0020.00313.00
5.2.130.0020.00513.00
5.2.100.0000.00513.00
5.2.70.0030.00313.00
5.2.40.0000.00513.00
5.2.00.0000.00513.00
5.1.00.0000.00413.00
4.4.90.0010.00113.00
4.3.10.0010.00113.00
4.3.00.0000.00213.00

preferences:
29.55 ms | 403 KiB | 5 Q