3v4l.org

run code in 300+ PHP versions simultaneously
<?php function stripDiacritics(string $string): string { return preg_replace('/[\x{0300}-\x{036f}]/u', '', Normalizer::normalize($string , Normalizer::FORM_D)); } var_dump(stripDiacritics('äüößà')); var_dump(stripDiacritics('c̳̻͚̻̩̻͉̯̄̏͑̋͆̎͐ͬ͑͌́͢h̵͔͈͍͇̪̯͇̞͖͇̜͉̪̪̤̙ͧͣ̓̐̓ͤ͋͒ͥ͑̆͒̓͋̑́͞ǎ̡̮̤̤̬͚̝͙̞͎̇ͧ͆͊ͅo̴̲̺͓̖͖͉̜̟̗̮̳͉̻͉̫̯̫̍̋̿̒͌̃̂͊̏̈̏̿ͧ́ͬ̌ͥ̇̓̀͢͜s̵̵̘̹̜̝̘̺̙̻̠̱͚̤͓͚̠͙̝͕͆̿̽ͥ̃͠͡'));

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.01117.00
8.3.60.0040.01117.10
8.3.50.0130.00718.45
8.3.40.0110.00319.17
8.3.30.0070.00718.88
8.3.20.0070.00024.18
8.3.10.0090.00024.66
8.3.00.0040.00426.16
8.2.180.0140.00725.92
8.2.170.0160.00019.05
8.2.160.0110.00322.96
8.2.150.0070.00025.66
8.2.140.0030.00524.66
8.2.130.0060.00326.16
8.2.120.0070.00019.98
8.2.110.0030.00621.14
8.2.100.0060.00618.03
8.2.90.0030.00618.22
8.2.80.0050.00519.29
8.2.70.0040.00417.88
8.2.60.0050.00318.05
8.2.50.0030.00618.07
8.2.40.0040.00418.35
8.2.30.0040.00418.13
8.2.20.0000.00718.13
8.2.10.0050.00219.25
8.2.00.0080.00019.25
8.1.280.0120.00325.92
8.1.270.0030.00624.09
8.1.260.0130.00626.35
8.1.250.0040.00428.09
8.1.240.0100.00319.54
8.1.230.0110.00021.10
8.1.220.0000.00817.77
8.1.210.0050.00318.89
8.1.200.0060.00317.48
8.1.190.0080.00017.48
8.1.180.0030.00618.10
8.1.170.0040.00419.08
8.1.160.0000.00718.92
8.1.150.0000.00718.85
8.1.140.0040.00418.83
8.1.130.0030.00320.21
8.1.120.0080.00017.67
8.1.110.0030.00517.59
8.1.100.0040.00417.59
8.1.90.0080.00017.62
8.1.80.0060.00617.63
8.1.70.0000.00717.65
8.1.60.0050.00317.85
8.1.50.0040.00417.72
8.1.40.0000.00817.75
8.1.30.0030.00917.97
8.1.20.0030.00617.91
8.1.10.0030.00617.76
8.1.00.0070.00417.54
8.0.300.0040.00420.16
8.0.290.0080.00017.00
8.0.280.0090.00018.47
8.0.270.0030.00318.32
8.0.260.0030.00320.40
8.0.250.0050.00317.25
8.0.240.0000.00817.11
8.0.230.0070.00017.23
8.0.220.0050.00217.04
8.0.210.0070.00017.17
8.0.200.0070.00017.32
8.0.190.0050.00317.23
8.0.180.0030.00617.19
8.0.170.0050.00317.35
8.0.160.0040.00417.13
8.0.150.0000.00717.05
8.0.140.0050.00317.23
8.0.130.0000.00513.31
8.0.120.0040.00417.10
8.0.110.0040.00417.02
8.0.100.0040.00417.22
8.0.90.0000.00717.17
8.0.80.0050.01217.19
8.0.70.0070.00017.04
8.0.60.0040.00417.09
8.0.50.0070.00017.15
8.0.30.0160.00817.53
8.0.20.0140.00517.47
8.0.10.0000.00817.16
8.0.00.0180.00916.92
7.4.330.0000.00415.55
7.4.320.0000.00716.74
7.4.300.0060.00316.88
7.4.290.0040.00416.91
7.4.280.0030.00516.90
7.4.270.0050.00216.93
7.4.260.0000.00613.21
7.4.250.0000.00816.91
7.4.240.0040.00416.91
7.4.230.0070.00016.73
7.4.220.0030.00317.05
7.4.210.0130.00416.94
7.4.200.0030.00317.04
7.4.130.0100.01016.86
7.4.120.0110.00816.80
7.4.110.0070.01016.99
7.4.100.0150.00316.64
7.4.90.0050.01417.01
7.4.80.0140.00716.77
7.4.70.0140.00816.74
7.4.60.0140.00716.91
7.4.50.0060.01616.75
7.4.40.0230.00316.84
7.4.30.0140.00916.59
7.4.20.0190.00616.73
7.4.10.0150.00716.84
7.4.00.0100.01316.82
7.3.330.0040.00416.81
7.3.320.0050.00013.33
7.3.310.0030.00316.52
7.3.300.0030.00316.81
7.3.290.0090.00716.70
7.3.280.0170.00416.71
7.3.260.0100.01316.68
7.3.230.0090.00916.91
7.3.210.0090.00916.77
7.3.200.0180.00316.64
7.3.190.0160.00416.70
7.3.180.0100.00916.66
7.3.170.0120.01216.75
7.3.160.0130.02016.66
7.3.150.0170.00616.75
7.3.140.0110.00816.50
7.3.130.0110.01016.68
7.3.120.0130.00716.77
7.3.110.0120.01216.54
7.3.100.0140.01116.59
7.3.90.0160.00816.63
7.3.80.0090.01316.97
7.3.70.0130.00616.79
7.3.60.0090.00916.90
7.3.50.0060.01216.66
7.3.40.0100.01016.84
7.3.30.0200.00316.73
7.3.20.0150.00916.88
7.3.10.0110.01116.75
7.3.00.0110.01116.95
7.2.330.0110.00816.64
7.2.320.0160.00516.94
7.2.310.0090.01216.63
7.2.300.0060.01817.04
7.2.290.0200.00916.78
7.2.280.0130.01016.83
7.2.270.0170.00816.77
7.2.260.0080.01316.65
7.2.250.0240.00316.92
7.2.240.0070.01616.91
7.2.230.0100.01116.80
7.2.220.0080.01416.79
7.2.210.0120.00916.79
7.2.200.0090.01316.91
7.2.190.0130.00716.75
7.2.180.0100.01016.81
7.2.170.0110.01116.71
7.2.160.0180.00716.59
7.2.150.0140.00916.91
7.2.140.0090.01216.80
7.2.130.0220.00316.75
7.2.120.0090.01516.77
7.2.110.0110.01216.77
7.2.100.0090.01416.80
7.2.90.0160.00916.75
7.2.80.0200.00716.73
7.2.70.0130.00716.67
7.2.60.0100.01216.74
7.2.50.0100.01016.82
7.2.40.0110.00816.91
7.2.30.0140.00816.76
7.2.20.0090.01616.69
7.2.10.0120.01416.90
7.2.00.0140.00716.81
7.0.00.0080.00515.38

preferences:
65.17 ms | 401 KiB | 5 Q