3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo setlocale(LC_ALL, 0); echo setlocale(LANG, 0); echo setlocale(LC_COLLATE, 0); echo setlocale(LC_NUMERIC, 0); $text = '%&/()"QEm software VaLidation V20ººººº'; $replacementChar = ' '; // replace non Unicode letters or digits by the replacement char $text = preg_replace('/[^\pL\d]+/u', $replacementChar, $text); echo $text."\n"; // trim replacement characters that ended up at the edges $text = trim($text, $replacementChar); // Force conversion to us-ascci, to take care of accented characters // and transliterate replacing unknown characters by a similar one $text = iconv('utf-8', 'us-ascii//TRANSLIT', $text); echo $text."\n"; $text = strtolower($text); // Remove unwanted characters due to transliteration // but keep the replacement character $text = preg_replace('/[^'.$replacementChar.'\w]+/', '', $text); echo $text."\n";

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.140.0100.01117.87
8.4.130.0100.01018.56
8.4.120.0110.00920.64
8.4.110.0070.01122.34
8.4.100.0150.00619.59
8.4.90.0130.00818.50
8.4.80.0060.00219.71
8.4.70.0050.00318.04
8.4.60.0110.00518.90
8.4.50.0120.00718.70
8.4.40.0050.00321.02
8.4.30.0000.00818.00
8.4.20.0100.00717.64
8.4.10.0130.00319.57
8.3.270.0130.00716.54
8.3.260.0060.00216.77
8.3.250.0090.00918.85
8.3.240.0060.01416.97
8.3.230.0110.00816.65
8.3.220.0050.00517.16
8.3.210.0120.00818.45
8.3.200.0060.00316.78
8.3.190.0130.00717.16
8.3.180.0050.00316.70
8.3.170.0110.00719.04
8.3.160.0060.00320.29
8.3.150.0110.00717.10
8.3.140.0050.00318.88
8.3.130.0080.00018.52
8.3.120.0080.00018.77
8.3.110.0050.00320.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0030.00618.43
8.3.70.0040.01116.50
8.3.60.0170.00316.63
8.3.50.0130.00722.01
8.3.40.0070.00718.98
8.3.30.0070.00718.84
8.3.20.0000.00819.05
8.3.10.0080.00023.66
8.3.00.0000.00922.37
8.2.290.0090.00920.25
8.2.280.0080.00618.52
8.2.270.0090.00918.93
8.2.260.0000.00816.75
8.2.250.0150.00018.27
8.2.240.0000.00917.04
8.2.230.0100.00322.58
8.2.220.0060.01237.54
8.2.210.0110.00326.77
8.2.200.0030.00716.75
8.2.190.0150.00316.63
8.2.180.0040.01118.34
8.2.170.0110.00322.96
8.2.160.0070.00719.51
8.2.150.0040.00424.18
8.2.140.0030.01224.66
8.2.130.0000.00822.12
8.2.120.0050.00326.35
8.2.110.0090.00022.13
8.2.100.0060.00617.91
8.2.90.0080.00018.98
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0050.00317.80
8.2.50.0040.00418.10
8.2.40.0000.00722.20
8.2.30.0030.00519.25
8.2.20.0040.00417.72
8.2.10.0000.00818.04
8.2.00.0080.00017.79
8.1.330.0130.00721.98
8.1.320.0110.00816.13
8.1.310.0030.00516.28
8.1.300.0070.01018.20
8.1.290.0070.00430.84
8.1.280.0170.00025.92
8.1.270.0100.01022.09
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0030.00620.91
8.1.230.0080.00320.84
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0030.00617.22
8.1.180.0040.00418.10
8.1.170.0040.00418.57
8.1.160.0000.00922.21
8.1.150.0000.00718.83
8.1.140.0080.00019.46
8.1.130.0000.00717.54
8.1.120.0040.00417.44
8.1.110.0050.00317.35
8.1.100.0000.00717.38
8.1.90.0070.00017.43
8.1.80.0030.00617.41
8.1.70.0080.00017.30
8.1.60.0040.00417.47
8.1.50.0050.00517.28
8.1.40.0000.00817.45
8.1.30.0030.00617.48
8.1.20.0040.00417.65
8.1.10.0000.00817.52
8.1.00.0060.00317.34
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.46
8.0.270.0070.00017.25
8.0.260.0000.00716.89
8.0.250.0030.00316.91
8.0.240.0030.00317.06
8.0.230.0000.00716.97
8.0.220.0030.00316.85
8.0.210.0000.00816.84
8.0.200.0000.00616.88
8.0.190.0030.00617.05
8.0.180.0000.00716.93
8.0.170.0000.00817.03
8.0.160.0040.00416.90
8.0.150.0040.00416.95
8.0.140.0000.00716.93
8.0.130.0000.00613.38
8.0.120.0080.00016.89
8.0.110.0070.00316.89
8.0.100.0000.00816.91
8.0.90.0000.00716.93
8.0.80.0090.00616.89
8.0.70.0040.00417.07
8.0.60.0040.00416.91
8.0.50.0040.00416.97
8.0.30.0100.01117.15
8.0.20.0120.00817.40
8.0.10.0030.00516.83
8.0.00.0060.01016.70
7.4.330.0050.00015.10
7.4.320.0000.00616.71
7.4.300.0030.00316.78
7.4.290.0000.00716.89
7.4.280.0040.00416.92
7.4.270.0070.00016.88
7.4.260.0030.00316.71
7.4.250.0000.00916.87
7.4.240.0040.00416.91
7.4.230.0080.00017.10
7.4.220.0130.01016.94
7.4.210.0090.00716.92
7.4.200.0040.00416.83
7.4.160.0090.01116.84
7.4.150.0090.01217.40
7.4.140.0060.01917.86
7.4.130.0110.01116.98
7.4.120.0150.00516.96
7.4.110.0070.01416.99
7.4.100.0050.01516.83
7.4.90.0180.01116.89
7.4.80.0120.00919.39
7.4.70.0100.01017.01
7.4.60.0080.01616.83
7.4.50.0100.00916.94
7.4.40.0090.01016.73
7.4.30.0060.01916.84
7.4.20.0090.01516.60
7.4.10.0160.01316.62
7.4.00.0080.01115.86
7.3.330.0000.00613.20
7.3.320.0030.00313.51
7.3.310.0060.00316.54
7.3.300.0040.00416.69
7.3.290.0000.00816.49
7.3.280.0100.01016.63
7.3.270.0150.00517.40
7.3.260.0130.01116.73
7.3.250.0120.00916.75
7.3.240.0090.01616.75
7.3.230.0080.01216.90
7.3.210.0070.01116.75
7.3.200.0070.01616.61
7.3.190.0120.00716.72
7.3.180.0120.00816.74
7.3.170.0120.00916.63
7.3.160.0070.01516.85
7.3.150.0090.01416.76
7.3.140.0150.00916.72
7.3.130.0170.00916.92
7.3.120.0150.00916.84
7.3.110.0160.00716.71
7.3.100.0120.00916.93
7.3.90.0050.01516.73
7.3.80.0000.02016.69
7.3.70.0140.01116.57
7.3.60.0110.00716.72
7.3.50.0120.00616.56
7.3.40.0030.01616.68
7.3.30.0110.00816.38
7.3.20.0100.01116.47
7.3.10.0110.00616.57
7.3.00.0070.00916.83
7.2.330.0130.01016.95
7.2.320.0090.01816.97
7.2.310.0120.00816.95
7.2.300.0120.00816.97
7.2.290.0100.01116.97
7.2.280.0090.01217.03
7.2.270.0100.01716.81
7.2.260.0160.01116.98
7.2.250.0110.01116.84
7.2.240.0120.00816.84
7.2.230.0160.01016.87
7.2.220.0100.01116.99
7.2.210.0140.01116.82
7.2.200.0070.02017.02
7.2.190.0050.01416.77
7.2.180.0030.01717.09
7.2.170.0040.01516.82
7.2.160.0130.00716.73
7.2.150.0190.00316.93
7.2.140.0070.01516.75
7.2.130.0080.00817.03
7.2.120.0090.00717.09
7.2.110.0070.01117.04
7.2.100.0050.01517.05
7.2.90.0100.00917.06
7.2.80.0090.00817.06
7.2.70.0090.01016.96
7.2.60.0080.01017.10
7.2.50.0050.01416.96
7.2.40.0070.01217.22
7.2.30.0110.00616.92
7.2.20.0140.00317.06
7.2.10.0070.01417.12
7.2.00.0100.00718.09
7.1.330.0260.01215.63
7.1.320.0090.01215.98
7.1.310.0100.01615.79
7.1.300.0060.01215.77
7.1.290.0190.00015.65
7.1.280.0070.01115.69
7.1.270.0120.00815.47
7.1.260.0140.00715.66
7.1.250.0050.01315.90
7.1.240.0160.00215.55
7.1.230.0070.01415.69
7.1.220.0090.00915.76
7.1.210.0090.01115.75
7.1.200.0090.01015.81
7.1.190.0210.01215.93
7.1.180.0090.01515.89
7.1.170.0060.01615.68
7.1.160.0030.01715.61
7.1.150.0260.01215.90
7.1.140.0180.01215.68
7.1.130.0200.01015.65
7.1.120.0110.00715.60
7.1.110.0080.01115.54
7.1.100.0080.01317.23
7.1.90.0000.01815.80
7.1.80.0060.01415.63
7.1.70.0110.00516.68
7.1.60.0080.01016.48
7.1.50.0070.01516.50
7.1.40.0000.01715.94
7.1.30.0130.01015.82
7.1.20.0050.01315.85
7.1.10.0150.01215.90
7.1.00.0100.04019.21
7.0.330.0050.01315.43
7.0.320.0190.01615.62
7.0.310.0130.00615.50
7.0.300.0160.00615.58
7.0.290.0420.00615.32
7.0.280.0240.00415.43
7.0.270.0070.01415.49
7.0.260.0090.00915.18
7.0.250.0110.00815.33
7.0.240.0110.00815.39
7.0.230.0110.00715.47
7.0.220.0140.00815.48
7.0.210.0150.01215.26
7.0.200.0120.00915.49
7.0.190.0140.00615.54
7.0.180.0180.00715.60
7.0.170.0110.01415.43
7.0.160.0100.01615.61
7.0.150.0170.00815.64
7.0.140.0090.00915.51
7.0.130.0100.00815.59
7.0.120.0040.01415.62
7.0.110.0080.01115.66
7.0.100.0100.03317.72
7.0.90.0100.03817.70
7.0.80.0270.03317.81
7.0.70.0130.03117.81
7.0.60.0280.03517.73
7.0.50.0190.04417.95
7.0.40.0220.04018.02
7.0.30.0190.04618.08
7.0.20.0170.04218.03
7.0.10.0080.05018.07
7.0.00.0130.04517.97
5.6.400.0160.00715.93
5.6.390.0070.01315.79
5.6.380.0100.01016.39
5.6.370.0130.01316.12
5.6.360.0060.01916.09
5.6.350.0270.00316.21
5.6.340.0130.01916.25
5.6.330.0150.00816.05
5.6.320.0040.01615.96
5.6.310.0140.00915.87
5.6.300.0060.02115.95
5.6.290.0090.01216.30
5.6.280.0060.01416.11
5.6.270.0060.01516.20
5.6.260.0120.00915.89
5.6.250.0120.03518.31
5.6.240.0110.03718.23
5.6.230.0070.04018.41
5.6.220.0130.03818.40
5.6.210.0230.03818.37
5.6.200.0110.05418.69
5.6.190.0190.04218.69
5.6.180.0140.04118.51
5.6.170.0080.04818.70
5.6.160.0090.04218.56
5.6.150.0170.03518.55
5.6.140.0170.03718.62
5.6.130.0100.05118.61
5.6.120.0140.04418.65
5.6.110.0130.04318.58
5.6.100.0240.04718.70
5.6.90.0120.04218.61
5.6.80.0140.03918.32
5.6.70.0100.04118.31
5.6.60.0100.03618.24
5.6.50.0140.03418.28
5.6.40.0150.04218.40
5.6.30.0070.04618.26
5.6.20.0080.05118.30
5.6.10.0140.03518.24
5.6.00.0070.03618.29

preferences:
31.91 ms | 403 KiB | 5 Q