3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = 'my file:name?w[ith/illegal*cha]racters\"that<are>not\allowed|here.txt'; $newName = preg_replace('/[\?\/:|<>*\[\]\(\)\$%\{\}@~\s]/', '_', $name); var_dump($newName);

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.4.20.0110.01121.43
8.4.10.0060.00319.44
8.3.150.0090.00917.00
8.3.140.0090.00916.58
8.3.130.0390.00316.44
8.3.120.0300.01016.68
8.3.110.0360.00416.48
8.3.100.0410.00716.60
8.3.90.0370.00916.48
8.3.80.0380.00916.83
8.3.70.0440.00316.41
8.3.60.0300.00616.24
8.3.50.0210.00016.53
8.3.40.0290.00317.52
8.3.30.0230.00617.53
8.3.20.0170.00417.39
8.3.10.0120.00617.56
8.3.00.0100.01017.59
8.2.270.0090.00916.63
8.2.260.0040.01117.02
8.2.250.0230.01016.56
8.2.240.0330.00616.51
8.2.230.0130.00416.64
8.2.220.0170.00816.46
8.2.210.0160.01016.29
8.2.200.0190.00616.48
8.2.190.0180.00416.45
8.2.180.0140.00616.64
8.2.170.0340.00617.68
8.2.160.0340.00917.41
8.2.150.0380.00417.50
8.2.140.0470.00017.22
8.2.130.0330.01317.53
8.2.120.0260.01317.39
8.2.110.0340.01017.25
8.2.100.0280.01217.18
8.2.90.0250.00817.70
8.2.80.0280.01017.46
8.2.70.0330.00417.50
8.2.60.0350.00317.56
8.2.50.0290.01117.52
8.2.40.0340.00017.51
8.2.30.0200.01017.46
8.2.20.0290.00417.57
8.2.10.0240.00917.73
8.2.00.0180.01417.64
8.1.310.0040.01516.63
8.1.300.0290.01116.18
8.1.290.0290.01016.18
8.1.280.0360.00616.18
8.1.270.0280.00817.07
8.1.260.0270.00717.35
8.1.250.0210.01217.40
8.1.240.0390.00017.26
8.1.230.0340.00417.11
8.1.220.0210.01517.46
8.1.210.0320.00817.09
8.1.200.0340.00717.11
8.1.190.0230.00617.23
8.1.180.0390.00416.90
8.1.170.0270.00917.31
8.1.160.0260.01117.38
8.1.150.0310.00517.34
8.1.140.0270.00917.29
8.1.130.0310.00417.01
8.1.120.0240.01217.44
8.1.110.0310.00517.27
8.1.100.0220.01417.37
8.1.90.0280.00817.16
8.1.80.0250.01117.30
8.1.70.0360.00017.33
8.1.60.0330.00717.49
8.1.50.0320.01017.47
8.1.40.0310.00917.30
8.1.30.0330.00717.23
8.1.20.0390.00417.55
8.1.10.0390.00017.07
8.1.00.0190.00516.94

preferences:
26.57 ms | 403 KiB | 5 Q