3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = 'Some text that contains src <iframe src="www.example.com"/ data-type="<iframe" data-whoops=" src= oh my"> 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.10.0100.00916.55
8.5.00.0130.00919.83
8.4.150.0030.00014.05
8.4.140.0240.00717.74
8.4.130.0180.00318.42
8.4.120.0110.01017.91
8.4.110.0100.00921.64
8.4.100.0050.00418.95
8.4.90.0120.00818.76
8.4.80.0120.00818.64
8.4.70.0030.00519.93
8.4.60.0090.00718.71
8.4.50.0040.00418.59
8.4.40.0110.00817.62
8.4.30.0030.01618.58
8.4.20.0150.00620.01
8.4.10.0030.00520.42
8.3.280.0130.00820.13
8.3.270.0080.01216.77
8.3.260.0130.00716.54
8.3.250.0060.00418.38
8.3.240.0090.01116.54
8.3.230.0120.00916.67
8.3.220.0090.00918.92
8.3.210.0060.00716.61
8.3.200.0050.00316.52
8.3.190.0110.00817.10
8.3.180.0110.00718.68
8.3.170.0140.00416.95
8.3.160.0120.00616.57
8.3.150.0080.00017.00
8.3.140.0110.00316.54
8.3.130.0090.00018.26
8.3.120.0000.00819.09
8.3.110.0000.00920.94
8.3.100.0160.00324.06
8.3.90.0030.00516.59
8.3.80.0030.00619.36
8.3.70.0140.00716.75
8.3.60.0090.00918.55
8.3.50.0180.01023.58
8.3.40.0100.00321.90
8.3.30.0120.00318.96
8.3.20.0000.00824.18
8.3.10.0070.00024.66
8.3.00.0030.00626.16
8.2.290.0100.00620.42
8.2.280.0120.00818.20
8.2.270.0180.00017.11
8.2.260.0120.00318.57
8.2.250.0100.00716.51
8.2.240.0060.00316.98
8.2.230.0040.00422.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0030.00716.50
8.2.190.0090.00918.41
8.2.180.0070.00725.92
8.2.170.0090.00619.08
8.2.160.0100.00322.96
8.2.150.0050.00325.66
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0060.00319.61
8.2.110.0000.00919.39
8.2.100.0120.00017.84
8.2.90.0080.00019.79
8.2.80.0040.00417.97
8.2.70.0050.00517.88
8.2.60.0060.00318.03
8.2.50.0030.00618.07
8.2.40.0070.00320.20
8.2.30.0040.00418.00
8.2.20.0000.01018.07
8.2.10.0060.00320.98
8.2.00.0040.00419.27
8.1.330.0100.00922.25
8.1.320.0130.00816.38
8.1.310.0060.01018.54
8.1.300.0120.00620.11
8.1.290.0060.00318.88
8.1.280.0070.01325.92
8.1.270.0080.00023.76
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00719.28
8.1.230.0100.00319.15
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.36
8.1.190.0080.00017.23
8.1.180.0070.00018.10
8.1.170.0030.00518.67
8.1.160.0090.00018.82
8.1.150.0050.00218.85
8.1.140.0040.00418.89
8.1.130.0030.00319.97
8.1.120.0040.00417.60
8.1.110.0030.00517.55
8.1.100.0030.00617.43
8.1.90.0070.00017.55
8.1.80.0000.00717.55
8.1.70.0040.00417.44
8.1.60.0030.00617.66
8.1.50.0030.00617.56
8.1.40.0030.00617.54
8.1.30.0050.00317.75
8.1.20.0000.00817.76
8.1.10.0000.00717.57
8.1.00.0000.00817.57
8.0.300.0000.00719.73
8.0.290.0000.00716.75
8.0.280.0030.00318.50
8.0.270.0040.00418.07
8.0.260.0000.00618.47
8.0.250.0030.00317.14
8.0.240.0040.00416.99
8.0.230.0060.00017.01
8.0.220.0060.00016.89
8.0.210.0090.00016.96
8.0.200.0030.00316.91
8.0.190.0000.00817.01
8.0.180.0060.00316.86
8.0.170.0040.00416.96
8.0.160.0000.00816.98
8.0.150.0040.00417.03
8.0.140.0000.00716.98
8.0.130.0030.00313.36
8.0.120.0040.00416.94
8.0.110.0040.00416.88
8.0.100.0070.00017.02
8.0.90.0030.00316.89
8.0.80.0090.00616.94
8.0.70.0040.00417.04
8.0.60.0040.00416.81
8.0.50.0050.00316.86
8.0.30.0130.01017.18
8.0.20.0140.00417.35
8.0.10.0020.00516.99
8.0.00.0150.00316.61
7.4.330.0030.00315.55
7.4.320.0000.00616.74
7.4.300.0000.00616.75
7.4.290.0050.00316.76
7.4.280.0040.00416.74
7.4.270.0030.00516.65
7.4.260.0000.00613.44
7.4.250.0040.00416.64
7.4.240.0040.00416.57
7.4.230.0070.00016.55
7.4.220.0020.00516.78
7.4.210.0050.00916.75
7.4.200.0000.00716.85
7.4.130.0060.01116.70
7.4.120.0160.00616.71
7.4.110.0150.00316.43
7.4.100.0120.01216.70
7.4.90.0090.00916.50
7.4.80.0120.00616.52
7.4.70.0150.00316.73
7.4.60.0100.01416.60
7.4.50.0110.00916.62
7.4.40.0180.00016.58
7.4.30.0130.00316.52
7.4.20.0130.00716.49
7.4.10.0060.01516.63
7.4.00.0070.01016.50
7.3.330.0000.00816.25
7.3.320.0050.00013.14
7.3.310.0000.00716.12
7.3.300.0070.00016.18
7.3.290.0100.00616.29
7.3.260.0030.01616.61
7.3.230.0070.01016.57
7.3.220.0140.00316.34
7.3.210.0140.00316.60
7.3.200.0130.00916.58
7.3.190.0120.00616.33
7.3.180.0100.00716.52
7.3.170.0110.01116.71
7.3.160.0030.01316.39
7.3.150.0100.00716.54
7.3.140.0130.01016.27
7.3.130.0120.00615.98
7.3.120.0060.01116.44
7.3.110.0140.00916.39
7.3.100.0090.00916.40
7.3.90.0030.01416.17
7.3.80.0100.01016.24
7.3.70.0110.00716.33
7.3.60.0090.00916.40
7.3.50.0120.00616.30
7.3.40.0070.01016.30
7.3.30.0100.00716.43
7.3.20.0070.01018.31
7.3.10.0070.01018.21
7.3.00.0060.01218.16
7.2.340.0000.01716.49
7.2.330.0090.00916.48
7.2.320.0130.00816.49
7.2.310.0060.01216.67
7.2.300.0220.00316.56
7.2.290.0140.00416.66
7.2.280.0110.00716.67
7.2.270.0070.01116.71
7.2.260.0130.01016.32
7.2.250.0180.00616.39
7.2.240.0120.00616.52
7.2.230.0100.00716.45
7.2.220.0000.01816.71
7.2.210.0070.01016.56
7.2.200.0100.01016.68
7.2.190.0120.00916.57
7.2.180.0150.00316.78
7.2.170.0070.01116.58
7.2.160.0100.01416.61
7.2.150.0090.00918.34
7.2.140.0060.01218.44
7.2.130.0140.00318.44
7.2.120.0070.01118.34
7.2.110.0120.00618.53
7.2.100.0060.01218.51
7.2.90.0150.00318.42
7.2.80.0090.00918.51
7.2.70.0090.00918.34
7.2.60.0090.01118.28
7.2.50.0090.00918.27
7.2.40.0100.01018.52
7.2.30.0140.00418.47
7.2.20.0070.01018.32
7.2.10.0120.00618.54
7.2.00.0120.00618.45

preferences:
162.31 ms | 403 KiB | 5 Q