3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = " test test2 test3"; $subject = preg_replace("/(^ |\n )/m", "\t", $subject); echo $subject;

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.0070.00716.50
8.3.50.0090.01117.31
8.3.40.0070.01018.72
8.3.30.0090.00618.84
8.3.20.0080.00018.89
8.3.10.0030.00620.61
8.3.00.0090.00619.36
8.2.180.0090.00916.75
8.2.170.0110.00422.96
8.2.160.0090.00620.72
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00721.11
8.2.110.0030.00722.15
8.2.100.0040.00717.91
8.2.90.0030.00519.22
8.2.80.0060.00317.97
8.2.70.0040.00417.75
8.2.60.0060.00317.92
8.2.50.0000.00818.07
8.2.40.0070.00418.28
8.2.30.0000.00718.14
8.2.20.0030.00617.67
8.2.10.0040.00417.77
8.2.00.0090.00317.65
8.1.280.0050.00925.92
8.1.270.0020.00523.99
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00720.70
8.1.230.0090.00317.77
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0040.00717.23
8.1.180.0060.00318.10
8.1.170.0040.00418.71
8.1.160.0040.00418.84
8.1.150.0040.00418.77
8.1.140.0040.00417.59
8.1.130.0000.00717.79
8.1.120.0000.00917.53
8.1.110.0040.00417.56
8.1.100.0030.00517.46
8.1.90.0000.00817.55
8.1.80.0040.00417.56
8.1.70.0030.00317.47
8.1.60.0030.00917.68
8.1.50.0050.00317.44
8.1.40.0040.00417.61
8.1.30.0000.00817.75
8.1.20.0030.00617.66
8.1.10.0040.00417.57
8.1.00.0070.00017.59
8.0.300.0050.00318.77
8.0.290.0030.00716.75
8.0.280.0030.00618.36
8.0.270.0030.00317.28
8.0.260.0030.00316.95
8.0.250.0070.00017.02
8.0.240.0000.00817.04
8.0.230.0080.00017.05
8.0.220.0000.00716.98
8.0.210.0040.00416.99
8.0.200.0000.00616.99
8.0.190.0000.00816.99
8.0.180.0090.00016.96
8.0.170.0100.00016.89
8.0.160.0030.00617.05
8.0.150.0090.00016.79
8.0.140.0040.00416.79
8.0.130.0000.00513.39
8.0.120.0030.00316.89
8.0.110.0080.00016.99
8.0.100.0050.00317.04
8.0.90.0040.00416.80
8.0.80.0080.00816.95
8.0.70.0000.00816.76
8.0.60.0000.00816.92
8.0.50.0040.00416.81
8.0.30.0070.01417.32
8.0.20.0080.01517.24
8.0.10.0030.00616.96
8.0.00.0060.01216.97
7.4.330.0000.00513.15
7.4.320.0000.00716.64
7.4.300.0030.00316.79
7.4.290.0020.00516.63
7.4.280.0070.00416.79
7.4.270.0030.00316.69
7.4.260.0030.00313.47
7.4.250.0000.00916.73
7.4.240.0030.00316.68
7.4.230.0040.00416.83
7.4.220.0100.00716.69
7.4.210.0070.01016.82
7.4.200.0070.00016.84
7.4.190.0000.00716.46
7.4.160.0110.00516.60
7.4.150.0150.01116.57
7.4.140.0040.01516.72
7.4.130.0130.00316.69
7.4.120.0140.00316.77
7.4.110.0070.01016.62
7.4.100.0060.01016.62
7.4.90.0160.00316.65
7.4.80.0170.00019.39
7.4.70.0060.01116.86
7.4.60.0120.00316.67
7.4.50.0040.00416.36
7.4.40.0040.00816.54
7.4.30.0060.01016.53
7.4.00.0070.00714.73
7.3.330.0030.00313.26
7.3.320.0060.00013.09
7.3.310.0040.00416.35
7.3.300.0030.00316.41
7.3.290.0060.00816.38
7.3.280.0050.01116.32
7.3.270.0090.00916.44
7.3.260.0160.00616.39
7.3.250.0070.01116.52
7.3.240.0120.00616.41
7.3.230.0060.00916.63
7.3.210.0120.00616.66
7.3.200.0060.01316.35
7.3.190.0060.01016.42
7.3.180.0060.01016.35
7.3.170.0100.01016.45
7.3.160.0030.01316.58
7.3.120.0100.00614.90
7.3.10.0120.00016.76
7.3.00.0060.01016.64
7.2.330.0110.00616.71
7.2.320.0130.01016.68
7.2.310.0110.00816.81
7.2.300.0080.00916.52
7.2.290.0090.00916.59
7.2.130.0030.00617.16
7.2.120.0070.00416.90
7.2.110.0070.00716.73
7.2.100.0030.00616.80
7.2.90.0090.00617.05
7.2.80.0090.00617.29
7.2.70.0040.00917.19
7.2.60.0050.01117.04
7.2.50.0100.00316.87
7.2.40.0060.00316.86
7.2.30.0100.00717.07
7.2.20.0100.00616.95
7.2.10.0100.00317.07
7.2.00.0050.01018.19
7.1.250.0100.00716.07
7.1.200.0070.00715.91
7.1.100.0070.00718.01
7.1.70.0070.01017.00
7.1.60.0030.01017.49
7.1.50.0070.01117.26
7.1.00.0030.07022.45
7.0.200.0030.01316.77
7.0.140.0000.07722.04
7.0.120.0030.07322.01
7.0.60.0100.03319.95
7.0.50.0030.06017.82
7.0.40.0070.04020.32
7.0.30.0270.07020.22
7.0.20.0270.08320.10
7.0.10.0100.06020.18
7.0.00.0030.04320.01
5.6.280.0100.06721.11
5.6.210.0270.07020.64
5.6.200.0100.08018.19
5.6.190.0030.06020.61
5.6.180.0270.05720.46
5.6.170.0270.03720.61
5.6.160.0000.09020.46
5.6.150.0000.08018.16
5.6.140.0030.03718.20
5.6.130.0130.07718.12
5.6.120.0100.05320.98
5.6.110.0100.08021.12
5.6.100.0000.04721.10
5.6.90.0130.04721.07
5.6.80.0100.07720.40
5.5.350.0330.06720.40
5.5.340.0000.04017.95
5.5.330.0070.04320.15
5.5.320.0200.05720.17
5.5.310.0170.04020.50
5.5.300.0000.07717.88
5.5.290.0130.07018.01
5.5.280.0100.04720.84
5.5.270.0000.07020.94
5.5.260.0100.07020.67
5.5.250.0000.04320.65
5.5.240.0030.07320.25
5.4.450.0100.07719.14
5.4.440.0130.07319.11
5.4.430.0100.03719.13
5.4.420.0000.04719.47
5.4.410.0130.05019.00
5.4.400.0100.04019.09
5.4.390.0070.08019.15
5.4.380.0100.06318.79
5.4.370.0070.06019.18
5.4.360.0030.04019.14
5.4.350.0000.04318.93
5.4.340.0070.03718.91
5.4.320.0030.04019.18
5.4.310.0070.06319.08
5.4.300.0030.07319.15
5.4.290.0100.06719.18
5.4.280.0030.08018.77
5.4.270.0030.07719.17
5.4.260.0130.06719.17
5.4.250.0130.04019.15
5.4.240.0000.06019.17
5.4.230.0100.07318.78
5.4.220.0100.05719.16
5.4.210.0000.05719.14
5.4.200.0070.08018.78
5.4.190.0000.04718.82
5.4.180.0030.08018.78
5.4.170.0000.04319.07
5.4.160.0030.06719.16
5.4.150.0030.03719.12
5.4.140.0000.04016.25
5.4.130.0070.05016.34
5.4.120.0070.07016.47
5.4.110.0000.04316.60
5.4.100.0000.05316.30
5.4.90.0030.04316.14
5.4.80.0000.06316.38
5.4.70.0070.04316.23
5.4.60.0100.06316.38
5.4.50.0200.03016.20
5.4.40.0170.05316.21
5.4.30.0070.05016.28
5.4.20.0100.06716.31
5.4.10.0070.06716.21
5.4.00.0030.06315.79
5.3.290.0000.04314.75
5.3.280.0070.07014.51
5.3.270.0070.04714.48
5.3.260.0070.04314.56
5.3.250.0030.03714.42
5.3.240.0030.06014.42
5.3.230.0070.05314.41
5.3.220.0070.07314.65
5.3.210.0070.04314.35
5.3.200.0100.06714.49
5.3.190.0100.04014.54
5.3.180.0030.07314.48
5.3.170.0070.04714.45
5.3.160.0070.03314.36
5.3.150.0100.06314.49
5.3.140.0030.03714.48
5.3.130.0070.04314.36
5.3.120.0000.07314.49
5.3.110.0030.04014.53
5.3.100.0030.03713.97
5.3.90.0030.04313.94
5.3.80.0100.07013.83
5.3.70.0070.07313.85
5.3.60.0030.05713.96
5.3.50.0070.07013.75
5.3.40.0130.03313.87
5.3.30.0030.06313.85
5.3.20.0130.06713.70
5.3.10.0070.04313.59
5.3.00.0030.04013.45
5.2.170.0030.05311.12
5.2.160.0030.05711.07
5.2.150.0070.06311.02
5.2.140.0030.03711.03
5.2.130.0000.06711.08
5.2.120.0030.04311.07
5.2.110.0070.05310.91
5.2.100.0000.04011.07
5.2.90.0100.03011.26
5.2.80.0070.05311.17
5.2.70.0070.07010.93
5.2.60.0070.03310.94
5.2.50.0070.02710.98
5.2.40.0070.02711.00
5.2.30.0070.05710.87
5.2.20.0100.05011.11
5.2.10.0000.04310.94
5.2.00.0100.05010.56
5.1.60.0030.0539.89
5.1.50.0070.0339.94
5.1.40.0000.0439.98
5.1.30.0100.05010.48
5.1.20.0070.03310.34
5.1.10.0030.0539.96
5.1.00.0070.04710.08
5.0.50.0030.0278.54
5.0.40.0030.0238.38
5.0.30.0030.0338.20
5.0.20.0030.0308.25
5.0.10.0030.0408.20
5.0.00.0070.0538.13
4.4.90.0000.0308.02
4.4.80.0000.0208.02
4.4.70.0000.0378.02
4.4.60.0070.0308.02
4.4.50.0000.0278.02
4.4.40.0030.0478.02
4.4.30.0000.0378.02
4.4.20.0030.0178.02
4.4.10.0000.0178.02
4.4.00.0070.0408.02
4.3.110.0000.0408.02
4.3.100.0000.0178.02
4.3.90.0130.0208.02
4.3.80.0030.0538.02
4.3.70.0070.0338.02
4.3.60.0100.0278.02
4.3.50.0030.0278.02
4.3.40.0000.0578.02
4.3.30.0000.0238.02
4.3.20.0000.0178.02
4.3.10.0030.0338.02
4.3.00.0030.0138.02

preferences:
45.83 ms | 401 KiB | 5 Q