3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(")([^"]+)(")/'; $str = 'The nice man said "How\'s things today" and I replied "All is good thanks".'; $subst = '<i class="fa fa-quote-left" aria-hidden="true"></i>\\2<i class="fa fa-quote-right" aria-hidden="true"></i>'; echo preg_replace($re, $subst, $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.0110.00418.18
8.3.50.0120.00922.11
8.3.40.0120.00318.84
8.3.30.0070.00718.71
8.3.20.0050.00220.39
8.3.10.0000.00821.73
8.3.00.0000.00823.64
8.2.180.0080.00825.92
8.2.170.0100.00318.97
8.2.160.0100.00321.36
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00022.39
8.2.120.0040.00426.35
8.2.110.0080.00320.39
8.2.100.0030.01018.04
8.2.90.0050.00317.88
8.2.80.0040.00418.91
8.2.70.0000.00817.63
8.2.60.0040.00417.75
8.2.50.0000.00817.75
8.2.40.0040.00422.40
8.2.30.0040.00419.18
8.2.20.0050.00218.05
8.2.10.0040.00418.11
8.2.00.0060.00318.07
8.1.280.0060.01225.92
8.1.270.0070.00020.66
8.1.260.0120.00328.09
8.1.250.0070.00028.09
8.1.240.0060.00322.11
8.1.230.0000.01218.87
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0040.00417.11
8.1.180.0040.00418.10
8.1.170.0040.00421.97
8.1.160.0070.00018.84
8.1.150.0040.00319.97
8.1.140.0000.00819.52
8.1.130.0030.00318.95
8.1.120.0000.00717.59
8.1.110.0040.00417.52
8.1.100.0040.00417.51
8.1.90.0050.00317.54
8.1.80.0040.00417.50
8.1.70.0040.00417.45
8.1.60.0050.00317.56
8.1.50.0040.00417.54
8.1.40.0090.00017.61
8.1.30.0000.00817.80
8.1.20.0040.00417.61
8.1.10.0000.00817.65
8.1.00.0050.00217.61
8.0.300.0000.00818.77
8.0.290.0080.00016.85
8.0.280.0080.00018.50
8.0.270.0070.00017.27
8.0.260.0040.00417.27
8.0.250.0000.01017.01
8.0.240.0060.00317.12
8.0.230.0050.00517.07
8.0.220.0030.00316.93
8.0.210.0030.00316.81
8.0.200.0000.00716.96
8.0.190.0040.00417.05
8.0.180.0060.00316.88
8.0.170.0040.00416.92
8.0.160.0030.00517.00
8.0.150.0080.00016.84
8.0.140.0030.00416.82
8.0.130.0000.00513.42
8.0.120.0000.00716.87
8.0.110.0030.00517.04
8.0.100.0000.00716.85
8.0.90.0030.00516.84
8.0.80.0090.00616.96
8.0.70.0040.00416.93
8.0.60.0040.00416.87
8.0.50.0050.00216.87
8.0.30.0130.00617.13
8.0.20.0070.01217.42
8.0.10.0070.00017.10
8.0.00.0090.00916.74
7.4.330.0090.00015.55
7.4.320.0000.00616.65
7.4.300.0030.00316.59
7.4.290.0030.00316.78
7.4.280.0050.00216.74
7.4.270.0070.00016.72
7.4.260.0040.00416.73
7.4.250.0050.00216.70
7.4.240.0030.00316.79
7.4.230.0070.00016.49
7.4.220.0040.01516.86
7.4.210.0080.00816.78
7.4.200.0000.00716.72
7.4.160.0120.00516.51
7.4.150.0070.01117.40
7.4.140.0080.01417.86
7.4.130.0070.01016.65
7.4.120.0130.00816.68
7.4.110.0060.01016.56
7.4.100.0130.00316.60
7.4.90.0100.00716.63
7.4.80.0100.01319.39
7.4.70.0130.00316.57
7.4.60.0150.00616.82
7.4.50.0000.01016.66
7.4.40.0070.01016.77
7.4.30.0120.00916.73
7.4.00.0080.00814.80
7.3.330.0030.00313.14
7.3.320.0000.00513.20
7.3.310.0070.00016.25
7.3.300.0030.00316.09
7.3.290.0070.00016.30
7.3.280.0110.00716.28
7.3.270.0140.00317.40
7.3.260.0110.00916.42
7.3.250.0060.01016.43
7.3.240.0140.00816.37
7.3.230.0070.01016.27
7.3.210.0060.01016.41
7.3.200.0120.01216.45
7.3.190.0040.01116.57
7.3.180.0030.01316.38
7.3.170.0070.01016.55
7.3.160.0100.00616.32
7.3.120.0000.01614.61
7.3.110.0060.01315.18
7.3.100.0100.00714.86
7.3.90.0030.01014.70
7.3.80.0040.00815.04
7.3.70.0000.01514.75
7.3.60.0090.00314.80
7.3.50.0070.00715.02
7.3.40.0030.01214.93
7.3.30.0070.00714.97
7.3.20.0000.01516.48
7.3.10.0090.00316.85
7.3.00.0030.00616.86
7.2.330.0100.00616.73
7.2.320.0140.00316.49
7.2.310.0140.00316.75
7.2.300.0070.01016.53
7.2.290.0040.01416.79
7.2.250.0060.01115.18
7.2.240.0060.01315.15
7.2.230.0060.01015.13
7.2.220.0090.00615.26
7.2.210.0070.00715.06
7.2.200.0030.01314.93
7.2.190.0120.00015.21
7.2.180.0030.01314.75
7.2.170.0070.01014.97
7.2.60.0030.00916.68
7.1.330.0000.01316.05
7.1.320.0070.00315.90
7.1.310.0030.00615.78
7.1.300.0060.00615.75
7.1.290.0060.00315.84
7.1.280.0030.01015.91
7.1.270.0040.01215.75
7.1.260.0000.01215.91
7.1.200.0130.00016.05
7.1.70.0060.00617.43
7.1.60.0030.00717.11
7.1.40.5770.07038.66
7.1.30.5300.01332.65
7.1.20.2970.01032.91
7.1.10.4270.01314.70
7.1.00.0100.01014.79
7.0.200.0090.00016.55
7.0.180.6130.07319.98
7.0.170.4870.01714.61
7.0.160.6000.01014.37
7.0.150.3600.00714.37
7.0.140.0130.00714.61
7.0.130.0070.01314.84
7.0.120.0100.01014.62
7.0.110.0270.00714.46
7.0.100.0100.00714.41
7.0.90.0030.01314.48
7.0.80.0170.01014.44
7.0.70.0070.01014.43
7.0.60.0000.01714.27
7.0.50.0030.01314.46
7.0.40.0030.01314.45
7.0.30.8970.01014.63
7.0.20.2770.01014.56
7.0.10.0730.00314.64
7.0.00.0100.01314.66

preferences:
51.28 ms | 401 KiB | 5 Q