3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = 'Some text that contains src <iframe src="www.example.com"/> Some text'; echo preg_replace('~<iframe[^>]*\K (?=src=)~i', ' data-', $content);

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.0110.01020.20
8.4.150.0090.00616.89
8.4.140.0130.00817.49
8.4.130.0150.00518.77
8.4.120.0100.01024.41
8.4.110.0110.00922.36
8.4.100.0090.01118.82
8.4.90.0140.00619.09
8.4.80.0090.01020.43
8.4.70.0120.00918.27
8.4.60.0120.00918.92
8.4.50.0100.00517.61
8.4.40.0100.01017.96
8.4.30.0080.00020.60
8.4.20.0130.00719.60
8.4.10.0120.00620.61
8.3.280.0110.00918.41
8.3.270.0120.00816.63
8.3.260.0130.00616.66
8.3.250.0100.00818.68
8.3.240.0140.00718.82
8.3.230.0080.00616.55
8.3.220.0120.00718.81
8.3.210.0040.00418.57
8.3.200.0040.00516.77
8.3.190.0110.00717.20
8.3.180.0120.00616.89
8.3.170.0150.00316.80
8.3.160.0160.00316.60
8.3.150.0120.00616.80
8.3.140.0110.00718.65
8.3.130.0170.00318.54
8.3.120.0050.00318.91
8.3.110.0090.00016.53
8.3.100.0060.00316.75
8.3.90.0050.00318.32
8.3.80.0060.00319.36
8.3.70.0060.00916.75
8.3.60.0090.00618.55
8.3.50.0070.01023.66
8.3.40.0110.00321.85
8.3.30.0080.00819.02
8.3.20.0090.00024.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.290.0120.00420.71
8.2.280.0060.00318.46
8.2.270.0150.00416.83
8.2.260.0060.01516.60
8.2.250.0050.00316.68
8.2.240.0110.00016.73
8.2.230.0000.00820.94
8.2.220.0060.00316.82
8.2.210.0090.00026.77
8.2.200.0030.00616.88
8.2.190.0060.00916.88
8.2.180.0070.00725.92
8.2.170.0080.00819.08
8.2.160.0110.00422.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00026.35
8.2.110.0120.00922.26
8.2.100.0040.00718.03
8.2.90.0000.00817.97
8.2.80.0000.00921.21
8.2.70.0100.00548.54
8.2.60.0060.00748.54
8.2.50.0090.00548.60
8.2.40.0100.00249.34
8.2.30.0070.00448.68
8.2.20.0040.01048.71
8.2.10.0100.00250.13
8.2.00.0040.00849.30
8.1.330.0110.00722.19
8.1.320.0110.00816.41
8.1.310.0150.00316.44
8.1.300.0000.01016.03
8.1.290.0060.00618.88
8.1.280.0120.00625.92
8.1.270.0060.00323.99
8.1.260.0000.00728.09
8.1.250.0000.00728.09
8.1.240.0060.00323.84
8.1.230.0030.00822.77
8.1.220.0090.00017.79
8.1.210.0110.00018.77
8.1.200.0100.00248.34
8.1.190.0080.00448.28
8.1.180.0040.00948.71
8.1.170.0110.00248.47
8.1.160.0050.00849.12
8.1.150.0060.00749.03
8.1.140.0050.00749.11
8.1.130.0090.00349.72
8.1.120.0080.00448.43
8.1.110.0060.00648.43
8.1.100.0060.00648.44
8.1.90.0060.00748.38
8.1.80.0070.00548.45
8.1.70.0050.00632.97
8.1.60.0100.00348.47
8.1.50.0070.00848.50
8.1.40.0080.00548.46
8.1.30.0080.00548.55
8.1.20.0120.00448.52
8.1.10.0090.00448.53
8.1.00.0060.00848.41
8.0.300.0000.00719.89
8.0.290.0080.00548.10
8.0.280.0090.00548.89
8.0.270.0060.00748.75
8.0.260.0080.00348.83
8.0.250.0060.00548.15
8.0.240.0090.00248.21
8.0.230.0090.00348.14
8.0.220.0060.00648.16
8.0.210.0080.00448.14
8.0.200.0080.00448.16
8.0.190.0070.00548.21
8.0.180.0050.00648.12
8.0.170.0080.00648.15
8.0.160.0070.00548.20
8.0.150.0050.00648.10
8.0.140.0080.00448.14
8.0.130.0030.00746.33
8.0.120.0080.00548.13
8.0.110.0060.00648.09
8.0.100.0090.00348.17
8.0.90.0080.00448.14
8.0.80.0100.00937.71
8.0.70.0100.00248.06
8.0.60.0060.00648.10
8.0.50.0030.00948.10
8.0.30.0100.00637.75
8.0.20.0100.00732.70
8.0.10.0110.00748.23
8.0.00.0100.00537.83
7.4.330.0060.00347.44
7.4.320.0080.00348.02
7.4.300.0060.00648.04
7.4.290.0080.00547.97
7.4.280.0110.00147.94
7.4.270.0060.00648.03
7.4.260.0060.00646.35
7.4.250.0080.00447.98
7.4.240.0080.00448.04
7.4.230.0080.00347.98
7.4.220.0030.00737.51
7.4.210.0090.00832.35
7.4.200.0030.00848.05
7.4.190.0120.00479.33
7.4.180.0110.00479.33
7.4.160.0100.00448.07
7.4.150.0090.00648.05
7.4.140.0120.00348.00
7.4.130.0110.00632.32
7.4.120.0090.00737.47
7.4.110.0080.00837.60
7.4.100.0080.00737.60
7.4.90.0110.00637.48
7.4.80.0070.00937.50
7.4.70.0140.00237.60
7.4.60.0080.00837.59
7.4.50.0100.00637.47
7.4.40.0120.00737.29
7.4.30.0080.00837.45
7.4.20.0110.00537.47
7.4.10.0090.00837.47
7.4.00.0100.00729.19
7.3.330.0070.00647.78
7.3.320.0110.00046.26
7.3.310.0060.00547.85
7.3.300.0070.00547.76
7.3.290.0070.01037.31
7.3.280.0140.00247.82
7.3.270.0100.00647.79
7.3.260.0080.00737.31
7.3.250.0030.01147.81
7.3.240.0080.00847.79
7.3.230.0120.00537.31
7.3.220.0100.00637.34
7.3.210.0110.00537.42
7.3.200.0100.00737.36
7.3.190.0090.00737.29
7.3.180.0090.00737.42
7.3.170.0110.00537.30
7.3.160.0130.00337.34
7.3.150.0090.00737.35
7.3.140.0100.00637.27
7.3.130.0100.00737.31
7.3.120.0080.00837.20
7.3.110.0050.01137.24
7.3.100.0090.00737.20
7.3.90.0130.00437.29
7.3.80.0050.01237.39
7.3.70.0080.00837.31
7.3.60.0100.00537.44
7.3.50.0100.00537.37
7.3.40.0070.00837.29
7.3.30.0120.00637.40
7.3.20.0080.00838.01
7.3.10.0100.00738.03
7.3.00.0120.00837.90
7.2.340.0160.00537.43
7.2.330.0080.01237.50
7.2.320.0130.00637.38
7.2.310.0130.00637.41
7.2.300.0130.00737.39
7.2.290.0140.01029.07
7.2.280.0110.00837.47
7.2.270.0110.00937.41
7.2.260.0200.00337.46
7.2.250.0120.01037.38
7.2.240.0100.00937.42
7.2.230.0180.00337.38
7.2.220.0130.00737.46
7.2.210.0130.00837.40
7.2.200.0140.00737.44
7.2.190.0100.01037.50
7.2.180.0110.00937.46
7.2.170.0170.00937.47
7.2.160.0140.00637.44
7.2.150.0150.00638.14
7.2.140.0140.00738.18
7.2.130.0140.00638.17
7.2.120.0150.00638.16
7.2.110.0110.01038.15
7.2.100.0140.00638.15
7.2.90.0110.01038.13
7.2.80.0220.00538.07
7.2.70.0130.00838.10
7.2.60.0140.00638.06
7.2.50.0120.00838.11
7.2.40.0180.00438.17
7.2.30.0150.00738.15
7.2.20.0080.01438.10
7.2.10.0120.00838.13
7.2.00.0120.00938.07

preferences:
30.43 ms | 403 KiB | 5 Q