3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str="Please wait for sometime too, the area code is for 18 and phone number is too 5897 for"; $str=preg_replace('#(\d)\s*for#','${1}4',$str); $str=preg_replace('#(\d)\s*too#','${1}2',$str); $str=preg_replace('#for\s*(\d)#','4${1}',$str); $str=preg_replace('#too\s*(\d)#','2${1}',$str); echo $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.70.0040.01118.55
8.3.60.0150.00318.27
8.3.50.0100.00822.09
8.3.40.0090.00618.63
8.3.30.0090.00619.04
8.3.20.0080.00020.25
8.3.10.0040.00421.96
8.3.00.0000.00822.50
8.2.190.0060.00916.58
8.2.180.0090.00916.88
8.2.170.0070.00722.96
8.2.160.0110.00422.20
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00020.08
8.2.110.0070.00321.12
8.2.100.0000.01217.91
8.2.90.0050.00318.03
8.2.80.0100.00017.97
8.2.70.0060.00317.75
8.2.60.0000.00817.75
8.2.50.0030.00517.75
8.2.40.0040.00419.73
8.2.30.0040.00418.00
8.2.20.0040.00417.84
8.2.10.0040.00418.15
8.2.00.0030.00518.04
8.1.280.0140.00425.92
8.1.270.0160.00320.38
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0140.00722.19
8.1.230.0090.00322.69
8.1.220.0030.00617.76
8.1.210.0090.00018.85
8.1.200.0050.00517.35
8.1.190.0090.00017.35
8.1.180.0000.00818.10
8.1.170.0030.00517.62
8.1.160.0030.00721.98
8.1.150.0000.00718.81
8.1.140.0040.00417.50
8.1.130.0050.00217.54
8.1.120.0030.00517.55
8.1.110.0000.00717.43
8.1.100.0000.00817.55
8.1.90.0040.00417.44
8.1.80.0040.00417.58
8.1.70.0040.00517.55
8.1.60.0080.00017.68
8.1.50.0030.00617.46
8.1.40.0030.00617.55
8.1.30.0050.00317.67
8.1.20.0040.00417.64
8.1.10.0040.00417.71
8.1.00.0000.00817.61
8.0.300.0000.00720.07
8.0.290.0040.00416.88
8.0.280.0040.00418.50
8.0.270.0030.00317.27
8.0.260.0000.00717.02
8.0.250.0060.00017.14
8.0.240.0000.00717.14
8.0.230.0000.00716.90
8.0.220.0040.00416.96
8.0.210.0040.00416.91
8.0.200.0000.00617.04
8.0.190.0030.00617.08
8.0.180.0040.00417.02
8.0.170.0040.00417.00
8.0.160.0000.00816.81
8.0.150.0050.00316.93
8.0.140.0050.00316.92
8.0.130.0030.00313.44
8.0.120.0000.00716.84
8.0.110.0000.00716.87
8.0.100.0000.00717.06
8.0.90.0080.00016.86
8.0.80.0130.00716.95
8.0.70.0080.00016.98
8.0.60.0040.00417.09
8.0.50.0000.00817.00
8.0.30.0060.00917.27
8.0.20.0110.00717.40
8.0.10.0000.00816.89
8.0.00.0100.00816.87
7.4.330.0000.00615.04
7.4.320.0000.00716.64
7.4.300.0000.00616.73
7.4.290.0000.00716.73
7.4.280.0000.00816.74
7.4.270.0000.00716.76
7.4.260.0100.00016.70
7.4.250.0000.00816.72
7.4.240.0010.00716.58
7.4.230.0040.00416.67
7.4.220.0060.01216.83
7.4.210.0120.00316.55
7.4.200.0000.00716.77
7.4.160.0100.00716.62
7.4.150.0090.00917.40
7.4.140.0070.01317.86
7.4.130.0120.00616.58
7.4.120.0090.01116.58
7.4.110.0160.00616.70
7.4.100.0090.00916.58
7.4.90.0080.00816.65
7.4.80.0070.01119.39
7.4.70.0130.00616.65
7.4.60.0030.01316.66
7.4.50.0030.00616.60
7.4.40.0130.00316.57
7.4.30.0030.01516.49
7.4.00.0070.01015.29
7.3.330.0050.00013.24
7.3.320.0050.00013.18
7.3.310.0000.00716.17
7.3.300.0000.00616.31
7.3.290.0090.00716.36
7.3.280.0070.01116.45
7.3.270.0060.01017.40
7.3.260.0110.00716.63
7.3.250.0120.00916.42
7.3.240.0070.01316.69
7.3.230.0130.00616.55
7.3.210.0100.01316.34
7.3.200.0060.00919.39
7.3.190.0060.00916.48
7.3.180.0100.00616.54
7.3.170.0100.00716.77
7.3.160.0070.01516.81
7.3.10.0080.00416.82
7.3.00.0030.01016.76
7.2.330.0070.01016.60
7.2.320.0090.01316.80
7.2.310.0070.01116.66
7.2.300.0110.00516.69
7.2.290.0100.01316.81
7.2.130.0030.01017.20
7.2.120.0100.00317.02
7.2.110.0080.00417.09
7.2.100.0030.00917.01
7.2.90.0040.01217.20
7.2.80.0140.00417.00
7.2.70.0030.01017.13
7.2.60.0070.00716.88
7.2.50.0030.00917.10
7.2.40.0090.00616.93
7.2.30.0070.01016.75
7.2.20.0030.01016.86
7.2.10.0060.00316.98
7.2.00.0000.01617.22
7.1.250.0060.00616.21
7.1.200.0000.01315.98
7.1.70.0000.00717.30
7.1.60.0030.01017.54
7.1.50.0110.01117.21
7.1.00.0070.07322.38
7.0.200.0070.00416.72
7.0.60.0070.03720.07
7.0.50.0070.05317.90
7.0.40.0030.04320.21
7.0.30.2300.04720.16
7.0.20.0200.03720.20
7.0.10.0130.07720.02
7.0.00.0070.09020.01
5.6.280.0030.07321.09
5.6.210.0000.05020.47
5.6.200.0170.03318.23
5.6.190.0070.07720.60
5.6.180.0130.04320.39
5.6.170.0300.05720.42
5.6.160.0070.04320.48
5.6.150.0100.06318.12
5.6.140.0130.07018.18
5.6.130.0070.04718.18
5.6.120.0030.09321.13
5.6.110.0070.07720.98
5.6.100.0100.06321.01
5.6.90.0170.07320.96
5.6.80.0070.03320.34
5.5.350.0230.04020.30
5.5.340.0070.04018.02
5.5.330.0130.03720.12
5.5.320.0230.04320.22
5.5.310.0270.07020.18
5.5.300.0130.07718.00
5.5.290.0100.08017.98
5.5.280.0030.05320.86
5.5.270.0170.08320.87
5.5.260.0130.07020.82
5.5.250.0100.07720.79
5.5.240.0000.08720.22
5.4.450.0870.06019.63
5.4.440.0700.05719.54
5.4.430.0730.05319.63
5.4.420.0700.05319.41
5.4.410.0700.05719.41
5.4.400.0670.05719.04
5.4.390.0800.04718.91
5.4.380.0630.05719.07
5.4.370.0670.05018.84
5.4.360.0730.05018.86
5.4.350.0770.04319.05
5.4.340.0700.05019.03
5.4.320.0700.05319.19
5.4.310.0770.04319.30
5.4.300.0770.04319.32
5.4.290.0670.05319.22
5.4.280.0800.05019.07
5.4.270.0830.05319.16
5.4.260.0630.05719.16
5.4.250.0830.04019.25
5.4.240.0830.04719.01
5.4.230.0630.05719.16
5.4.220.0700.05719.07
5.4.210.0600.06019.00
5.4.200.0670.05316.58
5.4.190.0730.04718.98
5.4.180.0670.05319.04
5.4.170.0770.04719.16
5.4.160.0870.06318.97
5.4.150.0700.05319.15
5.4.140.0700.05016.57
5.4.130.0630.06016.23
5.4.120.0630.05316.57
5.4.110.0630.05316.25
5.4.100.0700.04716.48
5.4.90.0630.05316.42
5.4.80.0700.04316.22
5.4.70.0600.05716.39
5.4.60.0670.05316.14
5.4.50.0770.04316.38
5.4.40.0700.06016.18
5.4.30.0770.04016.46
5.4.20.0670.05016.38
5.4.10.0930.04716.51
5.4.00.0870.04015.98
5.3.290.0800.06314.57
5.3.280.0630.05714.52
5.3.270.0700.05014.50
5.3.260.0700.05014.66
5.3.250.0700.05014.53
5.3.240.0600.05714.61
5.3.230.0630.05714.65
5.3.220.0870.04714.67
5.3.210.0770.05314.61
5.3.200.0830.03714.46
5.3.190.0630.05714.62
5.3.180.0670.05314.47
5.3.170.0730.06714.57
5.3.160.0770.05314.54
5.3.150.0600.05714.52
5.3.140.0630.05314.55
5.3.130.0700.05014.45
5.3.120.0730.04714.48
5.3.110.0770.05314.59
5.3.100.0630.05313.99
5.3.90.0670.05013.91
5.3.80.0770.05013.93
5.3.70.0670.05014.11
5.3.60.0730.04313.89
5.3.50.0700.05013.85
5.3.40.0700.04714.04
5.3.30.0670.05713.95
5.3.20.0600.04313.66
5.3.10.0570.04713.73
5.3.00.0700.04313.70
5.2.170.0630.03011.29
5.2.160.0570.04011.07
5.2.150.0570.04011.14
5.2.140.0570.04011.09
5.2.130.0500.04311.21
5.2.120.0600.03711.24
5.2.110.0570.03710.99
5.2.100.0670.04711.11
5.2.90.0530.04011.08
5.2.80.0600.03711.09
5.2.70.0500.04311.00
5.2.60.0670.04710.96
5.2.50.0570.04011.02
5.2.40.0470.03711.11
5.2.30.0470.04311.09
5.2.20.0500.03710.81
5.2.10.0430.04010.76
5.2.00.0500.04010.67
5.1.60.0430.0339.83
5.1.50.0400.03710.02
5.1.40.0330.0379.89
5.1.30.0400.04710.31
5.1.20.0470.04010.30
5.1.10.0430.03710.04
5.1.00.0470.03710.09
5.0.50.0230.0308.64
5.0.40.0200.0308.34
5.0.30.0230.0408.06
5.0.20.0270.0238.09
5.0.10.0300.0208.16
5.0.00.0230.0438.31
4.4.90.0170.0235.82
4.4.80.0170.0205.84
4.4.70.0200.0175.79
4.4.60.0200.0175.82
4.4.50.0200.0175.84
4.4.40.0200.0335.80
4.4.30.0200.0235.77
4.4.20.0230.0205.87
4.4.10.0330.0235.88
4.4.00.0230.0335.79
4.3.110.0270.0235.67
4.3.100.0270.0135.78
4.3.90.0200.0235.66
4.3.80.0170.0375.80
4.3.70.0270.0105.78
4.3.60.0170.0205.79
4.3.50.0230.0235.76
4.3.40.0200.0305.64
4.3.30.0170.0204.49
4.3.20.0070.0234.55
4.3.10.0100.0234.43
4.3.00.0130.0237.09

preferences:
30.63 ms | 401 KiB | 5 Q