3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = ' <img height="20" src="https://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="" data-thumb="//i.ytimg.com/i/YfdidRxbB8Qhf0Nx7ioOYw/1.jpg" width="20" aria-hidden="true" >'; $input = preg_ireplace('#<img[^>]*data-thumb=#s', '<img alt="Thumbnail" src=', $input); echo $input;

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.0090.00616.75
8.3.50.0340.00821.99
8.3.40.0140.00718.66
8.3.30.0110.00818.59
8.3.20.0000.00820.38
8.3.10.0080.00023.60
8.3.00.0040.00419.38
8.2.180.0170.00316.75
8.2.170.0040.01122.96
8.2.160.0100.00320.47
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00417.50
8.2.120.0070.00026.35
8.2.110.0060.00322.12
8.2.100.0100.00018.22
8.2.90.0050.00319.08
8.2.80.0090.00017.97
8.2.70.0030.00617.36
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0030.00619.52
8.2.30.0000.00720.68
8.2.20.0050.00317.75
8.2.10.0000.00918.02
8.2.00.0000.00717.95
8.1.280.0130.00625.92
8.1.270.0060.00323.97
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0110.01121.85
8.1.230.0070.00419.12
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.13
8.1.190.0040.00417.22
8.1.180.0050.00218.10
8.1.170.0000.00818.61
8.1.160.0000.00721.93
8.1.150.0050.00318.74
8.1.140.0060.00319.55
8.1.130.0000.00717.55
8.1.120.0060.00317.40
8.1.110.0040.00417.46
8.1.100.0040.00417.41
8.1.90.0030.00317.42
8.1.80.0030.00517.28
8.1.70.0000.00717.23
8.1.60.0000.00817.52
8.1.50.0000.00917.39
8.1.40.0030.00717.47
8.1.30.0000.00817.63
8.1.20.0040.00417.50
8.1.10.0050.00517.55
8.1.00.0060.00317.53
8.0.300.0060.00318.77
8.0.290.0000.00816.75
8.0.280.0000.00818.39
8.0.270.0070.00017.18
8.0.260.0030.00517.10
8.0.250.0030.00317.00
8.0.240.0040.00417.03
8.0.230.0060.00317.00
8.0.220.0070.00016.77
8.0.210.0000.00816.82
8.0.200.0000.00616.99
8.0.190.0040.00416.96
8.0.180.0040.00416.92
8.0.170.0060.00316.80
8.0.160.0040.00416.83
8.0.150.0030.00316.79
8.0.140.0070.00016.71
8.0.130.0030.00313.41
8.0.120.0050.00316.84
8.0.110.0070.00016.75
8.0.100.0000.00816.72
8.0.90.0000.00716.73
8.0.80.0050.01016.91
8.0.70.0000.00817.00
8.0.60.0000.00716.71
8.0.50.0000.00816.91
8.0.30.0090.00817.01
8.0.20.0090.00917.40
8.0.10.0040.00417.04
8.0.00.0090.01216.61
7.4.330.0000.00516.67
7.4.320.0030.00316.46
7.4.300.0030.00316.53
7.4.290.0030.00316.59
7.4.280.0050.00316.61
7.4.270.0030.00316.45
7.4.260.0030.00316.57
7.4.250.0080.00016.47
7.4.240.0070.00016.51
7.4.230.0030.00316.66
7.4.220.0060.01016.59
7.4.210.0040.01116.63
7.4.200.0000.00716.44
7.4.160.0080.00816.63
7.4.150.0060.01217.40
7.4.140.0060.01317.86
7.4.130.0100.00816.45
7.4.120.0060.01116.59
7.4.110.0090.00616.74
7.4.100.0100.01016.64
7.4.90.0060.01616.30
7.4.80.0070.01219.39
7.4.70.0090.00916.52
7.4.60.0060.00916.47
7.4.50.0070.00716.41
7.4.40.0080.00816.24
7.4.30.0110.01116.42
7.4.00.0060.00914.80
7.3.330.0000.00513.17
7.3.320.0040.00412.99
7.3.310.0070.00016.19
7.3.300.0070.00016.10
7.3.290.0060.01016.26
7.3.280.0060.00816.28
7.3.270.0090.00817.40
7.3.260.0130.00916.37
7.3.250.0110.00516.45
7.3.240.0090.00816.35
7.3.230.0070.01016.52
7.3.210.0060.01316.33
7.3.200.0090.00616.46
7.3.190.0080.00816.41
7.3.180.0130.00316.45
7.3.170.0070.01016.60
7.3.160.0130.00316.22
7.3.120.0070.01014.96
7.3.110.0100.00614.41
7.3.100.0080.00615.00
7.3.90.0030.01414.82
7.3.80.0030.00915.10
7.3.70.0000.01414.77
7.3.60.0090.00314.91
7.3.50.0120.00314.84
7.3.40.0040.01114.88
7.3.30.0110.00014.73
7.3.20.0000.01116.71
7.3.10.0070.00716.49
7.3.00.0070.00416.56
7.2.330.0100.00716.30
7.2.320.0160.00616.52
7.2.310.0070.01316.58
7.2.300.0090.00916.50
7.2.290.0100.01016.52
7.2.240.0040.00714.70
7.2.230.0110.00414.56
7.2.220.0070.00715.06
7.2.210.0000.01614.97
7.2.200.0070.00414.90
7.2.190.0060.00914.99
7.2.180.0100.00714.84
7.2.170.0140.00014.86
7.2.160.0070.01014.98
7.2.150.0100.00716.77
7.2.140.0070.01016.72
7.2.130.0120.00016.84
7.2.120.0100.00316.55
7.2.110.0060.00616.77
7.2.100.0090.00616.79
7.2.90.0070.00716.86
7.2.80.0100.00016.57
7.2.70.0110.00416.53
7.2.60.0070.00716.75
7.2.50.0080.00816.57
7.2.40.0040.00816.88
7.2.30.0000.01216.62
7.2.20.0110.00416.77
7.2.10.0070.00716.64
7.2.00.0040.00718.07
7.1.330.0070.00715.45
7.1.320.0080.00415.60
7.1.310.0000.01315.64
7.1.300.0090.00315.42
7.1.290.0080.00815.55
7.1.280.0040.00715.66
7.1.270.0030.00715.55
7.1.260.0000.01315.58
7.1.250.0040.01115.54
7.1.200.0030.00615.41
7.1.100.0070.00718.02
7.1.70.0030.00317.03
7.1.60.0180.00319.12
7.1.50.0070.01116.91
7.1.00.0070.07322.30
7.0.200.0030.00716.64
7.0.60.0030.08319.78
7.0.50.0030.07017.77
7.0.40.0030.04720.24
7.0.30.0400.07720.21
7.0.20.0200.03720.01
7.0.10.0030.04319.99
7.0.00.0100.06320.11
5.6.280.0030.06021.12
5.6.210.0130.08020.68
5.6.200.0070.08018.23
5.6.190.0100.08720.48
5.6.180.0200.03720.48
5.6.170.0130.04720.53
5.6.160.0130.05020.46
5.6.150.0100.05018.14
5.6.140.0070.05318.20
5.6.130.0000.05718.18
5.6.120.0070.06320.89
5.6.110.0070.06021.08
5.6.100.0070.07720.98
5.6.90.0130.07720.96
5.6.80.0070.08320.52
5.5.350.4100.04020.39
5.5.340.0000.04718.02
5.5.330.0100.07320.33
5.5.320.0030.05020.41
5.5.310.0170.05020.16
5.5.300.0070.05017.96
5.5.290.0070.05718.00
5.5.280.0070.05020.79
5.5.270.0100.07020.75
5.5.260.0100.03320.71
5.5.250.0130.07320.68
5.5.240.0270.08020.14

preferences:
44.5 ms | 401 KiB | 5 Q