3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str=" <b>test</b> <pre> <b>test</b> </pre> <b>test</b> "; echo preg_replace_callback(htmlspecialchars('~(?s)<pre>.*?</pre>~'), function($match) { return htmlspecialchars_decode($match[0]);}, preg_replace('~<(/?)b>~','[$1b]', preg_replace_callback('~(?s)<pre>.*?</pre>~', function($match) { return htmlspecialchars($match[0]);}, $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.10.0060.00117.00
8.5.00.0120.01120.30
8.4.160.0140.01021.61
8.4.150.0020.00014.05
8.4.140.0200.00917.88
8.4.130.0120.00918.13
8.4.120.0150.00520.26
8.4.110.0090.00420.61
8.4.100.0150.00517.95
8.4.90.0150.00520.55
8.4.80.0090.00918.80
8.4.70.0060.00220.78
8.4.60.0060.00420.73
8.4.50.0060.00618.68
8.4.40.0130.00618.05
8.4.30.0160.00320.31
8.4.20.0040.00419.89
8.4.10.0100.00017.79
8.3.290.0090.01220.99
8.3.280.0120.01018.63
8.3.270.0140.00616.68
8.3.260.0090.01116.56
8.3.250.0090.01018.85
8.3.240.0100.01016.92
8.3.230.0110.00716.86
8.3.220.0040.00418.79
8.3.210.0070.00716.61
8.3.200.0050.00416.63
8.3.190.0120.00617.08
8.3.180.0110.00716.73
8.3.170.0000.01017.26
8.3.160.0160.00318.55
8.3.150.0070.01120.84
8.3.140.0050.00317.04
8.3.130.0030.00616.81
8.3.120.0040.00418.98
8.3.110.0100.00620.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0100.00016.75
8.3.70.0120.00316.88
8.3.60.0130.00716.50
8.3.50.0120.00319.86
8.3.40.0060.01219.21
8.3.30.0090.00618.99
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0060.00326.16
8.2.300.0130.00922.05
8.2.290.0120.00518.36
8.2.280.0110.00418.68
8.2.270.0120.00617.17
8.2.260.0040.01118.84
8.2.250.0080.00017.11
8.2.240.0040.01118.85
8.2.230.0030.00622.58
8.2.220.0040.00437.54
8.2.210.0140.00426.77
8.2.200.0090.00016.88
8.2.190.0070.00717.00
8.2.180.0060.01225.92
8.2.170.0070.01419.21
8.2.160.0090.00622.96
8.2.150.0000.01425.66
8.2.140.0050.00224.66
8.2.130.0000.00726.16
8.2.120.0040.00419.89
8.2.110.0030.00621.12
8.2.100.0040.00818.03
8.2.90.0000.00918.03
8.2.80.0050.00317.97
8.2.70.0080.00017.75
8.2.60.0040.00418.16
8.2.50.0080.00418.07
8.2.40.0060.00319.97
8.2.30.0070.00018.18
8.2.20.0080.00019.54
8.2.10.0000.00817.97
8.2.00.0080.00019.22
8.1.340.0140.00717.90
8.1.330.0100.00816.47
8.1.320.0120.00618.25
8.1.310.0080.00018.34
8.1.300.0120.00618.51
8.1.290.0060.00318.88
8.1.280.0180.00325.92
8.1.270.0050.00321.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0100.00022.71
8.1.230.0070.00420.97
8.1.220.0030.00517.74
8.1.210.0060.00319.02
8.1.200.0080.00317.48
8.1.190.0040.00417.48
8.1.180.0080.00018.10
8.1.170.0000.00820.48
8.1.160.0030.00618.85
8.1.150.0040.00418.80
8.1.140.0040.00417.52
8.1.130.0000.00717.63
8.1.120.0000.00717.53
8.1.110.0040.00417.64
8.1.100.0030.00517.64
8.1.90.0030.00817.70
8.1.80.0040.00417.66
8.1.70.0070.00017.67
8.1.60.0000.00917.72
8.1.50.0000.00917.65
8.1.40.0050.00317.62
8.1.30.0030.00617.82
8.1.20.0000.00817.79
8.1.10.0050.00517.79
8.1.00.0080.00417.67
8.0.300.0040.00420.21
8.0.290.0040.00417.00
8.0.280.0070.00018.40
8.0.270.0030.00316.92
8.0.260.0000.00716.89
8.0.250.0030.00317.09
8.0.240.0030.00317.14
8.0.230.0020.00517.10
8.0.220.0000.00717.03
8.0.210.0000.00817.03
8.0.200.0000.00717.10
8.0.190.0030.00617.01
8.0.180.0000.00716.95
8.0.170.0060.00316.96
8.0.160.0030.00617.04
8.0.150.0040.00416.83
8.0.140.0040.00416.91
8.0.130.0030.00313.55
8.0.120.0120.00013.43
8.0.110.0070.00513.54
8.0.100.0120.00013.46
8.0.90.0050.00513.52
8.0.80.0120.00013.53
8.0.70.0040.00813.47
8.0.60.0080.00513.48
8.0.50.0110.00013.41
8.0.30.0090.00313.43
8.0.20.0120.00013.56
8.0.10.0090.00313.63
8.0.00.0030.00313.65
7.4.330.0000.00415.55
7.4.320.0030.00316.84
7.4.300.0000.00616.84
7.4.290.0040.00416.63
7.4.280.0090.00616.77
7.4.270.0000.00816.64
7.4.260.0030.00313.54
7.4.250.0060.00013.58
7.4.240.0110.00313.53
7.4.230.0070.00713.57
7.4.220.0060.00613.51
7.4.210.0080.00513.59
7.4.200.0100.00313.50
7.4.190.0130.00013.64
7.4.180.0040.00913.55
7.4.160.0080.00413.55
7.4.150.0090.00413.56
7.4.140.0080.00413.54
7.4.130.0060.00613.50
7.4.120.0090.00313.53
7.4.110.0120.00013.51
7.4.100.0090.00313.59
7.4.90.0110.00013.49
7.4.80.0080.00413.51
7.4.70.0120.00013.49
7.4.60.0080.00413.48
7.4.50.0100.00013.43
7.4.40.0030.00313.42
7.4.30.0040.00413.59
7.4.20.0000.00713.45
7.4.10.0070.00413.48
7.4.00.0080.00413.55
7.3.330.0040.00416.48
7.3.320.0130.00013.37
7.3.310.0070.00313.32
7.3.300.0100.00313.38
7.3.290.0140.00013.46
7.3.280.0140.00013.25
7.3.270.0080.00513.43
7.3.260.0070.00713.16
7.3.250.0140.00013.30
7.3.240.0100.00313.20
7.3.230.0110.00313.38
7.3.220.0090.00613.41
7.3.210.0130.00013.41
7.3.200.0120.00013.41
7.3.190.0110.00213.35
7.3.180.0000.01313.19
7.3.170.0090.00413.16
7.3.160.0060.00713.41
7.3.150.0070.00713.32
7.3.140.0090.00413.24
7.3.130.0060.00313.36
7.3.120.0070.00313.35
7.3.110.0050.00013.35
7.3.100.0060.00013.34
7.3.90.0000.00513.66
7.3.80.0050.00013.25
7.3.70.0000.00513.59
7.3.60.0030.00313.41
7.3.50.0050.00013.35
7.3.40.0090.00013.44
7.3.30.0050.00313.44
7.3.20.0030.00515.19
7.3.10.0000.00615.23
7.3.00.0040.00415.38

preferences:
43.74 ms | 403 KiB | 5 Q