3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '+421 917 982 116'; echo preg_replace('/\s+/', '', $string);

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.40.0220.00018.92
8.3.30.0110.00418.84
8.3.20.0160.00320.39
8.3.10.0030.00621.72
8.3.00.0110.00422.01
8.2.170.0040.01122.96
8.2.160.0170.00020.47
8.2.150.0070.01424.18
8.2.140.0030.00524.66
8.2.130.0090.00021.10
8.2.120.0050.00226.35
8.2.110.0070.00422.16
8.2.100.0070.00417.78
8.2.90.0030.00619.89
8.2.80.0000.00819.48
8.2.70.0040.00417.88
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0040.00418.13
8.2.20.0040.00418.08
8.2.10.0000.00818.08
8.2.00.0000.00717.89
8.1.270.0150.00422.19
8.1.260.0140.00326.35
8.1.250.0050.00328.09
8.1.240.0110.00020.60
8.1.230.0000.01120.85
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0060.00317.25
8.1.190.0000.00917.35
8.1.180.0090.00018.10
8.1.170.0040.00418.89
8.1.160.0030.00618.83
8.1.150.0000.00818.75
8.1.140.0040.00419.52
8.1.130.0030.00518.85
8.1.120.0070.00017.59
8.1.110.0040.00417.42
8.1.100.0000.00717.54
8.1.90.0000.00717.48
8.1.80.0000.00917.47
8.1.70.0040.00417.59
8.1.60.0040.00417.66
8.1.50.0070.00417.50
8.1.40.0000.00717.60
8.1.30.0030.00517.67
8.1.20.0000.00717.56
8.1.10.0090.00017.63
8.1.00.0080.00017.48
8.0.300.0050.00319.91
8.0.290.0080.00016.75
8.0.280.0070.00018.36
8.0.270.0070.00017.28
8.0.260.0030.00317.02
8.0.250.0080.00017.11
8.0.240.0040.00617.09
8.0.230.0000.00716.91
8.0.220.0040.00416.99
8.0.210.0070.00016.98
8.0.200.0000.00616.91
8.0.190.0080.00017.04
8.0.180.0040.00417.00
8.0.170.0000.00916.94
8.0.160.0050.00316.93
8.0.150.0070.00016.88
8.0.140.0040.00416.81
8.0.130.0030.00313.43
8.0.120.0040.00416.90
8.0.110.0070.00016.84
8.0.100.0000.00817.01
8.0.90.0040.00416.91
8.0.80.0110.00716.93
8.0.70.0040.00416.94
8.0.60.0000.00816.94
8.0.50.0000.00717.00
8.0.30.0070.01117.07
8.0.20.0090.01017.45
8.0.10.0050.00316.98
8.0.00.0070.01116.99
7.4.330.0000.00515.55
7.4.320.0000.00616.73
7.4.300.0000.00716.66
7.4.290.0030.00316.50
7.4.280.0070.00016.73
7.4.270.0060.00016.79
7.4.260.0040.00416.73
7.4.250.0040.00416.54
7.4.240.0070.00016.75
7.4.230.0030.00316.70
7.4.220.0090.00916.77
7.4.210.0080.00916.60
7.4.200.0000.00716.50
7.4.160.0120.00716.65
7.4.150.0060.01317.40
7.4.140.0130.00717.86
7.4.130.0130.00516.63
7.4.120.0130.00916.66
7.3.330.0020.00213.04
7.3.320.0050.00013.12
7.3.310.0030.00316.14
7.3.300.0000.00716.27
7.3.290.0030.00316.27
7.3.280.0110.00616.26
7.3.270.0070.01117.40
7.3.260.0110.00916.61
7.3.250.0100.01016.34
7.3.240.0120.00416.59
7.1.40.0200.01034.51

preferences:
42 ms | 400 KiB | 5 Q