3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_decode('"\u201E"'); // create a pair of curly quotes using \u which json_decode can handle ... $lefty = json_decode('"\u201C"'); $righty = json_decode('"\u201D"'); $text = $lefty . "Testing" . $righty; echo $text,"\n"; // ... but POCRE can't handle \u so use hex codes $text = mb_ereg_replace('[\xE2\x80]+(\x9C|\x9D)+','"',$text); echo "\n",$text;

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.4.20.0060.00318.00
8.4.10.0060.00317.75
8.3.150.0090.00016.84
8.3.140.0130.00317.37
8.3.130.0090.00618.69
8.3.120.0100.01019.05
8.3.110.0000.00816.63
8.3.100.0100.01024.06
8.3.90.0040.01126.77
8.3.80.0060.00318.68
8.3.70.0160.00617.00
8.3.60.0140.00618.68
8.3.50.0120.00922.15
8.3.40.0070.00718.84
8.3.30.0070.00719.10
8.3.20.0080.00020.43
8.3.10.0050.00320.70
8.3.00.0050.00319.25
8.2.270.0150.00416.89
8.2.260.0110.00716.67
8.2.250.0110.00416.75
8.2.240.0090.00017.20
8.2.230.0030.00720.94
8.2.220.0030.00637.54
8.2.210.0070.01126.77
8.2.200.0030.00618.41
8.2.190.0110.00718.38
8.2.180.0150.00618.28
8.2.170.0090.00922.96
8.2.160.0070.00720.46
8.2.150.0070.00324.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0080.00019.77
8.2.110.0100.00020.96
8.2.100.0060.00617.84
8.2.90.0000.00718.28
8.2.80.0080.00018.22
8.2.70.0030.00617.50
8.2.60.0000.00817.50
8.2.50.0060.00318.07
8.2.40.0030.00519.88
8.2.30.0040.00418.00
8.2.20.0070.00017.79
8.2.10.0040.00418.09
8.2.00.0000.00817.83
8.1.310.0140.00416.44
8.1.300.0090.00020.04
8.1.290.0030.00630.84
8.1.280.0100.01025.92
8.1.270.0120.00420.68
8.1.260.0080.00026.35
8.1.250.0070.00328.09
8.1.240.0060.00324.05
8.1.230.0080.00421.09
8.1.220.0040.00417.79
8.1.210.0050.00320.41
8.1.200.0000.00817.48
8.1.190.0000.00817.23
8.1.180.0000.00822.19
8.1.170.0080.00018.76
8.1.160.0070.00020.80
8.1.150.0000.00719.09
8.1.140.0040.00417.57
8.1.130.0030.00317.92
8.1.120.0000.00817.57
8.1.110.0030.00517.61
8.1.100.0030.00317.48
8.1.90.0000.00817.58
8.1.80.0040.00417.56
8.1.70.0000.00717.57
8.1.60.0060.00317.63
8.1.50.0040.00417.64
8.1.40.0030.00717.63
8.1.30.0080.00017.79
8.1.20.0000.00717.76
8.1.10.0080.00017.63
8.1.00.0030.00617.53
8.0.300.0030.00320.11
8.0.290.0030.00617.00
8.0.280.0070.00018.43
8.0.270.0000.00717.29
8.0.260.0060.00017.42
8.0.250.0040.00417.12
8.0.240.0040.00417.18
8.0.230.0040.00417.18
8.0.220.0000.00717.13
8.0.210.0040.00417.05
8.0.200.0080.00017.16
8.0.190.0000.00817.02
8.0.180.0070.00017.13
8.0.170.0040.00417.16
8.0.160.0070.00017.07
8.0.150.0040.00417.14
8.0.140.0040.00417.06
8.0.130.0060.00013.54
8.0.120.0030.00617.05
8.0.110.0040.00417.07
8.0.100.0040.00416.91
8.0.90.0030.00617.12
8.0.80.0150.00317.11
8.0.70.0040.00417.11
8.0.60.0040.00416.95
8.0.50.0050.00317.18
8.0.30.0120.00617.08
8.0.20.0110.01217.40
8.0.10.0000.00717.01
8.0.00.0090.01016.88
7.4.330.0030.00315.15
7.4.320.0000.00616.75
7.4.300.0060.00016.60
7.4.290.0060.00016.72
7.4.280.0030.00516.57
7.4.270.0000.00616.77
7.4.260.0030.00416.71
7.4.250.0040.00316.59
7.4.240.0030.00516.72
7.4.230.0030.00316.50
7.4.220.0140.00316.68
7.4.210.0090.00616.66
7.4.200.0070.00016.72
7.4.160.0130.00616.54
7.4.150.0070.01017.40
7.4.140.0100.00817.86
7.4.130.0090.00816.61
7.4.120.0050.01216.51
7.4.110.0200.00316.43
7.4.100.0110.00816.57
7.4.90.0100.00616.70
7.4.80.0100.01019.39
7.4.70.0120.01316.57
7.4.60.0080.00816.63
7.4.50.0060.00316.61
7.4.40.0060.00916.43
7.4.30.0150.00616.70
7.4.00.0030.01014.83
7.3.330.0060.00013.37
7.3.320.0000.00713.23
7.3.310.0050.00216.38
7.3.300.0000.00616.40
7.3.290.0100.00616.40
7.3.280.0120.00516.39
7.3.270.0100.01317.40
7.3.260.0100.00716.39
7.3.250.0100.00816.54
7.3.240.0170.00016.64
7.3.230.0110.00516.43
7.3.210.0130.01016.48
7.3.200.0100.00719.39
7.3.190.0110.01016.36
7.3.180.0130.00316.54
7.3.170.0140.00416.41
7.3.160.0140.00316.37
7.2.330.0130.00316.63
7.2.320.0120.00616.63
7.2.310.0120.00916.67
7.2.300.0090.01216.63
7.2.290.0090.01216.91
7.2.60.0220.01316.52
7.2.00.0040.00819.48
7.1.200.0130.00615.79
7.1.100.0060.00618.14
7.1.70.0080.00017.23
7.1.60.0120.01219.18
7.1.50.0090.01216.76
7.1.00.0070.08322.31
7.0.200.0070.01016.79
7.0.140.0030.07722.09
7.0.110.0300.07721.86
7.0.100.0030.04721.85
7.0.90.0000.09021.67
7.0.80.0100.05021.79
7.0.70.0070.04321.71
7.0.60.0100.08321.82
7.0.50.0070.08321.79
7.0.40.0070.08019.79
7.0.30.0070.06019.71
7.0.20.0030.06019.72
7.0.10.0170.07019.85
7.0.00.0070.07319.71
5.6.280.0100.06720.91
5.6.260.0170.07720.63
5.6.250.0000.07320.88
5.6.240.0030.08020.56
5.6.230.0170.06320.65
5.6.220.0070.07720.64
5.6.210.0070.05320.63
5.6.200.0030.05320.58
5.6.190.0000.08720.64
5.6.180.0100.06720.62
5.6.170.0130.07020.65
5.6.160.0000.05720.64
5.6.150.0130.07020.69
5.6.140.0130.07720.67
5.6.130.0070.08320.54
5.6.120.0070.07020.84
5.6.110.0070.07320.45
5.6.100.0070.05020.59
5.6.90.0030.08320.54
5.6.80.0100.07319.94
5.6.70.0070.06720.07
5.6.60.0130.07320.22
5.6.50.0070.07319.99
5.6.40.0000.07720.00
5.6.30.0130.06720.00
5.6.20.0100.07720.01
5.6.10.0070.08019.93
5.6.00.0030.03720.00
5.5.380.0100.07317.51
5.5.370.0030.04717.55
5.5.360.0100.07717.61
5.5.350.0070.08017.44
5.5.340.0070.04717.85
5.5.330.0000.08718.11
5.5.320.0030.08318.12
5.5.310.0070.04317.98
5.5.300.0130.08018.12
5.5.290.0100.07018.17
5.5.280.0000.06018.02
5.5.270.0030.08317.84
5.5.260.0030.07317.85
5.5.250.0130.07317.95
5.5.240.0070.04717.25
5.5.230.0100.07317.36
5.5.220.0170.06717.48
5.5.210.0070.07017.50
5.5.200.0100.06717.12
5.5.190.0130.07017.20
5.5.180.0070.04717.47
5.5.160.0030.08317.47
5.5.150.0030.07717.47
5.5.140.0130.05317.44
5.5.130.0130.06717.24
5.5.120.0100.07317.60
5.5.110.0070.04317.51
5.5.100.0100.06717.10
5.5.90.0130.07317.42
5.5.80.0100.07317.28
5.5.70.0030.05317.09
5.5.60.0070.07717.11
5.5.50.0100.06717.50
5.5.40.0030.08317.37
5.5.30.0000.07317.24
5.5.20.0100.06717.34
5.5.10.0070.04317.25
5.5.00.0070.07717.08
5.4.450.0170.07019.50
5.4.440.0100.07719.60
5.4.430.0130.07319.59
5.4.420.0100.06719.50
5.4.410.0130.03319.14
5.4.400.0000.07719.01
5.4.390.0000.07719.11
5.4.380.0070.06019.27
5.4.370.0030.07019.00
5.4.360.0070.07318.95
5.4.350.0100.06719.25
5.4.340.0070.07318.95
5.4.320.0070.06719.12
5.4.310.0000.05719.03
5.4.300.0070.07319.00
5.4.290.0170.06319.02
5.4.280.0130.07019.00
5.4.270.0170.05719.11
5.4.260.0030.08019.27
5.4.250.0170.06319.24
5.4.240.0100.06019.27
5.4.230.0030.06319.00
5.4.220.0070.05719.03
5.4.210.0030.07719.09
5.4.200.0170.04019.17
5.4.190.0000.08319.07
5.4.180.0100.05718.94
5.4.170.0130.04719.19
5.4.160.0100.05319.05
5.4.150.0200.06719.25
5.4.140.0030.06016.24
5.4.130.0170.06316.27
5.4.120.0000.05316.53
5.4.110.0030.07716.54
5.4.100.0070.07316.55
5.4.90.0000.05316.41
5.4.80.0030.07316.23
5.4.70.0130.07016.52
5.4.60.0000.06716.21
5.4.50.0070.06316.47
5.4.40.0030.06716.51
5.4.30.0030.03716.12
5.4.20.0130.06316.20
5.4.10.0130.06716.47
5.4.00.0070.07015.93
5.3.290.0030.06314.75
5.3.280.0130.07014.61
5.3.270.0030.08314.63
5.3.260.0130.04714.68
5.3.250.0100.07314.43
5.3.240.0130.06714.47
5.3.230.0130.07314.54
5.3.220.0070.04714.46
5.3.210.0100.06014.57
5.3.200.0100.07014.64
5.3.190.0030.04014.44
5.3.180.0000.07314.51
5.3.170.0100.07014.58
5.3.160.0030.07314.56
5.3.150.0100.07014.45
5.3.140.0070.08714.57
5.3.130.0030.03714.38
5.3.120.0100.07314.44
5.3.110.0100.06714.39
5.3.100.0070.07713.93
5.3.90.0070.07013.96
5.3.80.0070.07313.89
5.3.70.0000.06713.93
5.3.60.0100.06714.06
5.3.50.0000.07713.73
5.3.40.0030.04013.95
5.3.30.0030.08013.75
5.3.20.0130.06313.77
5.3.10.0070.07313.58
5.3.00.0130.06713.48
5.2.170.0130.03313.12
5.2.160.0070.05713.12
5.2.150.0030.04713.12
5.2.140.0070.03713.12
5.2.130.0030.04713.12
5.2.120.0030.05013.12
5.2.110.0030.03713.12
5.2.100.0070.06013.12
5.2.90.0070.05713.12
5.2.80.0100.05713.12
5.2.70.0030.06713.12
5.2.60.0070.03713.12
5.2.50.0000.04313.12
5.2.40.0030.02713.12
5.2.30.0130.05013.12
5.2.20.0000.05013.12
5.2.10.0130.05313.12
5.2.00.0030.05713.12
5.1.60.0070.05013.12
5.1.50.0100.04713.12
5.1.40.0030.05313.12
5.1.30.0000.03013.12
5.1.20.0030.06013.12
5.1.10.0030.03013.12
5.1.00.0070.05013.12
5.0.50.0000.03313.12
5.0.40.0030.04013.12
5.0.30.0000.03313.12
5.0.20.0030.03713.12
5.0.10.0000.03013.12
5.0.00.0000.07313.12
4.4.90.0000.03713.12
4.4.80.0000.03013.12
4.4.70.0000.02013.12
4.4.60.0030.03013.12
4.4.50.0030.03013.12
4.4.40.0000.02713.12
4.4.30.0000.02013.12
4.4.20.0000.02313.12
4.4.10.0000.01713.12
4.4.00.0000.03013.12
4.3.110.0030.02313.12
4.3.100.0000.01713.12
4.3.90.0030.02013.12
4.3.80.0030.04313.12
4.3.70.0000.03313.12
4.3.60.0000.01713.12
4.3.50.0000.03313.12
4.3.40.0000.05313.12
4.3.30.0000.03713.12
4.3.20.0070.02313.12
4.3.10.0000.03313.12
4.3.00.0030.03313.12

preferences:
48.22 ms | 403 KiB | 5 Q