3v4l.org

run code in 300+ PHP versions simultaneously
<?php $word="the"; $replaceWith = "<span class=\"found\">".$word."</span>"; $sentence = "Hello, did you hear the quick brown fox jumped over the lazy dog"; // Remove everything before first occurrence $sentence = strstr($sentence, $word); // Bold $sentence = str_replace($word, $replaceWith, $sentence); echo $sentence;

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.0070.00716.50
8.3.50.0070.01417.33
8.3.40.0040.01818.67
8.3.30.0040.01218.72
8.3.20.0040.00418.82
8.3.10.0080.00020.39
8.3.00.0090.00019.25
8.2.180.0150.00316.48
8.2.170.0140.00022.96
8.2.160.0110.00421.02
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0030.00519.23
8.2.110.0030.00620.96
8.2.100.0040.00717.78
8.2.90.0030.00617.75
8.2.80.0000.00917.97
8.2.70.0060.00317.80
8.2.60.0030.00517.99
8.2.50.0040.00418.10
8.2.40.0050.00219.25
8.2.30.0070.00019.14
8.2.20.0000.00817.78
8.2.10.0050.00217.66
8.2.00.0040.00417.62
8.1.280.0070.00725.92
8.1.270.0000.00924.66
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00617.35
8.1.230.0030.00717.83
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0000.01017.23
8.1.180.0080.00018.10
8.1.170.0040.00418.69
8.1.160.0040.00418.87
8.1.150.0080.00018.95
8.1.140.0040.00417.47
8.1.130.0030.00317.70
8.1.120.0040.00417.50
8.1.110.0000.00717.49
8.1.100.0050.00317.35
8.1.90.0000.00817.43
8.1.80.0040.00417.30
8.1.70.0030.00317.46
8.1.60.0040.00417.46
8.1.50.0070.00017.47
8.1.40.0000.00717.53
8.1.30.0000.00717.68
8.1.20.0050.00317.69
8.1.10.0040.00417.41
8.1.00.0070.00017.46
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0070.00018.37
8.0.270.0080.00017.26
8.0.260.0030.00316.79
8.0.250.0000.00816.97
8.0.240.0030.00616.86
8.0.230.0060.00017.00
8.0.220.0030.00316.90
8.0.210.0070.00016.93
8.0.200.0030.00316.98
8.0.190.0060.00316.84
8.0.180.0030.00316.95
8.0.170.0000.00816.92
8.0.160.0030.00316.90
8.0.150.0000.00816.83
8.0.140.0060.00316.89
8.0.130.0030.00313.34
8.0.120.0070.00016.72
8.0.110.0040.00416.72
8.0.100.0040.00416.75
8.0.90.0000.00716.92
8.0.80.0060.00916.94
8.0.70.0000.00816.89
8.0.60.0000.00716.89
8.0.50.0040.00416.87
8.0.30.0140.00616.90
8.0.20.0100.00916.99
8.0.10.0050.00316.93
8.0.00.0160.00516.62
7.4.330.0030.00312.93
7.4.320.0030.00316.37
7.4.300.0030.00316.48
7.4.290.0000.00716.53
7.4.280.0000.00816.54
7.4.270.0050.00216.47
7.4.260.0040.00413.21
7.4.250.0050.00516.52
7.4.240.0030.00316.57
7.4.230.0000.00716.57
7.4.220.0120.00616.58
7.4.210.0070.00816.53
7.4.200.0000.00816.60
7.4.190.0000.00716.45
7.4.160.0060.01016.54
7.4.150.0120.00616.50
7.4.140.0080.01116.40
7.4.130.0060.01116.45
7.4.120.0080.00916.36
7.4.110.0090.00916.26
7.4.100.0070.01016.52
7.4.90.0090.00916.49
7.4.80.0110.01116.35
7.4.70.0160.00816.51
7.4.60.0110.00916.44
7.4.50.0090.00016.34
7.4.40.0030.01016.48
7.4.30.0090.00916.54
7.4.00.0050.01014.91
7.3.330.0030.00313.17
7.3.320.0000.00513.17
7.3.310.0040.00416.09
7.3.300.0040.00416.20
7.3.290.0120.00316.25
7.3.280.0030.01316.29
7.3.270.0070.01116.30
7.3.260.0070.01116.47
7.3.250.0140.00816.39
7.3.240.0080.00916.22
7.3.230.0070.01016.46
7.3.210.0080.00816.41
7.3.200.0090.00919.39
7.3.190.0030.01616.23
7.3.180.0100.00616.39
7.3.170.0090.01016.38
7.3.160.0120.00316.16
7.3.120.0080.00814.59
7.3.110.0100.00714.82
7.3.100.0000.00914.64
7.3.90.0160.00014.73
7.3.80.0070.00714.97
7.3.70.0150.00014.93
7.3.60.0070.00314.79
7.3.50.0030.01014.99
7.3.40.0070.01414.78
7.3.30.0070.01014.84
7.3.20.0040.00816.48
7.3.10.0060.01016.78
7.3.00.0030.01016.72
7.2.330.0060.01316.39
7.2.320.0100.00716.33
7.2.310.0130.00516.52
7.2.300.0070.01016.85
7.2.290.0110.00516.73
7.2.250.0070.01015.20
7.2.240.0100.01014.86
7.2.230.0060.01314.91
7.2.220.0070.01115.01
7.2.210.0000.01514.89
7.2.200.0100.00314.75
7.2.190.0060.00614.97
7.2.180.0130.01015.11
7.2.170.0030.01415.05
7.2.60.0030.01016.84
7.2.50.0120.00017.00
7.2.00.0060.00619.65
7.1.330.0040.00716.00
7.1.320.0080.00315.71
7.1.310.0030.00715.73
7.1.300.0090.00615.77
7.1.290.0060.01215.59
7.1.280.0030.01015.81
7.1.270.0040.00415.81
7.1.260.0030.01015.82
7.1.200.0040.01115.88
7.1.100.0030.00718.32
7.1.70.0030.00717.17
7.1.60.0070.01819.40
7.1.50.0080.01217.09
7.1.00.0030.05322.48
7.0.200.0000.00816.60
7.0.140.0000.07722.08
7.0.120.0030.06022.03
7.0.60.0030.08319.86
7.0.50.0070.08717.89
7.0.40.0070.08720.30
7.0.30.0130.04720.16
7.0.20.0370.07320.16
7.0.10.0070.04720.17
7.0.00.0030.04720.18
5.6.280.0030.07321.06
5.6.210.0100.07720.74
5.6.200.0030.06018.23
5.6.190.0000.09020.77
5.6.180.0430.06020.61
5.6.170.0230.07720.54
5.6.160.0100.08320.54
5.6.150.0070.07718.12
5.6.140.0070.03718.15
5.6.130.0000.04318.20
5.6.120.0100.08021.11
5.6.110.0070.07021.00
5.6.100.0100.07021.08
5.6.90.0100.04021.07
5.6.80.0170.06720.27
5.5.350.0230.07320.46
5.5.340.0070.04317.93
5.5.330.0000.05720.43
5.5.320.0230.07020.29
5.5.310.0130.05020.33
5.5.300.0070.08317.92
5.5.290.0070.03717.98
5.5.280.0100.07020.94
5.5.270.0100.04720.84
5.5.260.0130.06320.75
5.5.250.0030.08020.60
5.5.240.0370.07020.18
5.4.450.0100.07719.51
5.4.440.0130.06019.46
5.4.430.0100.07319.24
5.4.420.0070.05019.43
5.4.410.0030.07319.39
5.4.400.0100.05719.15
5.4.390.0070.04718.79
5.4.380.0200.06319.15
5.4.370.0130.07018.93
5.4.360.0030.08719.19
5.4.350.0070.07018.79
5.4.340.0130.03319.18
5.4.320.0070.06319.14
5.4.310.0130.04719.18
5.4.300.0030.07719.17
5.4.290.0000.05019.18
5.4.280.0030.04019.11
5.4.270.0030.04019.14
5.4.260.0030.05719.15
5.4.250.0000.05718.90
5.4.240.0030.06319.11
5.4.230.0000.08019.15
5.4.220.0100.04019.17
5.4.210.0070.05319.07
5.4.200.0070.08018.91
5.4.190.0070.04319.14
5.4.180.0030.08018.99
5.4.170.0070.04319.16
5.4.160.0070.03718.77
5.4.150.0000.04319.08
5.4.140.0070.04316.30
5.4.130.0100.07016.25
5.4.120.0030.07716.25
5.4.110.0030.05016.27
5.4.100.0000.04016.23
5.4.90.0000.04016.40
5.4.80.0000.04016.32
5.4.70.0070.03316.34
5.4.60.0030.03716.38
5.4.50.0030.03316.25
5.4.40.0030.03316.23
5.4.30.0000.03716.38
5.4.20.0030.03316.31
5.4.10.0030.03316.63
5.4.00.0100.05015.71
5.3.290.0130.04314.59
5.3.280.0070.05314.52
5.3.270.0070.07314.54
5.3.260.0100.03714.50
5.3.250.0030.04014.50
5.3.240.0030.07714.61
5.3.230.0030.04314.38
5.3.220.0030.05714.65
5.3.210.0030.06714.46
5.3.200.0070.04714.46
5.3.190.0070.03714.54
5.3.180.0030.03714.53
5.3.170.0030.04014.38
5.3.160.0170.02314.38
5.3.150.0070.03014.54
5.3.140.0070.03314.49
5.3.130.0100.03314.64
5.3.120.0070.03714.56
5.3.110.0000.04014.48
5.3.100.0030.05313.95
5.3.90.0070.07313.94
5.3.80.0000.07313.83
5.3.70.0130.03014.00
5.3.60.0030.07713.82
5.3.50.0000.04013.87
5.3.40.0070.03313.88
5.3.30.0070.03013.84
5.3.20.0070.03013.51
5.3.10.0030.03313.63
5.3.00.0100.03013.45
5.2.170.0000.03011.23
5.2.160.0030.02711.00
5.2.150.0000.03311.13
5.2.140.0000.03310.96
5.2.130.0000.03011.18
5.2.120.0000.03011.25
5.2.110.0000.03011.01
5.2.100.0000.03010.98
5.2.90.0100.02311.08
5.2.80.0030.02710.98
5.2.70.0070.02311.07
5.2.60.0000.03310.93
5.2.50.0000.03010.89
5.2.40.0070.02310.92
5.2.30.0100.02010.97
5.2.20.0030.02710.89
5.2.10.0030.03010.85
5.2.00.0030.02710.87
5.1.60.0000.0309.96
5.1.50.0030.02710.05
5.1.40.0000.0239.95
5.1.30.0030.02310.32
5.1.20.0070.02310.35
5.1.10.0030.0239.97
5.1.00.0030.02310.08
5.0.50.0000.0239.11
5.0.40.0000.0209.11
5.0.30.0000.0379.11
5.0.20.0000.0209.11
5.0.10.0070.0239.11
5.0.00.0070.0409.11
4.4.90.0000.0179.11
4.4.80.0030.0109.11
4.4.70.0000.0179.11
4.4.60.0070.0109.11
4.4.50.0000.0179.11
4.4.40.0000.0239.11
4.4.30.0000.0179.11
4.4.20.0000.0179.11
4.4.10.0000.0179.11
4.4.00.0000.0239.11
4.3.110.0000.0139.11
4.3.100.0000.0179.11
4.3.90.0000.0209.11
4.3.80.0070.0509.11
4.3.70.0070.0279.11
4.3.60.0070.0309.11
4.3.50.0030.0309.11
4.3.40.0000.0509.11
4.3.30.0070.0279.11
4.3.20.0000.0309.11
4.3.10.0070.0209.11
4.3.00.0030.0209.11

preferences:
50.94 ms | 401 KiB | 5 Q