3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oldstr1='<span style="font-family: Times New Roman; font-size: 12pt;">'; $oldstr2='</span>'; $newstr1='<input type="radio" value="1" name="choice">'; $newstr2="</input>"; $str=$values[$i] ['value']; while (preg_match($oldstr1, $str) && preg_match($oldstr2, $str)) { $str = preg_replace($oldstr1,$newstr1, $str, 1); $str = preg_replace($oldstr2,$newstr2, $str, 1); } 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.3.60.0120.00318.47
8.3.50.0120.00821.33
8.3.40.0070.00719.10
8.3.30.0070.01019.09
8.3.20.0080.00020.28
8.3.10.0040.00421.89
8.3.00.0050.00322.34
8.2.180.0120.00616.72
8.2.170.0130.00722.96
8.2.160.0100.00319.34
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.89
8.2.110.0180.00422.26
8.2.100.0080.00418.08
8.2.90.0040.00419.20
8.2.80.0050.00317.97
8.2.70.0050.00317.74
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0040.00418.22
8.2.30.0050.00218.22
8.2.20.0040.00417.95
8.2.10.0040.00417.84
8.2.00.0000.00918.00
8.1.280.0180.00325.92
8.1.270.0060.00318.75
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0190.00321.07
8.1.230.0090.00317.64
8.1.220.0090.00017.74
8.1.210.0050.00318.77
8.1.200.0090.00317.48
8.1.190.0000.00817.40
8.1.180.0000.00818.70
8.1.170.0080.00018.72
8.1.160.0030.00522.18
8.1.150.0040.00418.71
8.1.140.0070.00017.52
8.1.130.0000.00817.84
8.1.120.0030.00417.54
8.1.110.0040.00417.63
8.1.100.0000.00717.59
8.1.90.0000.00717.61
8.1.80.0040.00417.48
8.1.70.0040.00417.61
8.1.60.0040.00417.77
8.1.50.0040.00417.62
8.1.40.0040.00417.68
8.1.30.0040.00417.81
8.1.20.0030.00517.65
8.1.10.0040.00417.63
8.1.00.0000.00717.64
8.0.300.0080.00018.77
8.0.290.0000.00816.88
8.0.280.0070.00018.53
8.0.270.0050.00317.29
8.0.260.0030.00617.04
8.0.250.0040.00417.16
8.0.240.0060.00317.16
8.0.230.0040.00417.04
8.0.220.0000.00717.17
8.0.210.0070.00017.13
8.0.200.0000.00617.18
8.0.190.0040.00417.19
8.0.180.0050.00217.04
8.0.170.0040.00417.13
8.0.160.0000.00717.15
8.0.150.0040.00416.94
8.0.140.0050.00317.12
8.0.130.0030.00313.60
8.0.120.0070.00017.12
8.0.110.0000.00716.98
8.0.100.0000.00717.15
8.0.90.0000.00717.11
8.0.80.0090.00617.07
8.0.70.0000.00717.11
8.0.60.0000.00716.96
8.0.50.0050.00217.02
8.0.30.0080.01317.14
8.0.20.0140.00817.47
8.0.10.0000.00717.22
8.0.00.0150.00416.92
7.4.330.0000.00615.00
7.4.320.0070.00016.82
7.4.300.0000.00616.73
7.4.290.0000.00816.68
7.4.280.0070.00016.86
7.4.270.0030.00316.75
7.4.260.0070.00016.70
7.4.250.0040.00416.83
7.4.240.0020.00616.84
7.4.230.0020.00516.90
7.4.220.0060.01216.92
7.4.210.0070.00716.80
7.4.200.0000.00716.85
7.4.190.0000.00816.96
7.4.160.0060.00916.68
7.4.150.0180.00617.40
7.4.140.0130.01017.86
7.4.130.0150.00616.66
7.4.120.0100.00816.73
7.4.110.0140.00316.69
7.4.100.0090.01216.52
7.4.90.0090.00916.53
7.4.80.0140.00419.39
7.4.70.0100.00916.72
7.4.60.0120.00616.75
7.4.50.0030.00516.39
7.4.40.0060.01022.77
7.4.30.0090.00916.80
7.4.00.0070.01014.94
7.3.330.0050.00013.34
7.3.320.0080.00013.47
7.3.310.0030.00316.69
7.3.300.0000.00716.46
7.3.290.0100.01016.51
7.3.280.0080.00616.56
7.3.270.0070.01017.40
7.3.260.0000.01716.50
7.3.250.0110.00516.65
7.3.240.0120.00616.46
7.3.230.0080.00816.54
7.3.210.0180.00416.67
7.3.200.0070.01019.39
7.3.190.0120.00316.54
7.3.180.0090.00916.46
7.3.170.0100.00616.63
7.3.160.0060.00916.75
7.3.120.0030.01015.23
7.2.330.0090.00916.90
7.2.320.0220.00016.66
7.2.310.0130.00616.74
7.2.300.0100.00716.72
7.2.290.0050.01116.93
7.2.00.0030.00919.50
7.1.200.0000.00715.80
7.1.100.0040.01118.12
7.1.70.0000.00917.30
7.1.60.0140.01019.82
7.1.50.0100.01317.20
7.1.00.0070.07722.28
7.0.200.0060.00317.05
7.0.140.0100.06322.23
7.0.60.0070.04019.97
7.0.50.0030.08717.93
7.0.40.0130.08320.10
7.0.30.0230.04320.03
7.0.20.0300.07320.19
7.0.10.0130.07720.01
7.0.00.0170.08320.34
5.6.280.0130.06321.02
5.6.210.0230.07020.50
5.6.200.0000.04318.18
5.6.190.0170.08020.57
5.6.180.0430.07320.42
5.6.170.0430.07020.50
5.6.160.0030.09320.42
5.6.150.0000.04718.15
5.6.140.0070.04018.21
5.6.130.0170.07018.07
5.6.120.0070.03721.01
5.6.110.0030.08320.89
5.6.100.0030.04720.88
5.6.90.0070.05720.96
5.6.80.0170.06720.50
5.5.350.0330.07720.33
5.5.340.0030.03717.99
5.5.330.0070.09020.29
5.5.320.0230.04020.20
5.5.310.0370.07320.28
5.5.300.0030.08317.88
5.5.290.0170.06317.97
5.5.280.0000.04320.65
5.5.270.0070.04720.77
5.5.260.0000.04720.79
5.5.250.0130.08020.57
5.5.240.0030.08020.18
5.4.450.0730.06019.07
5.4.440.0800.05719.32
5.4.430.0270.04719.14
5.4.420.0070.06019.41
5.4.410.0170.05319.04
5.4.400.0070.05318.61
5.4.390.0230.04318.57
5.4.380.0100.05318.50
5.4.370.0100.05718.69
5.4.360.0270.05018.49
5.4.350.0130.05718.69
5.4.340.0170.04718.64
5.4.320.0060.03812.46
5.4.310.0050.03912.45
5.4.300.0060.03612.46
5.4.290.0050.03912.45
5.4.280.0050.03712.35
5.4.270.0030.04412.35
5.4.260.0080.04012.35
5.4.250.0200.04318.78
5.4.240.0100.05019.00
5.4.230.0270.05718.79
5.4.220.0130.04718.87
5.4.210.0200.04318.76
5.4.200.0000.06018.85
5.4.190.0070.05318.80
5.4.180.0100.05718.72
5.4.170.0100.08318.76
5.4.160.0130.06018.64
5.4.150.0100.06718.75
5.4.140.0130.04316.30
5.4.130.0130.04316.51
5.4.120.0070.05316.48
5.4.110.0100.05316.16
5.4.100.0130.05016.28
5.4.90.0070.04716.32
5.4.80.0030.05016.30
5.4.70.0070.05016.31
5.4.60.0170.04316.25
5.4.50.0100.04716.46
5.4.40.0130.05316.38
5.4.30.0030.05316.38
5.4.20.0130.04716.43
5.4.10.0100.05316.29
5.4.00.0100.05015.98
5.3.290.0030.04112.80
5.3.280.0100.06014.29
5.3.270.0100.06014.61
5.3.260.0000.06014.62
5.3.250.0100.06714.45
5.3.240.0100.04314.60
5.3.230.0030.05314.61
5.3.220.0130.04714.50
5.3.210.0070.05314.66
5.3.200.0130.05714.28
5.3.190.0130.04314.58
5.3.180.0100.04714.57
5.3.170.0130.06314.57
5.3.160.0130.06714.40
5.3.150.0100.05014.56
5.3.140.0030.05314.39
5.3.130.0130.07014.59
5.3.120.0100.05714.55
5.3.110.0100.05014.40
5.3.100.0130.05314.05
5.3.90.0100.05313.88
5.3.80.0030.06314.03
5.3.70.0070.05014.03
5.3.60.0100.05013.78
5.3.50.0000.05314.04
5.3.40.0070.05013.95
5.3.30.0000.05713.82
5.3.20.0170.06013.73
5.3.10.0030.07013.81
5.3.00.0130.06313.33
5.2.170.0070.04711.24
5.2.160.0030.04311.18
5.2.150.0130.04011.25
5.2.140.0130.05311.02
5.2.130.0030.06011.04
5.2.120.0000.04311.14
5.2.110.0030.06011.10
5.2.100.0130.05311.01
5.2.90.0070.05311.19
5.2.80.0070.04311.00
5.2.70.0170.03710.99
5.2.60.0000.04710.95
5.2.50.0130.04310.85
5.2.40.0070.04010.93
5.2.30.0030.04310.97
5.2.20.0070.04010.72
5.2.10.0070.05310.95
5.2.00.0030.06010.73
5.1.60.0070.03310.06
5.1.50.0070.04310.05
5.1.40.0000.0409.86
5.1.30.0030.05310.39
5.1.20.0130.03310.35
5.1.10.0100.03710.30
5.1.00.0070.0409.84
5.0.50.0070.0338.77
5.0.40.0100.0408.64
5.0.30.0170.0538.29
5.0.20.0130.0278.25
5.0.10.0130.0208.36
5.0.00.0030.0408.22
4.4.90.0000.0237.32
4.4.80.0070.0177.32
4.4.70.0100.0237.32
4.4.60.0030.0277.32
4.4.50.0030.0237.32
4.4.40.0000.0377.32
4.4.30.0030.0207.32
4.4.20.0070.0237.32
4.4.10.0000.0237.32
4.4.00.0070.0337.32
4.3.110.0030.0307.32
4.3.100.0070.0277.32
4.3.90.0070.0237.32
4.3.80.0000.0377.32
4.3.70.0070.0277.32
4.3.60.0000.0237.32
4.3.50.0100.0177.32
4.3.40.0030.0437.32
4.3.30.0100.0177.32
4.3.20.0030.0207.32
4.3.10.0000.0237.32
4.3.00.0170.0206.75

preferences:
71.41 ms | 401 KiB | 5 Q