3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sentence='This is the sentence to be searhed through'; $search = 'sent'; $result = preg_replace("/" . preg_quote($search, "/") . "/ui", "<strong style='color:yellow'>$0</strong>", $sentence); echo $result;

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.4.120.0120.00720.13
8.4.110.0090.01122.69
8.4.100.0120.00818.08
8.4.90.0160.00420.35
8.4.80.0060.00318.06
8.4.70.0140.00819.92
8.4.60.0050.00421.93
8.4.50.0110.01019.02
8.4.40.0070.01319.63
8.4.30.0100.01020.59
8.4.20.0100.01018.77
8.4.10.0060.00318.06
8.3.250.0050.00418.96
8.3.240.0050.00417.05
8.3.230.0120.00716.70
8.3.220.0060.00217.24
8.3.210.0130.00616.93
8.3.200.0100.01016.84
8.3.190.0070.00818.62
8.3.180.0110.00816.78
8.3.170.0080.00018.99
8.3.160.0120.00320.32
8.3.150.0070.01117.47
8.3.140.0040.00416.73
8.3.130.0090.00616.76
8.3.120.0090.00618.78
8.3.110.0100.01020.94
8.3.100.0090.00624.06
8.3.90.0080.00026.77
8.3.80.0070.00317.02
8.3.70.0040.01516.63
8.3.60.0140.01016.88
8.3.50.0140.00718.27
8.3.40.0070.00718.92
8.3.30.0110.00319.01
8.3.20.0050.00224.18
8.3.10.0030.00624.66
8.3.00.0080.00026.16
8.2.290.0110.00516.96
8.2.280.0130.00718.38
8.2.270.0120.00617.48
8.2.260.0070.00317.47
8.2.250.0140.00718.68
8.2.240.0080.00019.26
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0130.00326.77
8.2.200.0060.00318.66
8.2.190.0070.01116.63
8.2.180.0030.01025.92
8.2.170.0090.00919.08
8.2.160.0090.00922.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00426.35
8.2.110.0100.00020.52
8.2.100.0100.00018.03
8.2.90.0030.00518.16
8.2.80.0040.00419.11
8.2.70.0070.00517.91
8.2.60.0000.00718.03
8.2.50.0050.00318.10
8.2.40.0080.00319.52
8.2.30.0070.00019.27
8.2.20.0060.00318.02
8.2.10.0050.00219.40
8.2.00.0070.00019.48
8.1.330.0130.00622.20
8.1.320.0090.01016.33
8.1.310.0140.00018.35
8.1.300.0080.00017.98
8.1.290.0090.00030.84
8.1.280.0090.00925.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.91
8.1.230.0110.00023.82
8.1.220.0040.00417.76
8.1.210.0040.00418.89
8.1.200.0000.01017.47
8.1.190.0060.00317.48
8.1.180.0000.00818.10
8.1.170.0040.00418.65
8.1.160.0040.00420.74
8.1.150.0000.00719.02
8.1.140.0050.00318.98
8.1.130.0000.00717.60
8.1.120.0000.00817.63
8.1.110.0000.00817.60
8.1.100.0000.00817.61
8.1.90.0030.00317.59
8.1.80.0020.00517.61
8.1.70.0040.00417.62
8.1.60.0030.00917.72
8.1.50.0030.00617.70
8.1.40.0040.00417.68
8.1.30.0000.00817.80
8.1.20.0040.00417.74
8.1.10.0040.00417.61
8.1.00.0030.00617.47
8.0.300.0030.00320.05
8.0.290.0020.00516.88
8.0.280.0030.00318.42
8.0.270.0030.00317.09
8.0.260.0000.00616.99
8.0.250.0070.00017.16
8.0.240.0000.00817.18
8.0.230.0000.00717.16
8.0.220.0070.00017.06
8.0.210.0030.00517.15
8.0.200.0030.00317.14
8.0.190.0000.00717.18
8.0.180.0030.00517.02
8.0.170.0050.00317.12
8.0.160.0090.00417.09
8.0.150.0030.00317.00
8.0.140.0040.00417.02
8.0.130.0050.00013.52
8.0.120.0000.00717.11
8.0.110.0070.00017.05
8.0.100.0050.00317.16
8.0.90.0040.00417.16
8.0.80.0080.01017.12
8.0.70.0000.00817.18
8.0.60.0040.00416.93
8.0.50.0040.00417.11
8.0.30.0040.01117.12
8.0.20.0090.00617.19
8.0.10.0130.00317.14
8.0.00.0080.00817.17
7.4.330.0000.00515.55
7.4.320.0030.00316.73
7.4.300.0000.00616.78
7.4.290.0040.00416.48
7.4.280.0000.00816.70
7.4.270.0040.00416.88
7.4.260.0000.00513.48
7.4.250.0040.00416.82
7.4.240.0040.00416.80
7.4.230.0000.00816.55
7.4.220.0020.00516.73
7.4.210.0090.00616.75
7.4.200.0000.00716.70
7.4.160.0100.01016.77
7.4.150.0100.00716.77
7.4.140.0100.01016.69
7.4.130.0120.00316.52
7.4.120.0090.00916.78
7.4.110.0120.00916.61
7.4.100.0070.00716.72
7.4.90.0040.01116.64
7.4.80.0080.00816.81
7.4.70.0110.00616.65
7.4.60.0060.01216.77
7.4.50.0100.00716.46
7.4.40.0040.01216.56
7.4.30.0080.00816.62
7.4.20.0030.01416.64
7.4.10.0110.00916.76
7.4.00.0130.00716.54
7.3.330.0070.00016.45
7.3.320.0030.00313.34
7.3.310.0040.00416.31
7.3.300.0000.00716.50
7.3.290.0080.00916.45
7.3.280.0110.00416.36
7.3.270.0130.00516.52
7.3.260.0100.00616.50
7.3.250.0060.01216.49
7.3.240.0070.01416.47
7.3.230.0120.00416.52
7.3.220.0040.01516.36
7.3.210.0090.00616.44
7.3.200.0060.01016.45
7.3.190.0130.00416.41
7.3.180.0070.00716.39
7.3.170.0070.01116.39
7.3.160.0070.00716.35
7.3.150.0030.01216.47
7.3.140.0040.01616.52
7.3.130.0120.00816.54
7.3.120.0070.00716.37
7.3.110.0030.01316.31
7.3.100.0060.00816.38
7.3.90.0090.00616.66
7.3.80.0100.00716.59
7.3.70.0120.00316.53
7.3.60.0040.01216.65
7.3.50.0070.01116.54
7.3.40.0090.01116.64
7.3.30.0040.01116.50
7.3.20.0060.01016.57
7.3.10.0120.00616.61
7.3.00.0170.00016.58

preferences:
28.33 ms | 403 KiB | 5 Q