3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'bla'; 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.60.0100.00616.63
8.3.50.0080.00616.67
8.3.40.0140.00018.87
8.3.30.0070.00718.88
8.3.20.0080.00020.34
8.3.10.0060.00321.73
8.3.00.0040.00417.78
8.2.180.0070.00716.63
8.2.170.0070.00722.96
8.2.160.0070.00720.35
8.2.150.0000.00724.18
8.2.140.0030.00524.66
8.2.130.0000.00820.52
8.2.120.0050.00226.35
8.2.110.0100.00021.00
8.2.100.0040.00817.91
8.2.90.0050.00319.17
8.2.80.0060.00317.97
8.2.70.0060.00317.88
8.2.60.0050.00317.77
8.2.50.0090.00018.10
8.2.40.0050.00322.14
8.2.30.0080.00020.98
8.2.20.0000.00718.04
8.2.10.0000.00718.00
8.2.00.0040.00417.91
8.1.280.0070.01425.92
8.1.270.0070.00022.05
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0100.00023.92
8.1.230.0080.00419.16
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0030.00517.35
8.1.180.0050.00318.10
8.1.170.0050.00318.69
8.1.160.0000.00719.02
8.1.150.0000.00720.54
8.1.140.0040.00419.52
8.1.130.0070.00018.81
8.1.120.0030.00517.48
8.1.110.0040.00417.53
8.1.100.0040.00417.55
8.1.90.0040.00417.54
8.1.80.0040.00417.54
8.1.70.0000.00817.44
8.1.60.0050.00317.62
8.1.50.0040.00417.62
8.1.40.0000.00717.43
8.1.30.0000.00817.68
8.1.20.0050.00217.71
8.1.10.0000.00717.53
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0040.00418.46
8.0.270.0100.00017.28
8.0.260.0000.00916.96
8.0.250.0080.00017.13
8.0.240.0040.00417.01
8.0.230.0060.00317.07
8.0.220.0070.00016.94
8.0.210.0040.00416.88
8.0.200.0000.00717.04
8.0.190.0080.00017.05
8.0.180.0040.00416.89
8.0.170.0040.00417.02
8.0.160.0070.00017.00
8.0.150.0000.00716.91
8.0.140.0080.00016.93
8.0.130.0030.00313.39
8.0.120.0020.00516.99
8.0.110.0040.00416.84
8.0.100.0000.00717.01
8.0.90.0000.00816.84
8.0.80.0120.00316.95
8.0.70.0060.00316.75
8.0.60.0000.00817.04
8.0.50.0000.00816.91
8.0.30.0090.01117.19
8.0.20.0090.01217.40
8.0.10.0070.00017.04
8.0.00.0110.00717.12
7.4.330.0060.00015.55
7.4.320.0000.00716.76
7.4.300.0030.00316.54
7.4.290.0030.00316.73
7.4.280.0030.00416.63
7.4.270.0070.00016.55
7.4.260.0030.00313.35
7.4.250.0080.00016.61
7.4.240.0000.00716.75
7.4.230.0000.00716.85
7.4.220.0090.01516.70
7.4.210.0080.00716.72
7.4.200.0040.00416.54
7.4.160.0110.00616.58
7.4.150.0110.00517.40
7.4.140.0090.01417.86
7.4.130.0120.00916.55
7.4.120.0100.01316.56
7.3.330.0050.00013.07
7.3.320.0020.00213.16
7.3.310.0040.00416.24
7.3.300.0040.00416.33
7.3.290.0030.00316.26
7.3.280.0060.01016.29
7.3.270.0110.00717.40
7.3.260.0090.00816.38
7.3.250.0140.00516.56
7.3.240.0110.00816.33
7.1.30.2930.01732.82

preferences:
62.18 ms | 400 KiB | 5 Q