3v4l.org

run code in 300+ PHP versions simultaneously
<?php $temp = "hello there-----------how are you--au$!@&*"; $temp = strtolower($temp); $temp = preg_replace('/\s+/','-', $temp); $temp = preg_replace('/\W+/', '', $temp); echo($temp);

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.0120.00616.59
8.3.50.0270.01021.21
8.3.40.0110.00718.82
8.3.30.0090.00619.07
8.3.20.0040.00420.21
8.3.10.0030.00521.75
8.3.00.0080.00019.53
8.2.180.0060.01618.42
8.2.170.0100.01022.96
8.2.160.0070.00720.27
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00022.13
8.2.110.0070.00322.34
8.2.100.0080.00419.75
8.2.90.0000.00819.20
8.2.80.0030.00517.97
8.2.70.0030.00617.63
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0060.00319.88
8.2.30.0040.00418.13
8.2.20.0050.00217.72
8.2.10.0030.00618.13
8.2.00.0070.00018.13
8.1.280.0060.00925.92
8.1.270.0040.00420.02
8.1.260.0060.00326.35
8.1.250.0050.00228.09
8.1.240.0130.00922.05
8.1.230.0070.00418.95
8.1.220.0000.00817.76
8.1.210.0030.00718.77
8.1.200.0060.00317.36
8.1.190.0090.00017.25
8.1.180.0100.00019.14
8.1.170.0000.00918.60
8.1.160.0050.00221.98
8.1.150.0000.00718.64
8.1.140.0000.00717.45
8.1.130.0030.00317.75
8.1.120.0060.00317.55
8.1.110.0000.00817.55
8.1.100.0040.00417.53
8.1.90.0000.00717.51
8.1.80.0000.00717.43
8.1.70.0000.00717.38
8.1.60.0030.00717.70
8.1.50.0000.00817.55
8.1.40.0080.00017.59
8.1.30.0040.00417.74
8.1.20.0050.00217.64
8.1.10.0000.00817.58
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0000.00717.16
8.0.280.0000.00718.45
8.0.270.0000.00717.15
8.0.260.0030.00317.20
8.0.250.0030.00317.16
8.0.240.0080.00017.13
8.0.230.0000.00816.94
8.0.220.0000.00717.01
8.0.210.0000.00716.96
8.0.200.0060.00016.96
8.0.190.0090.00017.03
8.0.180.0070.00017.00
8.0.170.0080.00016.89
8.0.160.0000.00716.97
8.0.150.0030.00316.95
8.0.140.0030.00516.82
8.0.130.0040.00413.39
8.0.120.0060.00317.00
8.0.110.0000.00716.89
8.0.100.0000.00716.96
8.0.90.0060.00317.00
8.0.80.0100.01017.03
8.0.70.0050.00216.96
8.0.60.0040.00417.00
8.0.50.0000.00716.92
8.0.30.0090.00917.22
8.0.20.0230.01417.46
8.0.10.0080.00017.07
8.0.00.0060.01216.83
7.4.330.0000.00515.03
7.4.320.0070.00016.67
7.4.300.0000.00616.74
7.4.290.0070.00016.76
7.4.280.0000.00816.59
7.4.270.0080.00016.75
7.4.260.0000.00816.71
7.4.250.0000.00716.57
7.4.240.0020.00516.62
7.4.230.0000.00816.84
7.4.220.0090.00916.69
7.4.210.0000.01716.79
7.4.200.0070.00016.68
7.4.160.0080.00816.82
7.4.150.0060.01517.40
7.4.140.0130.00917.86
7.4.130.0090.01016.66
7.4.120.0070.01116.48
7.4.110.0040.01316.38
7.4.100.0100.01316.52
7.4.90.0060.01216.53
7.4.80.0100.00719.39
7.4.70.0120.00916.77
7.4.60.0040.01216.62
7.4.50.0030.00616.64
7.4.40.0120.00616.64
7.4.30.0130.00416.75
7.4.00.0120.00314.94
7.3.330.0070.00013.09
7.3.320.0000.00513.20
7.3.310.0000.00716.37
7.3.300.0000.00716.34
7.3.290.0060.00916.34
7.3.280.0070.00816.34
7.3.270.0000.02017.40
7.3.260.0150.00616.62
7.3.250.0130.00716.50
7.3.240.0090.00816.75
7.3.230.0100.01316.74
7.3.210.0030.01416.42
7.3.200.0150.00316.50
7.3.190.0130.01016.38
7.3.180.0120.00916.75
7.3.170.0060.01016.63
7.3.160.0100.00716.79
7.3.10.0090.00016.61
7.3.00.0030.00716.81
7.2.330.0090.00916.79
7.2.320.0070.01116.82
7.2.310.0120.00616.87
7.2.300.0030.01316.58
7.2.290.0120.00616.63
7.2.130.0060.00616.95
7.2.120.0000.00916.99
7.2.110.0030.00916.81
7.2.100.0110.00416.89
7.2.90.0040.00817.06
7.2.80.0000.01317.16
7.2.70.0000.01317.09
7.2.60.0070.00817.19
7.2.50.0040.01417.02
7.2.40.0100.00716.93
7.2.30.0040.00817.24
7.2.20.0110.00316.77
7.2.10.0060.00616.75
7.2.00.0030.00918.26
7.1.250.0030.00715.69
7.1.100.0080.00318.12
7.1.70.0060.00317.07
7.1.60.0120.01219.86
7.1.50.0100.01017.15
7.1.00.0030.07322.37
7.0.200.0250.00416.17
7.0.60.0070.06720.02
7.0.50.0070.04717.80
7.0.40.0000.04720.00
7.0.30.0300.03320.11
7.0.20.0300.07320.11
7.0.10.0100.05720.11
7.0.00.0100.04720.18
5.6.280.0030.07321.04
5.6.210.0130.07020.62
5.6.200.0070.08018.16
5.6.190.0030.06320.27
5.6.180.0430.06720.35
5.6.170.0470.07020.42
5.6.160.0100.08020.41
5.6.150.0170.07718.15
5.6.140.0070.07718.12
5.6.130.0030.07318.14
5.6.120.0070.03721.14
5.6.110.0100.08321.14
5.6.100.0100.08021.00
5.6.90.0070.06721.11
5.6.80.0100.07320.43
5.5.350.0130.08020.40
5.5.340.0030.04017.98
5.5.330.0070.05020.47
5.5.320.0000.08320.24
5.5.310.0400.07320.23
5.5.300.0030.05317.98
5.5.290.0030.06317.96
5.5.280.0070.09020.89
5.5.270.0130.07320.77
5.5.260.0130.07720.87
5.5.250.0030.04020.68
5.5.240.0030.03020.00
5.4.450.0300.06719.35
5.4.440.0370.06019.41
5.4.430.0130.05019.07
5.4.420.0100.07719.39
5.4.410.0100.06719.36
5.4.400.0070.05319.30
5.4.390.0170.04319.17
5.4.380.0170.04718.92
5.4.370.0100.05319.06
5.4.360.0030.05719.02
5.4.350.0070.06019.04
5.4.340.0070.05319.15
5.4.320.0170.04719.15
5.4.310.0130.05019.04
5.4.300.0170.04719.13
5.4.290.0270.03318.99
5.4.280.0200.04019.03
5.4.270.0170.04719.25
5.4.260.0200.04318.93
5.4.250.0130.05719.03
5.4.240.0070.05719.02
5.4.230.0030.05719.02
5.4.220.0170.06319.25
5.4.210.0170.04719.10
5.4.200.0070.05316.93
5.4.190.0170.04319.04
5.4.180.0100.06019.02
5.4.170.0130.05019.02
5.4.160.0070.05319.01
5.4.150.0000.06018.89
5.4.140.0270.05316.55
5.4.130.0100.04716.39
5.4.120.0100.04716.15
5.4.110.0130.05016.38
5.4.100.0100.06016.17
5.4.90.0100.05016.50
5.4.80.0130.04716.38
5.4.70.0000.05716.31
5.4.60.0100.05016.18
5.4.50.0130.04316.32
5.4.40.0200.04316.15
5.4.30.0100.04716.37
5.4.20.0100.04716.29
5.4.10.0200.04316.18
5.4.00.0070.05015.82
5.3.290.0170.04714.51
5.3.280.0130.04714.45
5.3.270.0070.05314.48
5.3.260.0170.04714.51
5.3.250.0170.04714.46
5.3.240.0100.05014.48
5.3.230.0030.06014.59
5.3.220.0030.06014.44
5.3.210.0070.05314.36
5.3.200.0170.04314.57
5.3.190.0100.05314.56
5.3.180.0100.04714.48
5.3.170.0130.05014.50
5.3.160.0030.05314.49
5.3.150.0070.05314.40
5.3.140.0130.04714.41
5.3.130.0030.05714.47
5.3.120.0130.04714.38
5.3.110.0030.06014.44
5.3.100.0130.04714.04
5.3.90.0070.05713.96
5.3.80.0030.05313.80
5.3.70.0100.05313.95
5.3.60.0070.05013.88
5.3.50.0070.06313.89
5.3.40.0070.05313.80
5.3.30.0100.04713.85
5.3.20.0130.06013.69
5.3.10.0170.04013.54
5.3.00.0130.04313.39
5.2.170.0070.04011.07
5.2.160.0030.04311.14
5.2.150.0170.03011.06
5.2.140.0070.04011.05
5.2.130.0100.03710.91
5.2.120.0070.04011.20
5.2.110.0100.03710.96
5.2.100.0070.04010.90
5.2.90.0000.04711.04
5.2.80.0070.04310.94
5.2.70.0100.03710.96
5.2.60.0100.03710.96
5.2.50.0070.04011.11
5.2.40.0130.04010.87
5.2.30.0070.04011.07
5.2.20.0070.04010.92
5.2.10.0130.03310.88
5.2.00.0030.04310.65
5.1.60.0130.0279.86
5.1.50.0000.0379.85
5.1.40.0000.0379.97
5.1.30.0070.03310.31
5.1.20.0000.04010.38
5.1.10.0070.0339.90
5.1.00.0030.04010.06
5.0.50.0000.0308.63
5.0.40.0030.0338.32
5.0.30.0000.0478.10
5.0.20.0030.0278.28
5.0.10.0000.0308.17
5.0.00.0030.0408.08
4.4.90.0100.0175.86
4.4.80.0030.0235.89
4.4.70.0000.0235.75
4.4.60.0030.0205.77
4.4.50.0030.0205.80
4.4.40.0070.0375.75
4.4.30.0000.0275.84
4.4.20.0000.0235.83
4.4.10.0000.0275.95
4.4.00.0030.0335.93
4.3.110.0030.0235.67
4.3.100.0030.0205.82
4.3.90.0000.0235.63
4.3.80.0030.0335.78
4.3.70.0070.0175.78
4.3.60.0000.0235.66
4.3.50.0030.0205.67
4.3.40.0000.0405.63
4.3.30.0000.0234.55
4.3.20.0000.0234.55
4.3.10.0000.0234.38
4.3.00.0070.0237.26

preferences:
62.71 ms | 401 KiB | 5 Q