3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'hello, [how]foo[how]bar. please don\'t remove [are] you?'; preg_replace('~\[.*?\]~', '', $a); echo PHP_EOL . "there should be no space between foo and bar :)";

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.0090.00618.52
8.3.50.0120.00717.48
8.3.40.0070.00719.00
8.3.30.0040.01118.84
8.3.20.0060.01218.63
8.3.10.0040.00420.38
8.3.00.0040.00417.75
8.2.180.0100.01016.75
8.2.170.0120.00322.96
8.2.160.0070.00722.04
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0000.00719.77
8.2.110.0100.00021.17
8.2.100.0080.00417.97
8.2.90.0050.00319.16
8.2.80.0080.00018.04
8.2.70.0030.00617.74
8.2.60.0000.01017.68
8.2.50.0080.00018.07
8.2.40.0080.00018.22
8.2.30.0000.00818.05
8.2.20.0030.00517.71
8.2.10.0030.00517.68
8.2.00.0050.00317.77
8.1.280.0100.00625.92
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0060.00322.61
8.1.230.0080.00320.97
8.1.220.0050.00318.77
8.1.210.0000.00818.78
8.1.200.0000.01017.48
8.1.190.0020.00517.54
8.1.180.0030.00518.10
8.1.170.0040.00418.78
8.1.160.0070.00018.76
8.1.150.0080.00018.69
8.1.140.0000.00817.54
8.1.130.0000.00717.89
8.1.120.0030.00517.51
8.1.110.0030.00517.43
8.1.100.0000.00717.51
8.1.90.0070.00017.41
8.1.80.0020.00517.51
8.1.70.0070.00017.50
8.1.60.0090.00017.70
8.1.50.0030.00517.55
8.1.40.0000.00917.58
8.1.30.0040.00417.75
8.1.20.0040.00417.63
8.1.10.0040.00417.69
8.1.00.0040.00417.64
8.0.300.0030.00719.83
8.0.290.0040.00416.88
8.0.280.0070.00018.48
8.0.270.0040.00417.23
8.0.260.0040.00418.76
8.0.250.0040.00417.05
8.0.240.0030.00617.00
8.0.230.0060.00317.09
8.0.220.0000.00716.96
8.0.210.0030.00316.95
8.0.200.0030.00316.91
8.0.190.0000.00916.95
8.0.180.0060.00317.03
8.0.170.0030.00617.06
8.0.160.0000.00717.00
8.0.150.0040.00416.82
8.0.140.0040.00717.01
8.0.130.0000.00613.45
8.0.120.0070.00316.91
8.0.110.0000.00716.84
8.0.100.0040.00416.96
8.0.90.0040.00416.94
8.0.80.0030.01216.86
8.0.70.0040.00416.85
8.0.60.0040.00416.92
8.0.50.0040.00416.96
8.0.30.0140.00617.23
8.0.20.0100.01217.15
8.0.10.0000.00717.07
8.0.00.0090.01116.96
7.4.330.0000.00514.93
7.4.320.0030.00316.80
7.4.300.0030.00316.75
7.4.290.0070.00016.75
7.4.280.0060.00316.74
7.4.270.0030.00316.73
7.4.260.0050.00013.50
7.4.250.0040.00416.75
7.4.240.0030.00316.61
7.4.230.0000.00716.64
7.4.220.0060.01216.82
7.4.210.0100.00516.69
7.4.200.0040.00416.70
7.4.190.0000.00716.51
7.4.160.0050.01116.79
7.4.150.0160.00617.07
7.4.140.0080.01217.20
7.4.130.0110.00816.62
7.4.120.0130.00616.68
7.4.110.0160.00816.79
7.4.100.0120.00616.76
7.4.90.0110.00616.61
7.4.80.0110.00718.80
7.4.70.0130.01016.62
7.4.60.0090.00616.66
7.4.50.0020.00216.51
7.4.40.0060.00522.27
7.4.30.0120.00416.84
7.4.00.0060.00915.28
7.3.330.0030.00313.24
7.3.320.0060.00013.08
7.3.310.0030.00316.33
7.3.300.0030.00316.28
7.3.290.0170.00316.35
7.3.280.0090.00916.33
7.3.270.0100.00717.07
7.3.260.0150.00418.24
7.3.250.0110.01116.37
7.3.240.0030.01316.42
7.3.230.0120.00616.73
7.3.210.0110.01116.71
7.3.200.0080.00819.39
7.3.190.0060.01616.40
7.3.180.0030.01216.39
7.3.170.0090.01316.31
7.3.160.0030.01816.63
7.3.120.0090.00614.65
7.2.330.0090.00916.51
7.2.320.0110.01116.89
7.2.310.0150.00716.70
7.2.300.0090.01216.56
7.2.290.0120.00616.64
7.2.60.0030.00916.89
7.1.200.0030.01015.84
7.1.70.0000.01117.36
7.1.60.0040.01519.40
7.1.50.0100.01017.10
7.1.00.0070.07022.31
7.0.200.0030.00317.00
7.0.140.0070.07021.95
7.0.60.0000.09319.91
7.0.50.0070.08317.68
7.0.40.0030.04320.06
7.0.30.0270.05320.20
7.0.20.0300.05020.10
7.0.10.0130.04720.21
7.0.00.0070.09020.03
5.6.280.0030.07320.77
5.6.210.0100.06720.72
5.6.200.0030.05718.22
5.6.190.0030.05320.66
5.6.180.0330.09320.57
5.6.170.0400.05020.51
5.6.160.0170.07720.49
5.6.150.0030.06318.22
5.6.140.0070.08318.11
5.6.130.0030.04318.11
5.6.120.0130.07020.96
5.6.110.0070.04020.98
5.6.100.0030.04020.97
5.6.90.0030.07020.97
5.6.80.0100.06320.52
5.6.70.4030.03720.39
5.5.350.0230.04020.52
5.5.340.0070.08017.91
5.5.330.0100.07020.36
5.5.320.0330.07720.29
5.5.310.0270.04720.23
5.5.300.0100.07017.92
5.5.290.0070.06318.00
5.5.280.0100.08720.89
5.5.270.0070.08720.83
5.5.260.0100.06320.86
5.5.250.0100.08020.63
5.5.240.0030.03720.28
5.4.450.3170.03719.41
5.4.440.0130.04319.46
5.4.430.0100.04319.41
5.4.420.0230.03019.54
5.4.410.0230.03719.02
5.4.400.0230.03718.92
5.4.390.0200.04018.79
5.4.380.0200.03719.11
5.4.370.0200.03719.08
5.4.360.0270.04019.24
5.4.350.0230.03318.91
5.4.340.0170.04018.81
5.4.320.0330.03719.24
5.4.310.0300.05719.06
5.4.300.0300.05018.78
5.4.290.0270.04318.93
5.4.280.0200.04019.08
5.4.270.0270.04318.79
5.4.260.0170.04018.91
5.4.250.0170.04018.87
5.4.240.0270.07019.06
5.4.230.0330.06719.12
5.4.220.0270.03318.78
5.4.210.0270.03319.07
5.4.200.0170.05019.09
5.4.190.0270.03018.91
5.4.180.0170.04018.78
5.4.170.0230.07318.77
5.4.160.0170.04018.76
5.4.150.0230.03319.08
5.4.140.0200.04716.45
5.4.130.0230.07016.28
5.4.120.0270.03716.50
5.4.110.0300.06716.41
5.4.100.0300.07016.06
5.4.90.0400.05716.53
5.4.80.0270.06316.23
5.4.70.0270.03016.37
5.4.60.0330.05316.50
5.4.50.0330.06316.18
5.4.40.0270.03716.47
5.4.30.0230.04316.03
5.4.20.0300.06016.38
5.4.10.0270.06716.40
5.4.00.0200.03715.76
5.3.290.0230.07714.50
5.3.280.0170.04714.42
5.3.270.0300.03714.54
5.3.260.0300.05314.45
5.3.250.0200.03714.55
5.3.240.0230.06014.53
5.3.230.0300.04014.64
5.3.220.0270.06014.41
5.3.210.0230.05014.40
5.3.200.0330.06314.51
5.3.190.0300.04714.42
5.3.180.0300.06014.52
5.3.170.0270.03314.54
5.3.160.0300.04014.50
5.3.150.0330.07014.61
5.3.140.0200.04714.39
5.3.130.0230.03714.49
5.3.120.0300.07014.57
5.3.110.0270.03314.50
5.3.100.0130.07014.09
5.3.90.0270.06713.92
5.3.80.0270.07314.10
5.3.70.0300.07313.95
5.3.60.0300.05714.03
5.3.50.0200.04713.97
5.3.40.0270.03313.78
5.3.30.0300.06713.78
5.3.20.0270.06713.78
5.3.10.0230.04013.45
5.3.00.0230.05013.49
5.2.170.0170.03011.24
5.2.160.0200.06711.08
5.2.150.0200.04010.98
5.2.140.0270.04311.23
5.2.130.0270.04710.94
5.2.120.0230.04710.95
5.2.110.0230.05711.11
5.2.100.0200.05010.96
5.2.90.0270.05711.25
5.2.80.0230.06011.15
5.2.70.0370.04711.18
5.2.60.0270.03710.90
5.2.50.0200.03711.04
5.2.40.0170.03710.84
5.2.30.0200.03310.88
5.2.20.0170.04711.05
5.2.10.0100.03710.86
5.2.00.0100.03010.67
5.1.60.0130.0279.91
5.1.50.0130.0379.92
5.1.40.0130.03010.13
5.1.30.0130.02710.35
5.1.20.0230.04010.31
5.1.10.0270.0509.93
5.1.00.0130.03310.24
5.0.50.0100.0178.53
5.0.40.0070.0208.54
5.0.30.0130.0308.56
5.0.20.0170.0378.59
5.0.10.0070.0438.61
5.0.00.0070.0638.63
4.4.90.0100.0378.45
4.4.80.0070.0208.46
4.4.70.0070.0208.46
4.4.60.0070.0338.46
4.4.50.0100.0208.46
4.4.40.0100.0508.47
4.4.30.0030.0178.48
4.4.20.0070.0178.50
4.4.10.0100.0178.52
4.4.00.0070.0508.54
4.3.110.0070.0338.55
4.3.100.0100.0178.57
4.3.90.0100.0308.59
4.3.80.0030.0438.63
4.3.70.0030.0208.63
4.3.60.0070.0208.63
4.3.50.0030.0178.63
4.3.40.0070.0438.63
4.3.30.0070.0338.64
4.3.20.0000.0238.64
4.3.10.0030.0408.64
4.3.00.0070.0338.64

preferences:
55.32 ms | 400 KiB | 5 Q