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('#[\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.40.0070.00718.76
8.3.30.0030.01020.21
8.3.20.0070.00020.21
8.3.10.0040.00421.97
8.3.00.0040.00422.36
8.2.170.0070.00722.96
8.2.160.0140.00722.38
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00319.49
8.2.110.0060.00322.08
8.2.100.0040.00817.84
8.2.90.0040.00419.22
8.2.80.0050.00319.14
8.2.70.0000.01017.75
8.2.60.0000.00917.93
8.2.50.0050.00318.07
8.2.40.0060.00318.22
8.2.30.0000.00718.01
8.2.20.0050.00217.80
8.2.10.0040.00417.82
8.2.00.0000.00717.81
8.1.270.0080.00024.66
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0090.00022.24
8.1.230.0070.00319.00
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0090.00017.36
8.1.190.0040.00417.51
8.1.180.0000.00919.13
8.1.170.0040.00418.60
8.1.160.0020.00518.78
8.1.150.0000.00818.83
8.1.140.0040.00417.55
8.1.130.0030.00517.85
8.1.120.0070.00017.62
8.1.110.0000.00717.49
8.1.100.0000.00717.48
8.1.90.0040.00417.66
8.1.80.0000.00717.53
8.1.70.0000.00717.51
8.1.60.0050.00317.74
8.1.50.0030.00517.64
8.1.40.0040.00417.68
8.1.30.0040.00417.63
8.1.20.0050.00317.85
8.1.10.0070.00017.62
8.1.00.0070.00017.52
8.0.300.0070.00018.77
8.0.290.0040.00417.15
8.0.280.0070.00018.46
8.0.270.0020.00517.19
8.0.260.0040.00417.07
8.0.250.0030.00317.07
8.0.240.0100.00017.05
8.0.230.0000.00717.07
8.0.220.0030.00317.08
8.0.210.0070.00017.12
8.0.200.0000.00616.95
8.0.190.0050.00316.98
8.0.180.0040.00417.07
8.0.170.0040.00417.11
8.0.160.0030.00317.01
8.0.150.0000.00716.97
8.0.140.0060.00316.98
8.0.130.0030.00313.55
8.0.120.0060.00316.90
8.0.110.0000.00717.06
8.0.100.0050.00216.99
8.0.90.0040.00417.02
8.0.80.0060.00917.09
8.0.70.0080.00016.91
8.0.60.0000.00816.92
8.0.50.0000.00817.09
8.0.30.0110.01017.24
8.0.20.0160.00717.42
8.0.10.0040.00417.17
8.0.00.0130.01016.85
7.4.330.0040.00315.00
7.4.320.0030.00316.79
7.4.300.0030.00316.86
7.4.290.0040.00416.85
7.4.280.0030.00316.60
7.4.270.0030.00316.62
7.4.260.0110.00013.50
7.4.250.0030.00516.59
7.4.240.0040.00416.77
7.4.230.0030.00316.83
7.4.220.0110.01416.76
7.4.210.0090.00516.84
7.4.200.0000.00716.91
7.4.190.0060.00316.66
7.4.160.0140.00316.72
7.4.150.0040.01617.40
7.4.140.0120.00617.86
7.4.130.0060.01016.71
7.4.120.0150.00216.68
7.4.110.0100.00616.64
7.4.100.0110.00716.46
7.4.90.0100.00616.92
7.4.80.0030.01419.39
7.4.70.0100.00716.69
7.4.60.0090.00916.60
7.4.50.0030.00616.79
7.4.40.0030.01422.77
7.4.30.0060.01516.41
7.4.00.0100.00715.34
7.3.330.0050.00013.32
7.3.320.0000.00613.24
7.3.310.0040.00416.41
7.3.300.0070.00016.45
7.3.290.0080.00616.38
7.3.280.0070.00916.40
7.3.270.0110.00617.40
7.3.260.0040.01216.79
7.3.250.0060.01316.56
7.3.240.0080.00816.52
7.3.230.0110.00616.75
7.3.210.0070.01016.45
7.3.200.0130.00319.39
7.3.190.0060.01716.84
7.3.180.0090.00616.25
7.3.170.0080.00816.69
7.3.160.0070.01316.68
7.3.120.0060.01014.92
7.3.110.0040.01115.15
7.3.100.0040.00814.54
7.3.90.0060.00614.86
7.3.80.0070.00714.88
7.3.70.0090.00614.88
7.3.60.0110.00314.92
7.3.50.0100.00314.81
7.3.40.0030.01414.90
7.3.30.0140.00414.99
7.3.20.0000.01516.61
7.3.10.0060.00716.73
7.3.00.0080.00516.71
7.2.330.0120.00816.70
7.2.320.0040.01616.84
7.2.310.0180.00016.79
7.2.300.0040.01216.74
7.2.290.0130.00816.78
7.2.240.0100.00315.16
7.2.230.0030.01315.27
7.2.220.0100.00715.16
7.2.210.0070.00715.07
7.2.200.0130.00315.03
7.2.190.0040.01214.98
7.2.180.0070.00414.99
7.2.170.0060.00914.86
7.2.160.0070.00714.90
7.2.150.0120.00316.96
7.2.140.0030.01316.99
7.2.130.0020.01316.91
7.2.120.0050.00916.95
7.2.110.0100.00716.96
7.2.100.0060.00817.03
7.2.90.0060.00816.97
7.2.80.0070.00917.01
7.2.70.0100.00317.04
7.2.60.0050.00717.00
7.2.50.0070.00817.04
7.2.40.0030.01017.10
7.2.30.0040.01016.95
7.2.20.0050.00717.01
7.2.10.0040.01017.13
7.2.00.0030.00817.65
7.1.330.0070.01015.66
7.1.320.0080.00416.03
7.1.310.0070.00316.00
7.1.300.0060.00615.74
7.1.290.0070.00715.82
7.1.280.0080.00415.75
7.1.270.0030.01416.04
7.1.260.0030.00715.77
7.1.250.0140.00615.95
7.1.240.0030.01416.04
7.1.230.0030.01215.82
7.1.220.0000.00915.98
7.1.210.0000.01215.82
7.1.200.0110.00316.11
7.1.190.0090.00615.66
7.1.180.0030.00616.09
7.1.170.0110.00316.10
7.1.160.0130.01015.75
7.1.150.0030.01315.96
7.1.140.0030.01316.05
7.1.130.0030.00615.81
7.1.120.0060.00916.11
7.1.110.0000.01715.63
7.1.100.0080.00917.22
7.1.90.0100.01015.84
7.1.80.0000.01415.77
7.1.70.0050.00516.48
7.1.60.0100.00817.73
7.1.50.0070.00816.62
7.1.40.0090.00916.12
7.1.30.0030.00515.71
7.1.20.0140.00315.72
7.1.10.0060.00316.08
7.1.00.0020.02219.14
7.0.330.0060.01015.57
7.0.320.0030.00915.52
7.0.310.0100.00715.56
7.0.300.0070.00315.72
7.0.290.0070.00715.24
7.0.280.0000.00815.61
7.0.270.0080.00415.51
7.0.260.0000.01215.34
7.0.250.0000.01515.62
7.0.240.0100.00315.75
7.0.230.0030.00715.55
7.0.220.0070.00315.54
7.0.210.0040.00815.65
7.0.200.0150.00515.36
7.0.190.0070.01115.47
7.0.180.0000.01415.41
7.0.170.0000.01315.76
7.0.160.0070.00315.73
7.0.150.0030.00615.47
7.0.140.0000.04618.78
7.0.130.0000.00915.48
7.0.120.0040.01115.39
7.0.110.0060.00915.55
7.0.100.0040.00415.71
7.0.90.0120.00415.77
7.0.80.0040.01115.71
7.0.70.0060.00915.42
7.0.60.0100.03918.65
7.0.50.0050.04016.64
7.0.40.0090.02616.90
7.0.30.0240.02916.96
7.0.20.0160.02816.83
7.0.10.0080.02316.85
7.0.00.0060.03116.71
5.6.380.0050.00514.00
5.6.370.0120.00314.50
5.6.360.0000.01414.77
5.6.350.0120.00314.67
5.6.340.0000.01114.52
5.6.330.0090.00614.50
5.6.320.0070.00414.66
5.6.310.0070.00313.93
5.6.300.0000.01014.26
5.6.290.0030.01414.20
5.6.280.0070.03817.56
5.6.270.0070.00314.40
5.6.260.0040.00814.23
5.6.250.0130.00014.28
5.6.240.0130.00014.09
5.6.230.0100.00714.47
5.6.220.0030.00714.47
5.6.210.0120.03517.53
5.6.200.0030.04416.09
5.6.190.0030.02417.47
5.6.180.0220.03917.49
5.6.170.0200.03817.42
5.6.160.0070.04617.29
5.6.150.0030.02816.42
5.6.140.0070.04216.18
5.6.130.0070.02216.37
5.6.120.0030.03617.60
5.6.110.0140.03417.77
5.6.100.0070.03117.69
5.6.90.0080.02517.54
5.6.80.0080.04217.35
5.6.70.0070.00714.21
5.6.60.0030.01314.20
5.6.50.0090.00314.14
5.6.40.0070.00714.13
5.6.30.0100.00314.04
5.6.20.0090.00614.15
5.6.10.0140.00014.31
5.6.00.0040.00714.12
5.5.380.0000.00511.21
5.5.370.0030.00311.09
5.5.360.0060.00311.38
5.5.350.1970.02815.69
5.5.340.0020.04814.43
5.5.330.0100.02315.72
5.5.320.0170.04315.67
5.5.310.0180.04115.73
5.5.300.0070.03214.55
5.5.290.0030.02414.57
5.5.280.0050.04315.93
5.5.270.0080.04216.00
5.5.260.0090.02615.90
5.5.250.0080.04115.74
5.5.240.0120.03815.71
5.5.230.0070.00410.72
5.5.220.0060.00611.06
5.5.210.0000.01210.88
5.5.200.0060.00611.14
5.5.190.0050.00510.79
5.5.180.0030.00710.91
5.5.170.0040.00810.73
5.5.160.0100.00010.94
5.5.150.0070.00710.84
5.5.140.0030.00910.95
5.5.130.0040.00810.97
5.5.120.0040.00810.88
5.5.110.0080.00311.01
5.5.100.0070.00710.93
5.5.90.0080.00510.94
5.5.80.0030.01011.16
5.5.70.0020.01010.82
5.5.60.0060.00611.09
5.5.50.0030.00910.92
5.5.40.0030.00610.85
5.5.30.0040.00711.05
5.5.20.0000.01211.01
5.5.10.0000.01011.10
5.5.00.0070.00310.97
5.4.450.0050.04015.20
5.4.440.0050.03215.21
5.4.430.0020.04615.05
5.4.420.0030.03615.21
5.4.410.0000.04115.03
5.4.400.0050.04014.93
5.4.390.0020.04015.02
5.4.380.0040.03315.06
5.4.370.0080.03315.21
5.4.360.0040.04215.03
5.4.350.0040.02515.08
5.4.340.0040.03915.00
5.4.330.0090.00310.87
5.4.320.0010.04614.85
5.4.310.0050.04314.88
5.4.300.0060.02814.94
5.4.290.0070.03314.98
5.4.280.0080.02514.76
5.4.270.0030.03514.85
5.4.260.0100.02514.87
5.4.250.0030.04115.09
5.4.240.0070.04014.93
5.4.230.0030.03914.91
5.4.220.0060.02214.92
5.4.210.0030.03915.00
5.4.200.0050.03914.91
5.4.190.0080.03814.76
5.4.180.0020.04314.79
5.4.170.0090.03814.87
5.4.160.0020.03114.92
5.4.150.0060.03814.82
5.4.140.0050.02613.58
5.4.130.0000.03313.70
5.4.120.0000.04113.49
5.4.110.0040.04013.74
5.4.100.0100.02513.77
5.4.90.0050.03613.47
5.4.80.0000.02913.51
5.4.70.0080.01813.60
5.4.60.0070.03613.69
5.4.50.0060.02113.67
5.4.40.0030.01813.65
5.4.30.0020.03913.62
5.4.20.0030.02513.71
5.4.10.0050.02213.61
5.4.00.0050.03513.31
5.3.290.0060.03412.54
5.3.280.0040.02812.46
5.3.270.0050.03812.47
5.3.260.0050.03312.61
5.3.250.0050.04012.47
5.3.240.0070.03612.34
5.3.230.0080.03512.47
5.3.220.0050.02312.52
5.3.210.0040.02212.43
5.3.200.0020.02712.48
5.3.190.0030.02612.43
5.3.180.0020.02712.45
5.3.170.0030.03712.54
5.3.160.0060.03512.45
5.3.150.0000.04212.39
5.3.140.0050.02012.52
5.3.130.0030.04512.40
5.3.120.0030.02812.40
5.3.110.0030.03312.37
5.3.100.0010.02512.21
5.3.90.0150.01712.10
5.3.80.0020.04412.25
5.3.70.0010.04112.13
5.3.60.0020.03712.25
5.3.50.0020.03712.04
5.3.40.0050.03812.05
5.3.30.0020.03312.01
5.3.20.0020.02512.06
5.3.10.0040.03212.02
5.3.00.0020.02211.92
5.2.170.0020.03511.26
5.2.160.0030.03311.26
5.2.150.0020.03611.26
5.2.140.0050.02311.26
5.2.130.0030.01611.26
5.2.120.0000.01911.26
5.2.110.0020.03611.26
5.2.100.0030.02011.26
5.2.90.0040.02911.26
5.2.80.0040.01711.26
5.2.70.0020.02211.26
5.2.60.0000.02611.26
5.2.50.0050.03211.26
5.2.40.0000.02411.26
5.2.30.0000.02511.26
5.2.20.0020.02511.26
5.2.10.0020.03211.26
5.2.00.0070.02011.26
5.1.60.0010.02511.26
5.1.50.0010.03111.26
5.1.40.0030.01811.26
5.1.30.0040.02511.26
5.1.20.0050.02211.26
5.1.10.0020.02411.26
5.1.00.0030.01511.26
5.0.50.0010.02011.26
5.0.40.0020.02511.26
5.0.30.0050.03311.26
5.0.20.0030.01311.26
5.0.10.0050.01311.26
5.0.00.0050.03411.26
4.4.90.0020.01211.26
4.4.80.0000.01211.26
4.4.70.0000.01311.26
4.4.60.0000.01511.26
4.4.50.0030.02011.26
4.4.40.0030.02811.26
4.4.30.0020.01711.26
4.4.20.0000.01911.26
4.4.10.0030.01211.26
4.4.00.0020.02711.26
4.3.110.0000.02111.26
4.3.100.0020.01811.26
4.3.90.0020.01811.26
4.3.80.0020.02711.26
4.3.70.0000.01811.26
4.3.60.0030.01811.26
4.3.50.0000.01211.26
4.3.40.0030.02811.26
4.3.30.0020.01811.26
4.3.20.0030.01711.26
4.3.10.0030.01011.26
4.3.00.0000.01811.26

preferences:
41.49 ms | 400 KiB | 5 Q