3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line = 'You know this brother has knowledge of brotherhood.'; $pattern = '~\b(Know|brother)\b~i'; $output = preg_replace($pattern, '<b>$1</b>', $line); var_dump(trim($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.5.30.0120.00520.06
8.5.20.0090.00920.16
8.5.10.0080.00819.94
8.5.00.0100.01020.24
8.4.180.0040.00622.07
8.4.170.0130.00920.29
8.4.160.0120.01023.50
8.4.150.0070.00716.94
8.4.140.0150.00817.61
8.4.130.0150.00517.80
8.4.120.0120.00820.55
8.4.110.0160.00422.38
8.4.100.0140.00717.77
8.4.90.0120.00918.58
8.4.80.0070.01317.94
8.4.70.0060.00217.98
8.4.60.0050.00518.90
8.4.50.0120.00920.10
8.4.40.0070.01319.66
8.4.30.0090.01220.23
8.4.20.0060.01319.74
8.4.10.0090.00020.64
8.3.300.0090.01220.72
8.3.290.0100.01020.82
8.3.280.0110.00918.61
8.3.270.0100.01016.64
8.3.260.0140.00516.78
8.3.250.0120.00618.82
8.3.240.0120.00916.70
8.3.230.0060.00516.83
8.3.220.0120.00617.13
8.3.210.0100.00816.58
8.3.200.0030.00516.65
8.3.190.0090.01016.99
8.3.180.0150.00418.37
8.3.170.0040.01417.13
8.3.160.0090.00916.44
8.3.150.0040.00418.80
8.3.140.0040.00418.82
8.3.130.0080.00018.27
8.3.120.0130.00720.64
8.3.110.0060.00320.94
8.3.100.0090.00024.06
8.3.90.0140.00426.77
8.3.80.0060.00316.50
8.3.70.0090.01316.63
8.3.60.0110.00416.75
8.3.50.0150.00420.18
8.3.40.0110.00318.94
8.3.30.0080.00618.95
8.3.20.0050.00324.18
8.3.10.0080.00024.66
8.3.00.0030.00526.16
8.2.300.0130.00922.10
8.2.290.0000.00720.48
8.2.280.0130.00618.43
8.2.270.0120.00617.19
8.2.260.0060.00316.60
8.2.250.0040.00416.59
8.2.240.0100.00617.07
8.2.230.0000.00822.58
8.2.220.0110.00737.54
8.2.210.0050.00326.77
8.2.200.0060.00318.41
8.2.190.0110.00416.63
8.2.180.0040.01125.92
8.2.170.0120.00319.08
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0030.00626.16
8.2.110.0060.00321.18
8.2.100.0000.01117.91
8.2.90.0050.00317.50
8.2.80.0030.00518.95
8.2.70.0040.00417.88
8.2.60.0000.00917.75
8.2.50.0070.00017.98
8.2.40.0000.00718.09
8.2.30.0020.00518.08
8.2.20.0020.00520.33
8.2.10.0040.00417.95
8.2.00.0000.00719.29
8.1.340.0130.01017.69
8.1.330.0110.00923.54
8.1.320.0040.00416.52
8.1.310.0030.00716.89
8.1.300.0080.00818.40
8.1.290.0000.01030.84
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0070.00420.88
8.1.230.0110.00021.03
8.1.220.0050.00318.82
8.1.210.0000.00818.98
8.1.200.0040.00417.23
8.1.190.0000.00917.36
8.1.180.0030.00518.10
8.1.170.0000.00817.62
8.1.160.0040.00418.83
8.1.150.0080.00018.72
8.1.140.0040.00417.43
8.1.130.0040.00418.77
8.1.120.0000.00717.43
8.1.110.0000.00817.47
8.1.100.0000.00817.54
8.1.90.0040.00417.52
8.1.80.0000.00717.44
8.1.70.0030.00317.40
8.1.60.0050.00317.67
8.1.50.0030.00517.60
8.1.40.0090.00017.51
8.1.30.0000.00917.75
8.1.20.0080.00017.71
8.1.10.0050.00517.58
8.1.00.0160.00617.44
8.0.300.0040.00419.83
8.0.290.0050.00216.75
8.0.280.0070.00018.41
8.0.270.0030.00316.89
8.0.260.0040.00418.26
8.0.250.0040.00416.92
8.0.240.0000.00716.90
8.0.230.0000.00716.99
8.0.220.0000.00816.86
8.0.210.0000.00816.99
8.0.200.0030.00317.00
8.0.190.0080.00016.90
8.0.180.0000.00817.04
8.0.170.0110.00716.91
8.0.160.0120.00416.90
8.0.150.0150.00416.77
8.0.140.0200.00016.88
8.0.130.0180.00416.91
8.0.120.0170.00416.84
8.0.110.0220.00016.75
8.0.100.0190.00016.80
8.0.90.0160.00616.89
8.0.80.0230.00016.82
8.0.70.0170.00316.85
8.0.60.0100.01016.82
8.0.50.0170.00316.84
8.0.30.0150.00716.82
8.0.20.0160.00516.97
8.0.10.0160.00317.00
7.4.330.0000.00515.55
7.4.320.0000.00616.56
7.4.300.0000.00716.64
7.4.290.0000.00716.54
7.4.280.0160.00516.70
7.4.270.0200.00316.54
7.4.260.0160.00616.50
7.4.250.0110.00716.65
7.4.240.0170.00916.61
7.4.230.0240.00316.62
7.4.220.0180.00416.60
7.4.210.0120.00916.58
7.4.200.0160.00616.68
7.4.190.0220.00016.69
7.4.180.0170.00516.66
7.4.160.0130.00816.66
7.4.150.0140.00716.56
7.4.140.0200.00016.59
7.4.130.0180.00316.55
7.4.120.0160.00516.57
7.4.110.0210.00016.57
7.4.100.0200.00016.72
7.4.90.0110.00016.50
7.4.80.0080.00316.59
7.4.70.0030.00716.45
7.4.60.0060.00316.57
7.4.50.0150.00416.57
7.4.40.0080.00816.56
7.4.30.0030.00616.57
7.4.20.0000.00916.34
7.4.10.0080.00316.41
7.4.00.0100.00016.52

preferences:
90.51 ms | 1245 KiB | 5 Q