3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = " text 'in \" quotes ' but wait \" not really "; $m = preg_replace('~(["\'])([^"\']+)\1~', "", $string); print_r($m); ?>

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.0140.00418.68
8.3.50.0210.00521.20
8.3.40.0110.00418.63
8.3.30.0140.00020.30
8.3.20.0090.00020.66
8.3.10.0080.00021.13
8.3.00.0070.00723.48
8.2.180.0130.00618.53
8.2.170.0110.00422.96
8.2.160.0030.01320.39
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0100.00321.10
8.2.110.0090.00019.37
8.2.100.0110.00018.03
8.2.90.0000.00719.28
8.2.80.0050.00317.97
8.2.70.0040.00817.63
8.2.60.0060.00317.80
8.2.50.0000.00818.07
8.2.40.0050.00320.00
8.2.30.0040.00419.38
8.2.20.0000.00917.82
8.2.10.0040.00417.90
8.2.00.0030.00617.89
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.51
8.1.230.0080.00520.91
8.1.220.0080.00018.77
8.1.210.0090.00018.98
8.1.200.0030.00917.35
8.1.190.0000.00917.39
8.1.180.0030.00518.10
8.1.170.0050.00318.77
8.1.160.0040.00418.90
8.1.150.0040.00418.83
8.1.140.0040.00417.63
8.1.130.0050.00217.79
8.1.120.0080.00017.55
8.1.110.0000.00717.56
8.1.100.0030.00417.57
8.1.90.0040.00417.44
8.1.80.0050.00317.43
8.1.70.0030.00317.51
8.1.60.0040.00417.63
8.1.50.0030.00517.57
8.1.40.0040.00417.46
8.1.30.0000.00717.68
8.1.20.0030.00617.80
8.1.10.0020.00517.46
8.1.00.0080.00017.50
8.0.300.0070.00019.77
8.0.290.0060.00317.30
8.0.280.0000.00718.45
8.0.270.0070.00017.20
8.0.260.0080.00016.86
8.0.250.0000.00816.95
8.0.240.0070.00017.05
8.0.230.0050.00217.03
8.0.220.0030.00317.02
8.0.210.0030.00316.91
8.0.200.0030.00316.89
8.0.190.0030.00316.91
8.0.180.0040.00416.88
8.0.170.0050.00216.96
8.0.160.0000.00716.88
8.0.150.0000.00816.90
8.0.140.0080.00016.92
8.0.130.0000.00513.39
8.0.120.0050.00316.84
8.0.110.0040.00417.01
8.0.100.0050.00316.91
8.0.90.0000.00816.98
8.0.80.0070.01416.98
8.0.70.0000.00716.84
8.0.60.0030.00517.04
8.0.50.0040.00416.86
8.0.30.0060.01217.25
8.0.20.0070.01217.42
8.0.10.0040.00416.99
8.0.00.0090.00816.78
7.4.330.0000.00516.79
7.4.320.0030.00316.66
7.4.300.0000.00616.71
7.4.290.0030.00316.71
7.4.280.0000.00716.71
7.4.270.0030.00316.60
7.4.260.0000.00513.46
7.4.250.0000.00716.66
7.4.240.0040.00416.86
7.4.230.0000.00716.70
7.4.220.0130.01016.74
7.4.210.0070.01116.74
7.4.200.0000.00716.57
7.4.190.0080.00016.81
7.4.160.0130.00316.67
7.4.150.0100.01417.40
7.4.140.0110.00717.86
7.4.130.0080.01116.59
7.4.120.0060.01116.50
7.4.110.0130.00316.88
7.4.100.0120.00616.66
7.4.90.0090.00916.78
7.4.80.0150.00619.39
7.4.70.0050.01416.59
7.4.60.0150.00616.41
7.4.50.0040.00416.48
7.4.40.0080.00322.77
7.4.30.0060.00916.49
7.4.00.0060.00914.85
7.3.330.0050.00013.03
7.3.320.0000.00512.99
7.3.310.0000.00716.36
7.3.300.0030.00316.27
7.3.290.0120.00316.23
7.3.280.0080.01016.29
7.3.270.0070.01117.40
7.3.260.0120.01118.24
7.3.250.0100.00816.48
7.3.240.0030.01316.72
7.3.230.0160.00316.39
7.3.210.0110.00716.59
7.3.200.0200.00319.39
7.3.190.0070.01516.35
7.3.180.0210.00316.28
7.3.170.0090.01416.32
7.3.160.0120.00316.25
7.3.120.0100.00314.79
7.2.330.0100.00716.63
7.2.320.0070.01116.71
7.2.310.0090.00916.77
7.2.300.0120.00616.63
7.2.290.0180.00016.49
7.2.00.0000.01319.62
7.1.100.0030.00718.43
7.1.70.0000.00816.91
7.1.60.0070.01619.17
7.1.50.0030.01517.06
7.1.00.0000.03722.59
7.0.200.0050.00216.53
7.0.140.0000.07322.16
7.0.100.0100.04019.94
7.0.90.0000.08719.86
7.0.80.0030.08019.88
7.0.70.0170.04719.86
7.0.60.0070.08319.74
7.0.50.0470.07320.36
7.0.40.0100.08320.11
7.0.30.0000.08320.14
7.0.20.0030.07020.09
7.0.10.0130.07320.10
7.0.00.0100.07720.13
5.6.280.0100.06720.85
5.6.250.0100.06720.54
5.6.240.0100.07720.45
5.6.230.0030.08020.58
5.6.220.0030.08720.43
5.6.210.0100.08320.53
5.6.200.0100.08020.97
5.6.190.0100.07721.00
5.6.180.0100.08020.88
5.6.170.0100.06720.88
5.6.160.0030.07020.91
5.6.150.0200.07321.00
5.6.140.0100.07721.05
5.6.130.0200.07321.06
5.6.120.0070.08021.08
5.6.110.0000.07020.90
5.6.100.0130.06720.99
5.6.90.0100.07720.95
5.6.80.0100.05020.39
5.6.70.0070.03720.46
5.6.60.0000.04320.27
5.6.50.0070.03720.36
5.6.40.0030.05020.48
5.6.30.0030.03720.24
5.6.20.0100.03320.39
5.6.10.0070.07720.37
5.6.00.0000.04320.37
5.5.380.0170.07720.30
5.5.370.0130.07720.51
5.5.360.0030.07020.44
5.5.350.0100.08320.41
5.5.340.0000.08020.68
5.5.330.0030.09020.88
5.5.320.0100.04720.72
5.5.310.0030.08720.68
5.5.300.0070.08320.59
5.5.290.0070.06720.68
5.5.280.0130.07020.88
5.5.270.0030.09020.72
5.5.260.0130.08020.87
5.5.250.0130.07320.65
5.5.240.0070.04020.20
5.5.230.0000.04320.16
5.5.220.0030.03320.20
5.5.210.0100.04020.20
5.5.200.0170.03020.21
5.5.190.0000.04020.18
5.5.180.0030.04020.13
5.5.160.0000.04720.20
5.5.150.0070.07020.16
5.5.140.0000.03720.03
5.5.130.0100.08020.16
5.5.120.0170.04320.19
5.5.110.0130.07020.21
5.5.100.0030.06719.91
5.5.90.0000.04020.06
5.5.80.0070.05020.02
5.5.70.0030.04020.09
5.5.60.0100.02720.02
5.5.50.0030.03720.00
5.5.40.0070.04019.98
5.5.30.0030.04320.04
5.5.20.0070.04720.03
5.5.10.0130.06020.02
5.5.00.0100.06719.99
5.4.450.0070.06719.33
5.4.440.0100.07719.29
5.4.430.0200.07019.27
5.4.420.0030.07019.27
5.4.410.0100.06719.01
5.4.400.0000.04319.09
5.4.390.0100.03719.03
5.4.380.0000.04018.98
5.4.370.0100.03719.25
5.4.360.0000.05318.90
5.4.350.0030.06019.06
5.4.340.0030.04019.11
5.4.320.0100.06018.90
5.4.310.0070.03319.06
5.4.300.0000.03719.22
5.4.290.0030.03319.14
5.4.280.0000.04018.95
5.4.270.0030.03719.23
5.4.260.0070.04019.14
5.4.250.0000.04019.07
5.4.240.0130.06018.94
5.4.230.0070.06719.03
5.4.220.0100.03319.05
5.4.210.0030.04019.13
5.4.200.0000.07719.14
5.4.190.0000.04318.93
5.4.180.0030.06718.80
5.4.170.0000.04018.80
5.4.160.0030.03319.01
5.4.150.0030.03718.95
5.4.140.0000.04016.23
5.4.130.0070.05316.23
5.4.120.0000.03316.23
5.4.110.0030.03716.24
5.4.100.0030.05316.39
5.4.90.0000.03316.21
5.4.80.0030.07716.31
5.4.70.0070.06716.33
5.4.60.0070.07016.41
5.4.50.0030.07716.18
5.4.40.0000.05016.24
5.4.30.0130.06716.36
5.4.20.0100.07016.41
5.4.10.0000.06716.28
5.4.00.0000.06715.77
5.3.290.0000.03714.65
5.3.280.0030.06014.59
5.3.270.0070.03014.45
5.3.260.0030.03714.56
5.3.250.0070.04014.54
5.3.240.0130.03314.59
5.3.230.0000.04014.51
5.3.220.0100.03314.54
5.3.210.0070.04014.57
5.3.200.0000.04014.56
5.3.190.0070.06014.50
5.3.180.0030.03714.41
5.3.170.0070.06014.51
5.3.160.0070.07014.47
5.3.150.0070.07314.52
5.3.140.0000.04714.41
5.3.130.0100.04714.49
5.3.120.0170.06314.37
5.3.110.0000.07314.49
5.3.100.0100.07013.89
5.3.90.0100.07013.98
5.3.80.0000.08014.01
5.3.70.0100.07013.87
5.3.60.0100.07013.78
5.3.50.0130.07313.93
5.3.40.0100.07013.85
5.3.30.0100.07313.89
5.3.20.0130.07013.54
5.3.10.0130.06713.61
5.3.00.0100.07013.63
5.2.170.0000.06711.18
5.2.160.0070.05711.10
5.2.150.0130.05710.99
5.2.140.0000.06310.98
5.2.130.0070.06011.15
5.2.120.0200.04710.98
5.2.110.0000.06311.09
5.2.100.0130.05011.09
5.2.90.0000.06711.14
5.2.80.0100.06011.13
5.2.70.0070.06311.05
5.2.60.0100.06010.91
5.2.50.0030.06310.97
5.2.40.0070.06010.82
5.2.30.0030.06010.83
5.2.20.0070.06311.01
5.2.10.0030.06310.92
5.2.00.0070.04010.66
5.1.60.0030.05310.04
5.1.50.0030.0379.97
5.1.40.0100.0509.80
5.1.30.0030.04710.35
5.1.20.0100.05010.20
5.1.10.0000.03710.05
5.1.00.0030.05310.04
5.0.50.0030.0478.72
5.0.40.0070.0408.72
5.0.30.0030.0638.72
5.0.20.0000.0508.72
5.0.10.0130.0338.72
5.0.00.0030.0608.72
4.4.90.0070.0338.72
4.4.80.0030.0338.72
4.4.70.0030.0338.72
4.4.60.0070.0338.72
4.4.50.0070.0338.72
4.4.40.0000.0578.72
4.4.30.0000.0238.72
4.4.20.0070.0338.72
4.4.10.0000.0378.72
4.4.00.0070.0538.72
4.3.110.0000.0378.72
4.3.100.0000.0378.72
4.3.90.0000.0338.72
4.3.80.0000.0578.72
4.3.70.0000.0378.72
4.3.60.0000.0378.72
4.3.50.0100.0238.72
4.3.40.0030.0508.72
4.3.30.0000.0408.72
4.3.20.0100.0238.72
4.3.10.0000.0338.72
4.3.00.0000.0378.72

preferences:
49.74 ms | 401 KiB | 5 Q