3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'before <cite>Quote from <a href="/page.php" class="link">Testuser ยป 29.09.2016 15:08</a>:</cite> after'; $str = preg_replace_callback("/<cite>.*<\/cite>/i", "replace", $str); function replace($matches){ return strip_tags($matches[0], "<cite>"); } echo $str;

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.30.0110.00621.81
8.5.20.0090.00820.10
8.5.10.0100.00820.24
8.5.00.0120.00920.40
8.4.180.0120.00822.04
8.4.170.0130.00923.88
8.4.160.0150.00923.09
8.4.150.0090.00416.96
8.4.140.0100.01017.95
8.4.130.0070.00517.78
8.4.120.0090.00320.75
8.4.110.0060.01118.82
8.4.100.0060.01318.16
8.4.90.0040.00518.20
8.4.80.0040.00518.17
8.4.70.0110.00718.09
8.4.60.0120.00817.95
8.4.50.0140.00718.67
8.4.40.0100.01019.65
8.4.30.0130.00617.73
8.4.20.0060.01419.72
8.4.10.0080.01219.49
8.3.300.0100.01119.09
8.3.290.0130.00720.84
8.3.280.0120.00918.60
8.3.270.0150.00516.74
8.3.260.0100.00716.73
8.3.250.0050.00318.80
8.3.240.0140.00516.87
8.3.230.0110.00716.63
8.3.220.0100.00919.01
8.3.210.0100.00916.78
8.3.200.0130.00616.54
8.3.190.0070.01117.07
8.3.180.0120.00718.99
8.3.170.0080.00017.10
8.3.160.0030.01616.46
8.3.150.0080.00817.08
8.3.140.0070.01116.59
8.3.130.0080.00018.35
8.3.120.0060.00320.69
8.3.110.0030.00620.94
8.3.100.0120.00320.27
8.3.90.0000.00718.68
8.3.80.0060.00318.43
8.3.70.0120.00316.63
8.3.60.0100.01316.63
8.3.50.0140.00521.18
8.3.40.0140.00418.66
8.3.30.0100.00318.88
8.3.20.0050.00320.64
8.3.10.0040.00423.78
8.3.00.0070.00021.69
8.2.300.0130.01020.50
8.2.290.0130.00620.48
8.2.280.0150.00416.94
8.2.270.0110.00717.01
8.2.260.0070.01119.27
8.2.250.0140.00418.73
8.2.240.0000.00816.86
8.2.230.0050.00522.58
8.2.220.0060.00337.54
8.2.210.0090.00026.77
8.2.200.0030.00618.41
8.2.190.0090.00918.79
8.2.180.0140.00318.41
8.2.170.0070.00722.96
8.2.160.0110.00322.26
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00019.77
8.2.120.0050.00226.35
8.2.110.0090.00019.32
8.2.100.0080.00417.96
8.2.90.0050.00319.35
8.2.80.0000.00817.97
8.2.70.0040.00417.88
8.2.60.0040.00417.93
8.2.50.0030.00618.10
8.2.40.0050.00320.60
8.2.30.0050.00219.46
8.2.20.0040.00418.22
8.2.10.0000.00718.19
8.2.00.0030.00517.98
8.1.340.0130.00917.70
8.1.330.0120.00716.56
8.1.320.0110.00816.36
8.1.310.0120.00618.71
8.1.300.0070.00416.29
8.1.290.0000.00918.88
8.1.280.0070.01425.92
8.1.270.0040.00421.94
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0000.01021.24
8.1.230.0060.00617.70
8.1.220.0000.00817.80
8.1.210.0050.00318.77
8.1.200.0000.00817.48
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0060.00318.78
8.1.160.0040.00418.86
8.1.150.0000.00822.08
8.1.140.0040.00419.59
8.1.130.0000.00717.68
8.1.120.0050.00217.57
8.1.110.0000.00817.50
8.1.100.0050.00517.54
8.1.90.0040.00417.45
8.1.80.0000.00717.58
8.1.70.0070.00317.48
8.1.60.0040.00417.73
8.1.50.0040.00417.50
8.1.40.0080.00017.66
8.1.30.0060.00317.77
8.1.20.0000.00817.68
8.1.10.0040.00417.76
8.1.00.0080.00017.56
8.0.300.0040.00418.83
8.0.290.0020.00516.88
8.0.280.0000.00718.47
8.0.270.0070.00017.21
8.0.260.0030.00318.55
8.0.250.0030.00317.13
8.0.240.0080.00016.95
8.0.230.0030.00317.07
8.0.220.0030.00316.89
8.0.210.0000.01016.89
8.0.200.0030.00316.92
8.0.190.0080.00016.93
8.0.180.0000.00817.01
8.0.170.0000.00817.00
8.0.160.0000.00717.01
8.0.150.0000.00816.82
8.0.140.0000.00716.93
8.0.130.0050.00213.40
8.0.120.0040.00416.92
8.0.110.0040.00416.90
8.0.100.0040.00416.96
8.0.90.0000.00816.88
8.0.80.0030.01816.91
8.0.70.0030.00616.86
8.0.60.0000.00717.06
8.0.50.0050.00216.94
8.0.30.0080.00717.23
8.0.20.0120.00617.40
8.0.10.0040.00417.13
8.0.00.0130.00316.96
7.4.330.0050.00015.55
7.4.320.0030.00316.74
7.4.300.0060.00016.80
7.4.290.0060.00316.67
7.4.280.0000.00816.76
7.4.270.0040.00416.69
7.4.260.0040.00416.65
7.4.250.0030.00316.54
7.4.240.0000.00816.66
7.4.230.0040.00416.78
7.4.220.0080.01116.80
7.4.210.0120.00916.70
7.4.200.0030.00316.71
7.4.160.0090.01016.67
7.4.150.0110.00617.40
7.4.140.0140.00817.86
7.4.130.0110.00516.63
7.4.120.0090.00816.73
7.4.110.0130.00616.80
7.4.100.0110.01016.56
7.4.90.0040.01516.74
7.4.80.0130.00419.39
7.4.70.0140.00316.64
7.4.60.0060.00916.55
7.4.50.0060.00616.63
7.4.40.0030.01216.66
7.4.30.0100.01016.52
7.4.00.0090.00815.01
7.3.330.0000.00513.46
7.3.320.0050.00013.25
7.3.310.0000.00716.31
7.3.300.0030.00316.42
7.3.290.0110.00316.50
7.3.280.0100.00916.43
7.3.270.0090.00817.40
7.3.260.0140.00816.61
7.3.250.0060.01316.51
7.3.240.0090.01116.60
7.3.230.0060.01016.45
7.3.210.0000.01716.64
7.3.200.0100.00616.39
7.3.190.0120.00316.40
7.3.180.0060.00916.35
7.3.170.0090.00916.41
7.3.160.0070.01016.43
7.3.120.0100.00814.97
7.3.110.0070.01015.00
7.3.100.0110.00315.00
7.3.90.0080.00314.99
7.3.80.0060.00614.99
7.3.70.0070.00314.94
7.3.60.0070.00514.93
7.3.50.0050.00514.79
7.3.40.0050.01014.84
7.3.30.0080.00514.78
7.3.20.0030.00916.73
7.3.10.0060.01216.75
7.3.00.0100.00716.64
7.2.330.0170.00016.72
7.2.320.0100.01116.92
7.2.310.0040.01216.65
7.2.300.0200.00416.80
7.2.290.0170.00616.73
7.2.250.0020.01415.22
7.2.240.0140.00615.28
7.2.230.0080.00815.18
7.2.220.0090.00415.00
7.2.210.0040.01015.16
7.2.200.0030.00715.11
7.2.190.0030.00915.14
7.2.180.0080.00415.07
7.2.170.0110.00115.12
7.2.130.0160.00316.82
7.2.120.0090.00716.93
7.2.110.0120.01216.59
7.2.100.0030.01416.71
7.2.90.0050.01216.88
7.2.80.0100.00516.98
7.2.70.0120.00516.96
7.2.60.0110.00816.82
7.2.50.0090.00716.90
7.2.40.0140.00517.06
7.2.30.0120.00816.77
7.2.20.0160.00816.88
7.2.10.0130.00816.73
7.2.00.0140.00317.78
7.1.330.0060.00815.85
7.1.320.0040.00715.96
7.1.310.0070.00815.90
7.1.300.0050.01015.80
7.1.290.0040.01015.88
7.1.280.0060.00915.78
7.1.270.0070.00515.86
7.1.260.0070.00715.84
7.1.250.0100.00615.69
7.1.200.0060.00315.62
7.1.70.0100.00017.41
7.1.60.0100.00017.55
7.1.00.0070.07322.35
7.0.200.0040.00416.90
7.0.120.0200.04322.10
7.0.110.0070.06322.02
7.0.100.0130.06021.97
7.0.90.0070.07322.18
7.0.80.0100.07722.17
7.0.70.0030.05721.97
7.0.60.0070.05722.07
7.0.50.0030.08022.04
7.0.40.0030.06722.00
7.0.30.0000.06322.13
7.0.20.0100.05022.07
7.0.10.0070.06022.09
7.0.00.0070.05722.12
5.6.270.0170.05320.88
5.6.260.0170.05721.05
5.6.250.0100.05721.07
5.6.240.0100.07021.10
5.6.230.0200.05320.76
5.6.220.0130.05020.97
5.6.210.0100.05321.05
5.6.200.0030.06720.88
5.6.190.0100.07720.94
5.6.180.0030.06021.05
5.6.170.0000.06321.02
5.6.160.0130.05720.85
5.6.150.0100.06020.85
5.6.140.0170.06320.90
5.6.130.0130.05020.85
5.6.120.0100.05721.00
5.6.110.0000.06321.01
5.6.100.0070.05720.93
5.6.90.0030.05720.98
5.6.80.0130.04320.39
5.6.70.0100.05020.30
5.6.60.0070.07020.21
5.6.50.0170.04320.14
5.6.40.0070.05720.35
5.6.30.0030.06020.21
5.6.20.0030.05720.19
5.6.10.0100.04720.38
5.6.00.0030.05320.09

preferences:
46.44 ms | 1704 KiB | 5 Q