3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = array( 'this is a string', 'this is $ a string', 'this is 12 string', 'this is $12.99 string', ); foreach ($strings as $string) { var_dump(strtolower(preg_replace('#[^a-z0-9]#', '', preg_replace('#[\ +]#', '-', $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.0090.00918.43
8.3.50.0100.00821.39
8.3.40.0140.00018.78
8.3.30.0110.00320.16
8.3.20.0040.00420.21
8.3.10.0020.00522.14
8.3.00.0040.00422.23
8.2.180.0070.01416.75
8.2.170.0040.01122.96
8.2.160.0110.00420.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.61
8.2.110.0000.00922.25
8.2.100.0040.00818.03
8.2.90.0020.00519.24
8.2.80.0040.00419.30
8.2.70.0030.00617.63
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0000.00718.06
8.2.20.0050.00217.79
8.2.10.0070.00017.89
8.2.00.0030.00617.89
8.1.280.0070.00725.92
8.1.270.0040.01424.66
8.1.260.0000.00826.35
8.1.250.0050.00228.09
8.1.240.0040.00422.01
8.1.230.0030.00719.02
8.1.220.0050.00317.76
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0030.00517.66
8.1.180.0090.00318.10
8.1.170.0000.00818.68
8.1.160.0030.00318.93
8.1.150.0040.00418.74
8.1.140.0000.00717.63
8.1.130.0000.00717.89
8.1.120.0040.00417.57
8.1.110.0000.00717.50
8.1.100.0000.00717.66
8.1.90.0000.01017.63
8.1.80.0000.00717.50
8.1.70.0030.00317.62
8.1.60.0030.00517.76
8.1.50.0000.00717.66
8.1.40.0040.00417.61
8.1.30.0000.00717.77
8.1.20.0000.00917.87
8.1.10.0000.00817.47
8.1.00.0040.00417.54
8.0.300.0000.00718.77
8.0.290.0000.00717.16
8.0.280.0000.00718.46
8.0.270.0030.00317.28
8.0.260.0000.00617.00
8.0.250.0000.00717.14
8.0.240.0000.01117.15
8.0.230.0040.00417.01
8.0.220.0040.00416.99
8.0.210.0040.00417.02
8.0.200.0030.00317.08
8.0.190.0030.00516.98
8.0.180.0040.00416.95
8.0.170.0040.00416.99
8.0.160.0040.00417.06
8.0.150.0030.00317.02
8.0.140.0040.00417.03
8.0.130.0030.00313.48
8.0.120.0030.00617.06
8.0.110.0080.00016.96
8.0.100.0050.00217.13
8.0.90.0050.00216.92
8.0.80.0090.00617.12
8.0.70.0030.00516.97
8.0.60.0000.00717.11
8.0.50.0070.00016.96
8.0.30.0100.01317.28
8.0.20.0120.00617.40
8.0.10.0050.00217.15
8.0.00.0070.01316.82
7.4.330.0050.00015.00
7.4.320.0000.00716.91
7.4.300.0060.00016.71
7.4.290.0000.00816.68
7.4.280.0030.00516.81
7.4.270.0030.00316.72
7.4.260.0060.00313.61
7.4.250.0040.00416.82
7.4.240.0030.00416.78
7.4.230.0000.00716.98
7.4.220.0110.01516.76
7.4.210.0040.01316.79
7.4.200.0050.00316.96
7.4.190.0060.00316.66
7.4.160.0090.00916.83
7.4.150.0150.00317.40
7.4.140.0140.00717.86
7.4.130.0060.01116.72
7.4.120.0120.00516.67
7.4.110.0030.01416.68
7.4.100.0090.01216.64
7.4.90.0080.01116.57
7.4.80.0000.01719.39
7.4.70.0030.01816.57
7.4.60.0080.00816.54
7.4.50.0040.00416.89
7.4.40.0040.01422.77
7.4.30.0000.02716.61
7.4.00.0060.00915.15
7.3.330.0000.00513.16
7.3.320.0000.00513.32
7.3.310.0070.00016.46
7.3.300.0070.00016.30
7.3.290.0090.00616.47
7.3.280.0080.00716.40
7.3.270.0050.01317.40
7.3.260.0130.00516.66
7.3.250.0080.01216.40
7.3.240.0080.00816.70
7.3.230.0100.01016.39
7.3.210.0100.01716.74
7.3.200.0160.00016.61
7.3.190.0040.01816.53
7.3.180.0060.00916.42
7.3.170.0130.00316.42
7.3.160.0110.00716.63
7.3.120.0030.01215.16
7.2.330.0070.01116.64
7.2.320.0110.00616.76
7.2.310.0060.01216.70
7.2.300.0070.01016.79
7.2.290.0130.01416.82
7.2.110.0400.00716.44
7.2.60.0040.00716.74
7.2.00.0060.00919.23
7.1.200.0040.00815.97
7.1.100.0030.01017.84
7.1.70.0000.00917.39
7.1.60.0040.02119.32
7.1.50.0030.02117.10
7.1.00.0030.03322.52
7.0.200.0110.00715.06
7.0.140.0030.07322.00
7.0.60.0130.03719.92
7.0.50.0070.05017.88
7.0.40.0130.08320.14
7.0.30.0200.05020.02
7.0.20.0300.07720.21
7.0.10.0130.04720.18
7.0.00.0170.05320.18
5.6.280.0030.07320.85
5.6.210.0100.07020.51
5.6.200.0130.07018.21
5.6.190.0100.03720.63
5.6.180.0230.05720.40
5.6.170.0200.05320.50
5.6.160.0130.07320.49
5.6.150.0100.04318.17
5.6.140.0170.07318.21
5.6.130.0100.03718.14
5.6.120.0030.04021.12
5.6.110.0200.07020.96
5.6.100.0070.08321.13
5.6.90.0130.07721.07
5.6.80.0070.05320.40
5.6.70.0330.05720.37
5.5.350.0100.07020.44
5.5.340.0000.04017.96
5.5.330.0070.05020.19
5.5.320.0200.05020.45
5.5.310.0270.07720.23
5.5.300.0030.04017.88
5.5.290.0070.06317.91
5.5.280.0100.04020.89
5.5.270.0100.08320.85
5.5.260.0130.08020.84
5.5.250.0030.08720.71
5.5.240.0130.05020.00
5.4.450.0070.08019.40
5.4.440.0030.07319.41
5.4.430.0200.03719.26
5.4.420.0030.05719.45
5.4.410.0070.08019.33
5.4.400.0000.05318.79
5.4.390.0030.07019.09
5.4.380.0000.06318.80
5.4.370.0000.04319.13
5.4.360.0100.07318.90
5.4.350.0030.06718.92
5.4.340.0100.05718.93
5.4.320.0000.06719.08
5.4.310.0000.05319.08
5.4.300.0070.06018.88
5.4.290.0100.06319.08
5.4.280.0000.08019.13
5.4.270.0030.04719.09
5.4.260.0000.06019.23
5.4.250.0030.08019.23
5.4.240.0030.04319.23
5.4.230.0030.06318.91
5.4.220.0100.06719.21
5.4.210.0000.04319.08
5.4.200.0030.07318.80
5.4.190.0070.05719.03
5.4.180.0030.04318.80
5.4.170.0070.06319.07
5.4.160.0000.09019.07
5.4.150.0200.06319.19
5.4.140.0030.07016.33
5.4.130.0030.05016.25
5.4.120.0070.07016.44
5.4.110.0100.07716.49
5.4.100.0070.07316.06
5.4.90.0030.07316.39
5.4.80.0130.04716.05
5.4.70.0130.04316.48
5.4.60.0200.06716.31
5.4.50.0100.06716.03
5.4.40.0100.06316.03
5.4.30.0130.07016.18
5.4.20.0100.05316.38
5.4.10.0130.06316.36
5.4.00.0170.04015.75
5.3.290.0000.04714.61
5.3.280.0000.08014.45
5.3.270.0000.08314.59
5.3.260.0130.05014.63
5.3.250.0100.06014.44
5.3.240.0030.07014.48
5.3.230.0030.07314.63
5.3.220.0100.06014.47
5.3.210.0030.07714.42
5.3.200.0070.07314.42
5.3.190.0030.05714.40
5.3.180.0200.07314.45
5.3.170.0130.07314.42
5.3.160.0130.06014.41
5.3.150.0170.04714.39
5.3.140.0200.07314.39
5.3.130.0130.07014.42
5.3.120.0300.06314.38
5.3.110.0170.07014.41
5.3.100.0070.08313.87
5.3.90.0100.07313.89
5.3.80.0230.06313.96
5.3.70.0230.05313.83
5.3.60.0170.04013.86
5.3.50.0070.05013.77
5.3.40.0170.03713.89
5.3.30.0100.03713.78
5.3.20.0030.05013.53
5.3.10.0100.06713.56
5.3.00.0000.07313.43
5.2.170.0200.05712.10
5.2.160.0000.05012.10
5.2.150.0130.06312.10
5.2.140.0070.04712.10
5.2.130.0000.04312.10
5.2.120.0000.05012.10
5.2.110.0070.05312.10
5.2.100.0030.06012.10
5.2.90.0030.04712.10
5.2.80.0030.05712.10
5.2.70.0070.05012.10
5.2.60.0070.06312.10
5.2.50.0000.06012.10
5.2.40.0070.05012.10
5.2.30.0000.05012.10
5.2.20.0030.05712.10
5.2.10.0070.05712.10
5.2.00.0070.04712.10
5.1.60.0000.03312.10
5.1.50.0100.04012.10
5.1.40.0000.03312.10
5.1.30.0070.03312.10
5.1.20.0030.05712.10
5.1.10.0000.04712.10
5.1.00.0000.05712.10
5.0.50.0000.04012.10
5.0.40.0030.02012.10
5.0.30.0030.06712.10
5.0.20.0000.03712.10
5.0.10.0030.04312.10
5.0.00.0030.05012.10
4.4.90.0000.03312.10
4.4.80.0000.03712.10
4.4.70.0030.02312.10
4.4.60.0000.03312.10
4.4.50.0030.03012.10
4.4.40.0070.05012.10
4.4.30.0000.03712.10
4.4.20.0030.03012.10
4.4.10.0030.03712.10
4.4.00.0000.03012.10
4.3.110.0000.04012.10
4.3.100.0000.03312.10
4.3.90.0000.02012.10
4.3.80.0000.04012.10
4.3.70.0030.03712.10
4.3.60.0030.03012.10
4.3.50.0030.02312.10
4.3.40.0070.05312.10
4.3.30.0100.01012.10
4.3.20.0000.04012.10
4.3.10.0070.02012.10
4.3.00.0030.03312.10

preferences:
42.72 ms | 401 KiB | 5 Q