3v4l.org

run code in 300+ PHP versions simultaneously
<?php $temp = " hello th*ere-----------how are you--au!@&*--"; //$temp = strtolower($temp); //$temp = preg_replace('/\s+/',' ', $temp); $temp = preg_replace('/\s+/', '-', $temp); $temp = preg_replace('/(-)?[^\w-]/', '~', $temp); //$temp = trim($temp); //$temp = preg_replace('/\s+/', '-', $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.0070.01116.50
8.3.50.0100.00921.20
8.3.40.0090.00918.79
8.3.30.0100.00318.82
8.3.20.0070.00020.18
8.3.10.0040.00421.97
8.3.00.0040.00419.64
8.2.180.0070.01418.41
8.2.170.0070.00722.96
8.2.160.0030.01020.35
8.2.150.0090.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00022.24
8.2.110.0000.00920.49
8.2.100.0040.00717.91
8.2.90.0000.00818.34
8.2.80.0080.00017.97
8.2.70.0030.00617.75
8.2.60.0090.00017.93
8.2.50.0120.00018.07
8.2.40.0050.00320.07
8.2.30.0040.00418.33
8.2.20.0000.00817.75
8.2.10.0000.00718.08
8.2.00.0070.00018.14
8.1.280.0110.00425.92
8.1.270.0030.00520.33
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00322.14
8.1.230.0080.00320.96
8.1.220.0050.00317.75
8.1.210.0080.00018.89
8.1.200.0030.00617.48
8.1.190.0050.00317.23
8.1.180.0000.00919.26
8.1.170.0080.00018.54
8.1.160.0080.00021.98
8.1.150.0060.00318.69
8.1.140.0000.00817.64
8.1.130.0070.00017.79
8.1.120.0000.01017.48
8.1.110.0030.00517.48
8.1.100.0050.00217.56
8.1.90.0050.00217.45
8.1.80.0040.00417.43
8.1.70.0000.00717.54
8.1.60.0060.00317.67
8.1.50.0090.00017.61
8.1.40.0090.00017.50
8.1.30.0080.00017.75
8.1.20.0060.00317.73
8.1.10.0000.00817.71
8.1.00.0050.00317.45
8.0.300.0030.00620.16
8.0.290.0030.00317.18
8.0.280.0070.00018.38
8.0.270.0000.00817.28
8.0.260.0070.00017.29
8.0.250.0070.00017.08
8.0.240.0030.00617.10
8.0.230.0070.00017.09
8.0.220.0050.00217.02
8.0.210.0050.00216.95
8.0.200.0030.00316.89
8.0.190.0020.00517.04
8.0.180.0030.00616.91
8.0.170.0000.00817.04
8.0.160.0040.00416.89
8.0.150.0030.00316.82
8.0.140.0040.00416.90
8.0.130.0070.00013.34
8.0.120.0000.00716.92
8.0.110.0080.00016.97
8.0.100.0040.00416.88
8.0.90.0030.00616.92
8.0.80.0140.00316.97
8.0.70.0040.00417.04
8.0.60.0040.00416.81
8.0.50.0000.00716.92
8.0.30.0120.00717.15
8.0.20.0080.01017.40
8.0.10.0000.00717.10
8.0.00.0110.00616.91
7.4.330.0000.00615.03
7.4.320.0030.00316.73
7.4.300.0030.00316.66
7.4.290.0030.00316.67
7.4.280.0000.00816.66
7.4.270.0030.00316.76
7.4.260.0040.00416.66
7.4.250.0040.00416.57
7.4.240.0030.00416.69
7.4.230.0000.00716.65
7.4.220.0100.00916.80
7.4.210.0120.00616.79
7.4.200.0030.00316.62
7.4.160.0080.00816.46
7.4.150.0120.01217.40
7.4.140.0140.00817.86
7.4.130.0040.01416.67
7.4.120.0080.01216.76
7.4.110.0080.01316.80
7.4.100.0130.00316.70
7.4.90.0090.00916.53
7.4.80.0100.01019.39
7.4.70.0200.00316.53
7.4.60.0110.00516.71
7.4.50.0040.00416.45
7.4.40.0030.01316.46
7.4.30.0090.01316.55
7.4.00.0090.00915.04
7.3.330.0000.00713.25
7.3.320.0060.00013.10
7.3.310.0040.00416.44
7.3.300.0070.00016.25
7.3.290.0050.01216.32
7.3.280.0080.01016.37
7.3.270.0140.00417.40
7.3.260.0100.00716.57
7.3.250.0100.00916.46
7.3.240.0110.01116.51
7.3.230.0030.01616.58
7.3.210.0100.00716.30
7.3.200.0180.00316.61
7.3.190.0030.01716.40
7.3.180.0060.01216.30
7.3.170.0090.00916.36
7.3.160.0040.01216.34
7.2.330.0040.01616.69
7.2.320.0130.00316.58
7.2.310.0100.00716.72
7.2.300.0140.00416.67
7.2.290.0110.00716.72
7.2.60.0030.00917.02
7.2.00.0000.01319.61
7.1.100.0070.00318.38
7.1.70.0030.00317.23
7.1.60.0090.01319.86
7.1.50.0160.00916.91
7.1.00.0030.07722.45
7.0.200.0240.00416.30
7.0.60.0030.06320.03
7.0.50.0030.05017.85
7.0.40.0030.04320.28
7.0.30.0270.06720.32
7.0.20.0270.03020.21
7.0.10.0030.04720.03
7.0.00.0030.08020.23
5.6.280.0070.07021.03
5.6.210.0030.07020.54
5.6.200.0000.04318.10
5.6.190.0030.05720.33
5.6.180.0530.06320.77
5.6.170.0130.04320.40
5.6.160.0000.05320.52
5.6.150.0070.04318.20
5.6.140.0000.04318.14
5.6.130.0100.04318.17
5.6.120.0030.08321.03
5.6.110.0070.03720.98
5.6.100.0070.07321.02
5.6.90.0030.09720.99
5.6.80.0070.05720.43
5.5.350.0100.04320.49
5.5.340.0070.05017.87
5.5.330.0100.08020.41
5.5.320.0030.07020.33
5.5.310.0300.07320.28
5.5.300.0070.08018.00
5.5.290.0070.07017.91
5.5.280.0100.04020.88
5.5.270.0030.04020.74
5.5.260.0030.04320.81
5.5.250.0100.06720.48
5.5.240.0100.06320.23
5.4.450.0470.06019.13
5.4.440.0130.07019.55
5.4.430.0030.06019.07
5.4.420.0130.05319.33
5.4.410.0070.05719.58
5.4.400.0100.05018.84
5.4.390.0100.05319.06
5.4.380.0030.06019.04
5.4.370.0070.05319.18
5.4.360.0130.05019.19
5.4.350.0130.04718.98
5.4.340.0170.04319.04
5.4.320.0200.04318.93
5.4.310.0000.06019.02
5.4.300.0100.05018.97
5.4.290.0170.04318.94
5.4.280.0130.04718.87
5.4.270.0000.06018.93
5.4.260.0070.06019.04
5.4.250.0130.05019.16
5.4.240.0070.06019.15
5.4.230.0070.05719.17
5.4.220.0100.05719.09
5.4.210.0100.05019.02
5.4.200.0230.04016.74
5.4.190.0100.05319.02
5.4.180.0100.05018.86
5.4.170.0100.05318.97
5.4.160.0170.05019.14
5.4.150.0030.05719.13
5.4.140.0100.05016.33
5.4.130.0130.04716.43
5.4.120.0070.05016.38
5.4.110.0130.04716.33
5.4.100.0100.04716.55
5.4.90.0070.05716.51
5.4.80.0070.05016.32
5.4.70.0070.05016.37
5.4.60.0030.05316.48
5.4.50.0170.04016.19
5.4.40.0070.05316.39
5.4.30.0070.05016.30
5.4.20.0030.05316.37
5.4.10.0030.05316.50
5.4.00.0070.05015.84
5.3.290.0030.05714.63
5.3.280.0130.04714.49
5.3.270.0000.06014.57
5.3.260.0100.05314.51
5.3.250.0030.06714.51
5.3.240.0200.04014.69
5.3.230.0100.05014.57
5.3.220.0100.05014.54
5.3.210.0130.04714.54
5.3.200.0070.05014.64
5.3.190.0030.05714.60
5.3.180.0130.05014.58
5.3.170.0100.04714.61
5.3.160.0000.05714.47
5.3.150.0100.04714.61
5.3.140.0100.05014.61
5.3.130.0070.06014.40
5.3.120.0030.06014.60
5.3.110.0030.06314.52
5.3.100.0130.04714.07
5.3.90.0100.04713.93
5.3.80.0070.05014.11
5.3.70.0130.05713.94
5.3.60.0070.05014.05
5.3.50.0100.05713.86
5.3.40.0100.05714.01
5.3.30.0070.04713.84
5.3.20.0030.05313.69
5.3.10.0000.05313.59
5.3.00.0070.05013.73
5.2.170.0070.05311.13
5.2.160.0070.04311.15
5.2.150.0030.04311.30
5.2.140.0070.04011.28
5.2.130.0000.04311.05
5.2.120.0100.03311.08
5.2.110.0070.04710.97
5.2.100.0100.03311.21
5.2.90.0100.03710.95
5.2.80.0100.03711.23
5.2.70.0070.04011.21
5.2.60.0100.04311.02
5.2.50.0030.05011.02
5.2.40.0130.03010.86
5.2.30.0100.03710.88
5.2.20.0100.03710.86
5.2.10.0000.04310.86
5.2.00.0030.04310.68
5.1.60.0000.04710.13
5.1.50.0030.03310.08
5.1.40.0030.03710.05
5.1.30.0070.04010.46
5.1.20.0070.03310.33
5.1.10.0030.03710.12
5.1.00.0030.03710.04
5.0.50.0030.0308.50
5.0.40.0030.0278.55
5.0.30.0030.0478.36
5.0.20.0000.0378.14
5.0.10.0100.0238.25
5.0.00.0000.0478.36
4.4.90.0030.0205.92
4.4.80.0030.0205.91
4.4.70.0000.0235.83
4.4.60.0000.0235.96
4.4.50.0030.0205.99
4.4.40.0030.0335.93
4.4.30.0070.0175.83
4.4.20.0000.0235.88
4.4.10.0030.0236.01
4.4.00.0000.0375.86
4.3.110.0030.0205.73
4.3.100.0000.0235.79
4.3.90.0070.0235.84
4.3.80.0030.0435.80
4.3.70.0070.0175.83
4.3.60.0000.0235.70
4.3.50.0000.0235.82
4.3.40.0000.0375.67
4.3.30.0070.0174.64
4.3.20.0030.0204.60
4.3.10.0000.0234.56
4.3.00.0100.0207.27

preferences:
59.11 ms | 401 KiB | 5 Q