3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = 'The'; $replace = 'A'; $subject = "The Quick Brown Fox Jumps Over The Lazy Dog's Thermos!"; echo preg_replace( '/.*\K\b' . preg_quote($search, '/') . '\b/i', $replace, $subject );

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.0180.00418.55
8.3.50.0130.00716.62
8.3.40.0070.00722.04
8.3.30.0120.00318.88
8.3.20.0030.00624.18
8.3.10.0040.00424.66
8.3.00.0030.00526.16
8.2.180.0080.00825.92
8.2.170.0070.00718.95
8.2.160.0070.00722.96
8.2.150.0000.00825.66
8.2.140.0120.00624.66
8.2.130.0040.00426.16
8.2.120.0000.00821.16
8.2.110.0090.00020.41
8.2.100.0060.00618.03
8.2.90.0000.00919.12
8.2.80.0100.00017.97
8.2.70.0030.00617.75
8.2.60.0000.00817.92
8.2.50.0030.00618.10
8.2.40.0070.00320.59
8.2.30.0030.00618.19
8.2.20.0050.00318.15
8.2.10.0000.00719.18
8.2.00.0000.00819.16
8.1.280.0090.00925.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.01128.09
8.1.240.0090.00022.19
8.1.230.0080.00321.05
8.1.220.0000.00817.79
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0060.00317.35
8.1.180.0050.00318.10
8.1.170.0030.00918.63
8.1.160.0100.00018.96
8.1.150.0030.00818.96
8.1.140.0040.00418.90
8.1.130.0000.00720.07
8.1.120.0040.00617.59
8.1.110.0070.00517.54
8.1.100.0040.00617.55
8.1.90.0070.00317.59
8.1.80.0050.00517.52
8.1.70.0060.00417.52
8.1.60.0020.01017.75
8.1.50.0040.00817.59
8.1.40.0110.00217.67
8.1.30.0070.00417.69
8.1.20.0080.00417.74
8.1.10.0090.00417.67
8.1.00.0090.00317.57
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0030.00318.44
8.0.270.0070.00018.11
8.0.260.0000.00718.59
8.0.250.0070.00517.09
8.0.240.0080.00317.05
8.0.230.0060.00516.98
8.0.220.0110.00016.97
8.0.210.0080.00316.96
8.0.200.0060.00517.02
8.0.190.0030.00717.09
8.0.180.0060.00516.97
8.0.170.0080.00317.05
8.0.160.0030.00917.00
8.0.150.0050.00616.97
8.0.140.0060.00516.98
8.0.130.0070.00315.16
8.0.120.0090.00217.03
8.0.110.0050.00517.00
8.0.100.0050.00617.06
8.0.90.0080.00317.02
8.0.80.0090.00916.99
8.0.70.0040.00716.90
8.0.60.0060.00616.82
8.0.50.0070.00416.79
8.0.30.0070.00916.96
8.0.20.0120.00617.03
8.0.10.0070.00416.97
8.0.00.0080.00717.07
7.4.330.0050.00015.55
7.4.320.0070.00516.64
7.4.300.0080.00316.65
7.4.290.0060.00616.73
7.4.280.0060.00716.64
7.4.270.0030.00816.72
7.4.260.0080.00416.73
7.4.250.0100.00116.69
7.4.240.0060.00616.71
7.4.230.0070.00516.74
7.4.220.0050.00416.75
7.4.210.0110.00416.76
7.4.200.0070.00316.66
7.4.190.0120.00216.59
7.4.180.0120.00316.81
7.4.160.0150.00016.75
7.4.150.0080.00516.68
7.4.140.0060.00016.73
7.4.130.0070.00716.62
7.4.120.0070.01016.57
7.4.110.0200.00316.53
7.4.100.0080.00816.59
7.4.90.0050.00916.63
7.4.80.0070.00716.55
7.4.70.0060.00916.64
7.4.60.0090.00516.59
7.4.50.0070.00516.49
7.4.40.0040.01016.47
7.4.30.0060.00616.47
7.4.20.0070.00816.50
7.4.10.0060.00916.49
7.4.00.0050.01116.52
7.3.330.0060.00516.41
7.3.320.0050.00514.77
7.3.310.0060.00516.32
7.3.300.0100.00116.37
7.3.290.0070.00816.35
7.3.280.0140.00016.18
7.3.270.0090.00516.40
7.3.260.0070.00816.48
7.3.250.0070.00716.22
7.3.240.0120.00516.43
7.3.230.0110.00816.39
7.3.220.0100.00816.50
7.3.210.0110.00516.34
7.3.200.0100.00816.40
7.3.190.0130.00516.42
7.3.180.0090.00716.14
7.3.170.0070.00816.30
7.3.160.0080.00816.35
7.3.150.0090.00716.29
7.3.140.0100.00916.49
7.3.130.0100.00616.32
7.3.120.0090.01016.37
7.3.110.0130.00716.26
7.3.100.0070.01216.17
7.3.90.0130.00316.60
7.3.80.0090.00716.34
7.3.70.0080.00716.35
7.3.60.0120.00316.40
7.3.50.0080.00716.41
7.3.40.0090.00616.50
7.3.30.0080.00816.45
7.3.20.0120.00516.48
7.3.10.0140.00316.47
7.3.00.0100.00716.32
7.2.340.0080.01116.68
7.2.330.0100.00816.61
7.2.320.0120.00616.57
7.2.310.0110.00516.41
7.2.300.0070.00916.74
7.2.290.0100.00616.64
7.2.280.0060.01016.63
7.2.270.0100.00716.57
7.2.260.0140.00416.56
7.2.250.0080.01116.50
7.2.240.0120.00516.42
7.2.230.0080.00816.67
7.2.220.0080.01116.57
7.2.210.0040.01116.42
7.2.200.0140.00516.60
7.2.190.0110.00516.62
7.2.180.0070.00916.57
7.2.170.0110.00516.74
7.2.160.0060.00916.61
7.2.150.0060.01116.65
7.2.140.0160.00216.76
7.2.130.0140.00516.70
7.2.120.0090.00716.60
7.2.110.0090.00716.73
7.2.100.0100.00616.64
7.2.90.0100.00716.67
7.2.80.0140.00416.54
7.2.70.0100.00916.69
7.2.60.0100.00716.72
7.2.50.0080.01016.66
7.2.40.0060.01216.69
7.2.30.0230.00516.78
7.2.20.0130.00516.77
7.2.10.0140.00416.71
7.2.00.0150.00716.79

preferences:
56.87 ms | 400 KiB | 5 Q