3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oldpost = "345,346,347"; $newposts = preg_replace("/(,?\s*346(\s|,|\b))?/", "$2", $oldpost); echo $newposts,PHP_EOL;

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.43
8.3.50.0170.00316.40
8.3.40.0040.01218.79
8.3.30.0110.00318.80
8.3.20.0080.00020.93
8.3.10.0040.00420.34
8.3.00.0040.00418.94
8.2.180.0170.01416.48
8.2.170.0140.00022.96
8.2.160.0070.00720.30
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00026.16
8.2.110.0090.00022.16
8.2.100.0090.00318.09
8.2.90.0060.00319.21
8.2.80.0000.00817.97
8.2.70.0080.00017.75
8.2.60.0050.00317.93
8.2.50.0050.00318.07
8.2.40.0030.00718.22
8.2.30.0070.00018.07
8.2.20.0000.00718.07
8.2.10.0040.00419.33
8.2.00.0000.00719.32
8.1.280.0110.00825.92
8.1.270.0090.00020.64
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0030.00620.88
8.1.230.0100.00017.77
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0040.00418.71
8.1.160.0000.00718.85
8.1.150.0040.00418.77
8.1.140.0000.00918.89
8.1.130.0030.00317.58
8.1.120.0040.00417.56
8.1.110.0000.00717.49
8.1.100.0090.00017.52
8.1.90.0000.00717.55
8.1.80.0050.00317.52
8.1.70.0030.00317.57
8.1.60.0030.00517.67
8.1.50.0030.00517.69
8.1.40.0000.00817.55
8.1.30.0080.00017.78
8.1.20.0030.00617.57
8.1.10.0060.00317.62
8.1.00.0000.00817.62
8.0.300.0030.00618.77
8.0.290.0030.00716.88
8.0.280.0050.00318.41
8.0.270.0040.00418.21
8.0.260.0030.00316.91
8.0.250.0000.00717.06
8.0.240.0030.00317.15
8.0.230.0000.00717.06
8.0.220.0040.00417.06
8.0.210.0030.00317.03
8.0.200.0030.00317.02
8.0.190.0030.00317.13
8.0.180.0090.00016.96
8.0.170.0040.00417.09
8.0.160.0040.00416.93
8.0.150.0000.00716.86
8.0.140.0000.00816.91
8.0.130.0030.00313.50
8.0.120.0080.00016.92
8.0.110.0030.00316.98
8.0.100.0030.00317.01
8.0.90.0060.00316.90
8.0.80.0040.01117.02
8.0.70.0030.00516.90
8.0.60.0070.00016.90
8.0.50.0050.00216.92
8.0.30.0130.00617.05
8.0.20.0120.00917.11
8.0.10.0040.00416.91
8.0.00.0090.00917.10
7.4.330.0020.00216.68
7.4.320.0060.00016.71
7.4.300.0000.00616.74
7.4.290.0040.00416.64
7.4.280.0000.00816.77
7.4.270.0040.00416.73
7.4.260.0030.00313.41
7.4.250.0000.00716.64
7.4.240.0000.00716.65
7.4.230.0000.00716.86
7.4.220.0030.00316.77
7.4.210.0090.00916.86
7.4.200.0000.00716.49
7.4.130.0100.01216.56
7.4.120.0100.01016.47
7.4.110.0070.01116.46
7.4.100.0120.00416.62
7.4.90.0030.01316.63
7.4.80.0120.00919.39
7.4.70.0120.00616.48
7.4.60.0100.00716.50
7.4.50.0060.01316.37
7.4.40.0100.00616.60
7.4.20.0120.01116.55
7.4.10.0170.00716.27
7.4.00.0160.01016.79
7.3.330.0020.00516.20
7.3.320.0000.00513.16
7.3.310.0030.00316.49
7.3.300.0030.00316.43
7.3.290.0090.00516.39
7.3.260.0130.01016.71
7.3.240.0080.01216.60
7.3.230.0100.01416.27
7.3.210.0110.00716.45
7.3.200.0090.00816.66
7.3.190.0120.01016.80
7.3.180.0070.00816.69
7.3.170.0100.00716.59
7.3.160.0170.00716.64
7.3.140.0140.00716.32
7.3.130.0170.00616.36
7.3.120.0150.01216.30
7.3.110.0120.00816.33
7.3.100.0120.01616.21
7.3.90.0140.01016.50
7.3.80.0070.01816.59
7.3.70.0170.00316.21
7.3.60.0110.01116.24
7.3.50.0130.01316.04
7.3.40.0130.01316.21
7.3.30.0200.00516.10
7.3.20.0180.00616.25
7.3.10.0150.01015.92
7.3.00.0070.01516.12
7.2.330.0170.00316.77
7.2.320.0060.00916.64
7.2.310.0120.00416.68
7.2.300.0080.01216.93
7.2.290.0000.01616.58
7.2.270.0070.01516.56
7.2.260.0120.01616.58
7.2.250.0120.01216.55
7.2.240.0160.01016.56
7.2.230.0120.01516.58
7.2.220.0210.01116.31
7.2.210.0210.00316.34
7.2.200.0150.00916.45
7.2.190.0180.00916.48
7.2.180.0200.00916.45
7.2.170.0150.00816.57
7.2.160.0110.01216.57
7.2.150.0160.01316.47
7.2.140.0210.00316.61
7.2.130.0200.00316.40
7.2.120.0190.00516.57
7.2.110.0180.01116.30
7.2.100.0030.01616.48
7.2.90.0150.00816.27
7.2.80.0120.01316.51
7.2.70.0200.00316.46
7.2.60.0130.01316.26
7.2.50.0090.01516.23
7.2.40.0160.01116.53
7.2.30.0250.00216.36
7.2.20.0240.00916.41
7.2.10.0070.02016.68
7.2.00.0080.01416.81

preferences:
31.51 ms | 400 KiB | 5 Q