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='<span style="font-family: Times New Roman; font-size: 12pt;"></span>'; 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.70.0090.00618.56
8.3.60.0120.00318.68
8.3.50.0120.00621.09
8.3.40.0080.00818.71
8.3.30.0110.00419.05
8.3.20.0030.00720.21
8.3.10.0000.00822.01
8.3.00.0070.00022.39
8.2.180.0120.00316.63
8.2.170.0100.01022.96
8.2.160.0030.01019.33
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00019.79
8.2.110.0090.00920.43
8.2.100.0070.00418.03
8.2.90.0050.00319.22
8.2.80.0090.00017.97
8.2.70.0030.00617.75
8.2.60.0060.00317.93
8.2.50.0030.00618.07
8.2.40.0040.00418.09
8.2.30.0030.00518.08
8.2.20.0020.00517.80
8.2.10.0000.00817.87
8.2.00.0030.00618.00
8.1.280.0140.00025.92
8.1.270.0060.00320.53
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0090.00021.04
8.1.230.0040.00717.64
8.1.220.0030.00517.79
8.1.210.0040.00418.77
8.1.200.0090.00317.35
8.1.190.0050.00217.41
8.1.180.0000.00718.70
8.1.170.0050.00318.62
8.1.160.0030.00322.03
8.1.150.0060.00318.78
8.1.140.0040.00417.59
8.1.130.0060.00317.84
8.1.120.0040.00417.61
8.1.110.0030.00517.61
8.1.100.0070.00017.64
8.1.90.0000.00717.52
8.1.80.0000.00717.52
8.1.70.0000.00717.51
8.1.60.0000.00817.69
8.1.50.0000.00817.61
8.1.40.0040.00417.55
8.1.30.0030.00617.83
8.1.20.0030.00517.81
8.1.10.0030.00517.55
8.1.00.0040.00417.44
8.0.300.0000.00718.77
8.0.290.0110.00016.75
8.0.280.0000.00718.41
8.0.270.0000.00717.15
8.0.260.0030.00318.57
8.0.250.0000.00717.11
8.0.240.0040.00417.05
8.0.230.0070.00016.96
8.0.220.0000.00716.98
8.0.210.0000.00717.04
8.0.200.0030.00317.04
8.0.190.0040.00416.98
8.0.180.0040.00416.95
8.0.170.0000.00716.96
8.0.160.0040.00416.86
8.0.150.0040.00417.06
8.0.140.0050.00317.03
8.0.130.0050.00013.46
8.0.120.0080.00017.03
8.0.110.0040.00417.01
8.0.100.0000.00817.10
8.0.90.0030.00416.99
8.0.80.0090.00617.01
8.0.70.0040.00416.89
8.0.60.0070.00017.09
8.0.50.0000.00716.90
8.0.30.0120.00617.38
8.0.20.0120.00717.43
8.0.10.0050.00316.97
8.0.00.0100.01017.05
7.4.330.0020.00215.00
7.4.320.0030.00316.82
7.4.300.0000.00616.79
7.4.290.0040.00416.80
7.4.280.0000.00716.77
7.4.270.0030.00316.70
7.4.260.0030.00316.69
7.4.250.0000.00716.69
7.4.240.0050.00316.74
7.4.230.0030.00316.88
7.4.220.0120.00616.57
7.4.210.0100.00716.81
7.4.200.0040.00416.71
7.4.190.0050.00216.95
7.4.160.0040.01116.37
7.4.150.0070.01417.40
7.4.140.0160.00517.86
7.4.130.0100.01116.73
7.4.120.0140.00716.70
7.4.110.0000.01616.75
7.4.100.0070.01716.78
7.4.90.0100.01316.71
7.4.80.0060.01219.39
7.4.70.0040.01316.51
7.4.60.0100.00716.83
7.4.50.0000.00516.43
7.4.40.0070.01122.77
7.4.30.0030.01316.45
7.4.00.0070.00714.97
7.3.330.0000.00513.18
7.3.320.0000.00713.32
7.3.310.0000.00616.35
7.3.300.0000.00716.39
7.3.290.0030.01016.34
7.3.280.0100.00716.33
7.3.270.0090.00917.40
7.3.260.0070.01016.58
7.3.250.0070.01216.49
7.3.240.0070.01016.36
7.3.230.0120.00416.51
7.3.210.0130.00316.38
7.3.200.0060.00919.39
7.3.190.0000.01616.66
7.3.180.0060.01316.73
7.3.170.0090.00616.63
7.3.160.0140.00316.62
7.3.120.0120.00315.07
7.2.330.0090.00916.72
7.2.320.0160.00616.64
7.2.310.0130.00416.84
7.2.300.0000.01616.77
7.2.290.0110.00816.79
7.2.60.0120.00616.91
7.2.00.0060.00819.67
7.1.200.0000.01415.91
7.1.100.0000.01318.43
7.1.70.0100.00017.34
7.1.60.0100.01319.82
7.1.50.0210.00017.13
7.1.00.0170.06322.45
7.0.200.0000.00817.08
7.0.140.0100.06321.90
7.0.100.0030.07321.75
7.0.90.0070.06321.70
7.0.80.0030.07321.72
7.0.70.0100.06321.72
7.0.60.0070.08021.77
7.0.50.0070.04722.09
7.0.40.0030.08320.05
7.0.30.0070.07720.18
7.0.20.0030.06720.14
7.0.10.0100.07020.01
7.0.00.0030.08720.17
5.6.280.0100.06020.78
5.6.250.0030.08320.59
5.6.240.0100.08020.60
5.6.230.0070.08720.65
5.6.220.0000.08320.58
5.6.210.0030.08720.64
5.6.200.0070.08021.01
5.6.190.0070.08721.04
5.6.180.0000.08721.13
5.6.170.0030.08721.11
5.6.160.0100.04321.02
5.6.150.0000.08321.02
5.6.140.0000.08721.01
5.6.130.0100.07321.04
5.6.120.0000.05021.16
5.6.110.0100.06320.97
5.6.100.0100.07720.93
5.6.90.0030.08320.99
5.6.80.0130.04720.34
5.6.70.0030.04720.48
5.6.60.0030.06720.35
5.6.50.0100.07720.32
5.6.40.0070.04320.37
5.6.30.0030.08020.36
5.6.20.0130.04020.37
5.6.10.0100.08320.46
5.6.00.0070.05020.48
5.5.380.0030.07720.39
5.5.370.0100.07020.30
5.5.360.0000.09020.55
5.5.350.0100.07720.36
5.5.340.0070.08020.82
5.5.330.0030.05020.91
5.5.320.0070.08020.82
5.5.310.0030.08020.64
5.5.300.0100.07720.77
5.5.290.0100.03720.85
5.5.280.0100.07020.79
5.5.270.0100.08320.76
5.5.260.0100.08020.80
5.5.250.0030.04720.68
5.5.240.0000.05720.27
5.5.230.0170.06320.13
5.5.220.0000.07720.20
5.5.210.0070.06720.27
5.5.200.0070.07320.27
5.5.190.0070.04020.25
5.5.180.0070.03720.22
5.5.160.0000.07019.99
5.5.150.0100.07020.10
5.5.140.0030.08320.12
5.5.130.0000.08320.20
5.5.120.0000.08020.23
5.5.110.0130.07720.16
5.5.100.0170.07720.08
5.5.90.0030.04720.07
5.5.80.0100.06020.00
5.5.70.0070.04020.14
5.5.60.0070.05320.06
5.5.50.0070.07320.13
5.5.40.0100.03719.95
5.5.30.0030.06720.07
5.5.20.0030.08320.02
5.5.10.0070.04719.96
5.5.00.0100.08319.95
5.4.450.0100.07719.39
5.4.440.0030.07019.35
5.4.430.0100.07319.37
5.4.420.0070.07319.30
5.4.410.0030.04319.35
5.4.400.0070.07019.18
5.4.390.0030.06719.12
5.4.380.0030.07018.79
5.4.370.0070.07319.06
5.4.360.0070.07019.06
5.4.350.0030.07718.94
5.4.340.0070.07019.05
5.4.320.0030.07319.10
5.4.310.0200.04018.96
5.4.300.0070.04719.13
5.4.290.0070.07718.91
5.4.280.0100.07718.80
5.4.270.0100.06319.07
5.4.260.0030.03718.97
5.4.250.0070.06718.83
5.4.240.0100.06719.09
5.4.230.0100.07018.89
5.4.220.0100.07318.96
5.4.210.0030.07318.89
5.4.200.0030.07718.93
5.4.190.0070.06719.02
5.4.180.0000.07319.07
5.4.170.0070.07718.95
5.4.160.0030.07319.10
5.4.150.0000.06019.07
5.4.140.0030.03716.18
5.4.130.0070.06316.36
5.4.120.0100.07016.32
5.4.110.0000.08016.26
5.4.100.0000.06316.41
5.4.90.0070.04016.39
5.4.80.0000.07316.34
5.4.70.0130.05716.29
5.4.60.0100.06716.42
5.4.50.0070.07316.28
5.4.40.0100.05316.26
5.4.30.0070.07316.41
5.4.20.0070.04716.33
5.4.10.0130.07016.36
5.4.00.0030.07715.57
5.3.290.0070.07014.65
5.3.280.0000.07714.57
5.3.270.0070.05714.62
5.3.260.0000.08014.54
5.3.250.0000.05714.46
5.3.240.0070.06314.44
5.3.230.0030.06714.50
5.3.220.0100.06714.52
5.3.210.0070.07314.39
5.3.200.0030.07314.54
5.3.190.0030.07314.53
5.3.180.0030.04014.38
5.3.170.0070.07714.55
5.3.160.0130.05714.47
5.3.150.0100.07014.54
5.3.140.0100.04014.41
5.3.130.0070.05014.50
5.3.120.0100.06314.50
5.3.110.0070.06714.51
5.3.100.0070.06313.87
5.3.90.0030.07013.96
5.3.80.0030.06013.77
5.3.70.0070.07014.00
5.3.60.0030.06713.86
5.3.50.0030.07313.80
5.3.40.0070.06713.80
5.3.30.0070.07313.68
5.3.20.0000.07013.68
5.3.10.0070.07013.68
5.3.00.0100.06013.68
5.2.170.0000.06713.68
5.2.160.0000.06313.68
5.2.150.0070.06013.68
5.2.140.0000.06313.68
5.2.130.0030.06013.68
5.2.120.0070.05713.68
5.2.110.0070.05713.68
5.2.100.0030.06313.68
5.2.90.0070.03013.68
5.2.80.0000.03313.68
5.2.70.0000.06013.68
5.2.60.0070.05713.68
5.2.50.0070.05713.68
5.2.40.0030.04013.68
5.2.30.0100.05713.68
5.2.20.0030.04313.68
5.2.10.0000.06013.68
5.2.00.0070.06013.68
5.1.60.0030.02713.68
5.1.50.0030.05013.68
5.1.40.0030.03713.68
5.1.30.0000.06013.68
5.1.20.0030.05313.68
5.1.10.0000.04013.68
5.1.00.0000.05013.68
5.0.50.0000.02713.68
5.0.40.0000.04713.68
5.0.30.0000.06313.68
5.0.20.0070.03013.68
5.0.10.0070.03013.68
5.0.00.0030.06313.68
4.4.90.0000.03713.68
4.4.80.0070.01713.68
4.4.70.0000.03313.68
4.4.60.0030.01713.68
4.4.50.0030.03313.68
4.4.40.0030.04313.68
4.4.30.0030.02013.68
4.4.20.0070.03013.68
4.4.10.0030.01713.68
4.4.00.0030.05013.68
4.3.110.0000.03313.68
4.3.100.0000.02313.68
4.3.90.0000.03313.68
4.3.80.0000.05013.68
4.3.70.0000.03713.68
4.3.60.0000.02713.68
4.3.50.0070.02313.68
4.3.40.0030.05013.68
4.3.30.0030.03313.68
4.3.20.0000.03713.68
4.3.10.0000.03313.68
4.3.00.0000.02313.68

preferences:
88.69 ms | 401 KiB | 5 Q