3v4l.org

run code in 300+ PHP versions simultaneously
<?php function clean_string($s){ $r=trim($s); $r=stripslashes($r); $r=str_replace('?','',$r); $r=str_replace('\'','-',$r); $r=str_replace('/','-',$r); $r=str_replace(' ','-',$r); $r=str_replace('(','',$r); $r=str_replace(')','',$r); $r=str_replace('"','',$r); $r=str_replace('/','-',$r); $r=ereg_replace('-+','-',$r); $r=htmlentities(strtolower($r)); return $r; } echo clean_string('Harry&Henk in het bos');

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.00316.50
8.3.50.0090.00616.36
8.3.40.0040.01118.63
8.3.30.0070.01118.90
8.3.20.0050.00220.34
8.3.10.0040.00423.67
8.3.00.0040.00421.94
8.2.180.0140.00016.38
8.2.170.0040.01122.96
8.2.160.0130.00320.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00021.04
8.2.120.0050.00326.35
8.2.110.0030.00720.99
8.2.100.0040.00817.92
8.2.90.0030.00519.28
8.2.80.0000.00817.97
8.2.70.0090.00017.50
8.2.60.0040.00417.80
8.2.50.0060.00618.09
8.2.40.0040.00422.19
8.2.30.0000.00819.39
8.2.20.0070.00017.70
8.2.10.0000.00718.02
8.2.00.0040.00418.04
8.1.280.0110.00725.92
8.1.270.0040.00422.14
8.1.260.0000.00728.09
8.1.250.0000.00928.09
8.1.240.0030.00622.56
8.1.230.0040.00717.76
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0060.00317.21
8.1.190.0050.00317.36
8.1.180.0040.00418.10
8.1.170.0080.00018.59
8.1.160.0000.00720.72
8.1.150.0040.00418.98
8.1.140.0040.00419.44
8.1.130.0030.00317.71
8.1.120.0040.00417.43
8.1.110.0080.00017.32
8.1.100.0050.00317.41
8.1.90.0000.00817.27
8.1.80.0060.00317.49
8.1.70.0000.00717.30
8.1.60.0040.00417.64
8.1.50.0060.00317.58
8.1.40.0040.00417.50
8.1.30.0060.00317.62
8.1.20.0040.00417.71
8.1.10.0000.00717.58
8.1.00.0040.00417.54
8.0.300.0000.00918.77
8.0.290.0000.00716.62
8.0.280.0030.00318.41
8.0.270.0030.00317.20
8.0.260.0040.00417.11
8.0.250.0000.00717.04
8.0.240.0030.00617.00
8.0.230.0030.00317.05
8.0.220.0040.00416.91
8.0.210.0000.00716.94
8.0.200.0050.00316.86
8.0.190.0000.00716.97
8.0.180.0000.00716.78
8.0.170.0050.00316.82
8.0.160.0030.00317.00
8.0.150.0070.00016.79
8.0.140.0000.00716.85
8.0.130.0030.00313.40
8.0.120.0000.00716.89
8.0.110.0040.00416.89
8.0.100.0080.00016.86
8.0.90.0040.00416.95
8.0.80.0070.01016.86
8.0.70.0040.00416.74
8.0.60.0000.00716.70
8.0.50.0040.00417.02
8.0.30.0100.00717.00
8.0.20.0090.01017.40
8.0.10.0000.00717.08
8.0.00.0110.00816.93
7.4.330.0000.00516.81
7.4.320.0030.00316.37
7.4.300.0030.00316.53
7.4.290.0000.00716.48
7.4.280.0060.00316.60
7.4.270.0070.00016.53
7.4.260.0080.00016.52
7.4.250.0040.00416.47
7.4.240.0030.00316.52
7.4.230.0030.00316.41
7.4.220.0070.01116.49
7.4.210.0040.01116.63
7.4.200.0000.00716.73
7.4.160.0150.00016.57
7.4.150.0120.00617.40
7.4.140.0130.00617.86
7.4.130.0100.00916.50
7.4.120.0090.00816.48
7.4.110.0100.00716.44
7.4.100.0060.01316.45
7.4.90.0150.00316.68
7.4.80.0060.01219.39
7.4.70.0060.01116.36
7.4.60.0090.00916.65
7.4.50.0040.01116.52
7.4.40.0090.00616.52
7.4.30.0100.01316.69
7.4.00.0030.00914.66
7.3.330.0050.00013.31
7.3.320.0030.00313.37
7.3.310.0000.00716.14
7.3.300.0030.00316.29
7.3.290.0060.01116.30
7.3.280.0130.00716.34
7.3.270.0150.00317.40
7.3.260.0170.00016.56
7.3.250.0140.00516.27
7.3.240.0100.00716.49
7.3.230.0100.00716.39
7.3.210.0070.01016.60
7.3.200.0160.00319.39
7.3.190.0100.00616.32
7.3.180.0110.00516.30
7.3.170.0060.01616.44
7.3.160.0060.00916.52
7.3.00.0110.00416.48
7.2.330.0110.00516.57
7.2.320.0090.01216.54
7.2.310.0030.01316.73
7.2.300.0080.00816.55
7.2.290.0060.00916.25
7.2.130.0090.00516.84
7.2.120.0130.00916.95
7.2.110.0180.00916.82
7.2.100.0000.01516.84
7.2.90.0090.00016.76
7.2.80.0040.00416.85
7.2.70.0100.00316.84
7.2.60.0130.00216.80
7.2.50.0030.01016.69
7.2.40.0070.00716.80
7.2.30.0060.00616.47
7.2.20.0030.00716.90
7.2.10.0000.01216.88
7.2.00.0050.00917.94
7.1.250.0110.00715.74
7.1.240.0130.01015.73
7.1.230.0070.01315.71
7.1.220.0110.01115.87
7.1.210.0030.00915.75
7.1.200.0080.00515.71
7.1.190.0000.01115.77
7.1.180.0040.00815.81
7.1.170.0060.00315.84
7.1.160.0080.00415.84
7.1.150.0090.00315.63
7.1.140.0110.00015.85
7.1.130.0090.00015.69
7.1.120.0080.00315.54
7.1.110.0040.00415.73
7.1.100.0030.00916.93
7.1.90.0040.00415.69
7.1.80.0110.00015.64
7.1.70.0050.00416.45
7.1.60.0080.00917.63
7.1.50.0060.01116.29
7.1.40.0070.00415.78
7.1.30.0100.00315.72
7.1.20.0070.00415.80
7.1.10.0030.01115.75
7.1.00.0040.04319.10
7.0.330.0080.00415.36
7.0.320.0160.00415.43
7.0.310.0000.01315.38
7.0.300.0040.00715.33
7.0.290.0060.00615.25
7.0.280.0130.00015.16
7.0.270.0090.00015.29
7.0.260.0000.01315.30
7.0.250.0100.00315.26
7.0.240.0000.01215.34
7.0.230.0000.00815.22
7.0.220.0000.01115.08
7.0.210.0040.00715.29
7.0.200.0000.01015.78
7.0.190.0060.00615.19
7.0.180.0050.00815.10
7.0.170.0000.01015.35
7.0.160.0040.00715.08
7.0.150.0000.00815.29
7.0.140.0090.00315.21
7.0.130.0150.00015.48
7.0.120.0060.00615.25
7.0.110.0080.00615.26
7.0.100.0120.00315.31
7.0.90.0070.00315.38
7.0.80.0060.00615.45
7.0.70.0030.00715.23
7.0.60.0080.04918.51
7.0.50.0090.03816.59
7.0.40.0070.02716.80
7.0.30.0120.03716.81
7.0.20.0200.02416.71
7.0.10.0050.04616.82
7.0.00.0110.03916.82
5.6.380.0090.00314.14
5.6.370.0100.00313.87
5.6.360.0130.00314.13
5.6.350.0060.00614.14
5.6.340.0000.01214.36
5.6.330.0040.00814.59
5.6.320.0040.00814.04
5.6.310.0030.01014.27
5.6.300.0070.00714.47
5.6.290.0030.01014.46
5.6.280.0030.03317.70
5.6.270.0040.01014.02
5.6.260.0040.00714.52
5.6.250.0090.00613.91
5.6.240.0080.00414.12
5.6.230.0060.00614.17
5.6.220.0030.00714.08
5.6.210.0070.03517.46
5.6.200.0080.02816.20
5.6.190.0050.02417.13
5.6.180.0110.02817.22
5.6.170.0290.03817.29
5.6.160.0070.02317.54
5.6.150.0030.04116.19
5.6.140.0110.01616.30
5.6.130.0030.02316.11
5.6.120.0080.04217.75
5.6.110.0110.03417.49
5.6.100.0020.04717.67
5.6.90.0030.04817.61
5.6.80.0080.03617.25
5.6.70.0100.00714.08
5.6.60.0090.00614.12
5.6.50.0030.01014.03
5.6.40.0060.00614.04
5.6.30.0060.00614.22
5.6.20.0030.00714.25
5.6.10.0060.00313.90
5.6.00.0030.01014.21
5.5.380.0100.00311.24
5.5.370.0070.00310.92
5.5.360.0040.00911.07
5.5.350.0050.04515.68
5.5.340.0100.03214.59
5.5.330.0120.03815.74
5.5.320.0200.03315.66
5.5.310.0170.02315.69
5.5.300.0080.02614.42
5.5.290.0090.04014.67
5.5.280.0100.02516.13
5.5.270.0030.02315.92
5.5.260.0050.04816.11
5.5.250.0070.02815.77
5.5.240.0110.04015.72
5.5.230.0060.00610.90
5.5.220.0030.00310.98
5.5.210.0030.00610.98
5.5.200.0000.00711.04
5.5.190.0070.00310.96
5.5.180.0000.01110.98
5.5.170.0060.00611.22
5.5.160.0030.01011.14
5.5.150.0090.00311.20
5.5.140.0030.00611.13
5.5.130.0000.00611.01
5.5.120.0030.00710.90
5.5.110.0040.00711.02
5.5.100.0000.01211.18
5.5.90.0000.01011.18
5.5.80.0060.00011.07
5.5.70.0070.00010.94
5.5.60.0030.00310.90
5.5.50.0080.00310.90
5.5.40.0000.00610.90
5.5.30.0030.00911.13
5.5.20.0060.00610.90
5.5.10.0040.01110.99
5.5.00.0000.00511.23

preferences:
52.36 ms | 401 KiB | 5 Q