3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Gironde numérique sdsds"; $string = strtolower($string); $string = strtr(utf8_decode($string), utf8_decode('àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ'), 'aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY'); $string = preg_replace('/\s+/', '_', $string); $string = preg_replace("/[^A-Za-z0-9]/", '', $string); echo "gn_" . $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.0210.00018.30
8.3.50.0110.00621.21
8.3.40.0000.01418.90
8.3.30.0100.00720.23
8.3.20.0160.00020.16
8.3.10.0000.00821.92
8.3.00.0000.00822.40
8.2.180.0140.00416.63
8.2.170.0100.01022.96
8.2.160.0000.01322.25
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0050.00226.16
8.2.120.0000.00819.61
8.2.110.0050.00522.20
8.2.100.0040.00818.03
8.2.90.0050.00319.05
8.2.80.0040.00419.32
8.2.70.0030.00517.88
8.2.60.0030.00618.03
8.2.50.0060.00318.07
8.2.40.0060.00318.21
8.2.30.0000.00819.46
8.2.20.0000.00717.78
8.2.10.0050.00217.95
8.2.00.0080.00317.91
8.1.280.0100.01025.92
8.1.270.0050.00322.11
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0080.00423.96
8.1.230.0040.01119.14
8.1.220.0050.00317.74
8.1.210.0050.00518.77
8.1.200.0040.00717.48
8.1.190.0000.00817.39
8.1.180.0070.00318.10
8.1.170.0000.00918.71
8.1.160.0000.00718.77
8.1.150.0040.00418.66
8.1.140.0030.00617.44
8.1.130.0000.00817.89
8.1.120.0030.00317.45
8.1.110.0000.00917.36
8.1.100.0000.00717.60
8.1.90.0080.00017.53
8.1.80.0050.00317.46
8.1.70.0000.00717.44
8.1.60.0040.00417.55
8.1.50.0050.00317.50
8.1.40.0040.00417.48
8.1.30.0070.00017.71
8.1.20.0000.00817.69
8.1.10.0040.00417.57
8.1.00.0040.00417.56
8.0.300.0000.00818.77
8.0.290.0000.00816.92
8.0.280.0000.00718.44
8.0.270.0000.00717.27
8.0.260.0000.00717.02
8.0.250.0000.00716.95
8.0.240.0080.00017.00
8.0.230.0070.00016.95
8.0.220.0070.00017.06
8.0.210.0050.00316.92
8.0.200.0060.00017.06
8.0.190.0030.00517.08
8.0.180.0030.00316.96
8.0.170.0000.00817.02
8.0.160.0030.00516.83
8.0.150.0040.00417.03
8.0.140.0000.00816.94
8.0.130.0050.00013.49
8.0.120.0040.00416.88
8.0.110.0000.00816.93
8.0.100.0000.00817.00
8.0.90.0050.00216.80
8.0.80.0040.01116.91
8.0.70.0040.00417.03
8.0.60.0000.00816.87
8.0.50.0040.00416.93
8.0.30.0120.00717.02
8.0.20.0080.01017.40
8.0.10.0090.00017.13
8.0.00.0080.01616.92
7.4.330.0020.00515.00
7.4.320.0000.00716.62
7.4.300.0000.00616.63
7.4.290.0030.00316.74
7.4.280.0000.00716.62
7.4.270.0070.00316.66
7.4.260.0050.00013.43
7.4.250.0000.00716.60
7.4.240.0030.00416.70
7.4.230.0070.00016.81
7.4.220.0060.01316.75
7.4.210.0040.01116.72
7.4.200.0000.00716.80
7.4.190.0070.00016.91
7.4.160.0060.01016.71
7.4.150.0170.00417.40
7.4.140.0150.00817.86
7.4.130.0080.00916.67
7.4.120.0070.01016.73
7.4.110.0150.00316.71
7.4.100.0060.01516.50
7.4.90.0030.01316.74
7.4.80.0150.01019.39
7.4.70.0130.01016.63
7.4.60.0100.00716.70
7.4.50.0030.00616.43
7.4.40.0110.00422.77
7.4.30.0070.01016.65
7.4.00.0030.01615.27
7.3.330.0000.00513.17
7.3.320.0050.00013.07
7.3.310.0040.00416.40
7.3.300.0070.00016.34
7.3.290.0090.00616.34
7.3.280.0070.00916.37
7.3.270.0140.00517.40
7.3.260.0110.00816.28
7.3.250.0080.01016.44
7.3.240.0100.00716.49
7.3.230.0100.00716.66
7.3.210.0150.00316.53
7.3.200.0150.00419.39
7.3.190.0000.02316.23
7.3.180.0180.00416.61
7.3.170.0150.00716.66
7.3.160.0100.00616.56
7.3.120.0040.01514.87
7.3.110.0060.01214.83
7.3.100.0100.00315.07
7.3.90.0110.00014.93
7.3.80.0030.00615.00
7.3.70.0080.00314.58
7.3.60.0110.00414.98
7.3.50.0030.01414.98
7.3.40.0040.00814.90
7.3.30.0030.01414.96
7.3.20.0090.00616.80
7.3.10.0040.01216.86
7.3.00.0110.00316.95
7.2.330.0090.00916.68
7.2.320.0030.01916.90
7.2.310.0000.01816.63
7.2.300.0080.00816.59
7.2.290.0070.01116.87
7.2.250.0140.00315.27
7.2.240.0100.01014.98
7.2.230.0070.00715.21
7.2.220.0070.00714.93
7.2.210.0000.00915.00
7.2.200.0080.00615.30
7.2.190.0120.00615.25
7.2.180.0000.01215.21
7.2.170.0090.00414.89
7.2.160.0070.00715.02
7.2.150.0040.00817.07
7.2.140.0060.00317.09
7.2.130.0030.01017.07
7.2.120.0040.01116.79
7.2.110.0070.00717.11
7.2.100.0040.01117.21
7.2.90.0060.00617.23
7.2.80.0030.01016.88
7.2.70.0090.00816.70
7.2.60.0030.01217.02
7.2.50.0090.00917.02
7.2.40.0090.00317.16
7.2.30.0040.00817.27
7.2.20.0100.00317.25
7.2.10.0070.00717.12
7.2.00.0040.01018.44
7.1.330.0030.01415.81
7.1.320.0120.00016.07
7.1.310.0000.00816.05
7.1.300.0040.00815.77
7.1.290.0040.01116.00
7.1.280.0030.01015.93
7.1.270.0030.00915.96
7.1.260.0070.00416.04
7.1.250.0060.01215.98
7.1.100.0030.01318.40
7.1.70.0120.00317.21
7.1.60.0040.00817.45
7.1.50.0000.02317.19
7.1.00.0100.07322.36
7.0.200.0000.01716.92
7.0.140.0030.06721.96
7.0.100.0270.05020.01
7.0.90.0230.06719.98
7.0.80.0230.07719.89
7.0.70.0000.04720.02
7.0.60.0100.04319.96
7.0.50.0370.06720.36
7.0.40.0100.06320.18
7.0.30.0100.07320.07
7.0.20.0100.09320.05
7.0.10.0000.04320.04
7.0.00.0030.09020.14
5.6.280.0000.07721.07
5.6.250.0200.08020.71
5.6.240.0170.04020.66
5.6.230.0030.07320.67
5.6.220.0070.04020.70
5.6.210.0100.06720.61
5.6.200.0070.08021.05
5.6.190.0070.08720.90
5.6.180.0030.07321.13
5.6.170.0030.10021.03
5.6.160.0130.10021.00
5.6.150.0030.08720.95
5.6.140.0100.07721.10
5.6.130.0100.05721.05
5.6.120.0070.08720.95
5.6.110.0030.05020.98
5.6.100.0070.08021.01
5.6.90.0170.07020.99
5.6.80.0030.07020.44
5.6.70.0030.08020.32
5.6.60.0200.06720.30
5.6.50.0170.07020.48
5.6.40.0070.08020.43
5.6.30.0030.07720.31
5.6.20.0030.08320.52
5.6.10.0200.06020.39
5.6.00.0170.06720.30
5.5.380.0070.08320.41
5.5.370.0070.08020.49
5.5.360.0030.05020.43
5.5.350.0200.06720.42
5.5.340.0030.08020.88
5.5.330.0000.08720.79
5.5.320.0100.07720.93
5.5.310.0100.04320.89
5.5.300.0070.08020.88
5.5.290.0000.07020.82
5.5.280.0130.08320.90
5.5.270.0100.07320.71
5.5.260.0100.07720.76
5.5.250.0030.05020.73
5.5.240.0030.06720.13
5.5.230.0000.07720.14
5.5.220.0130.06720.13
5.5.210.0100.06020.12
5.5.200.0000.08720.23
5.5.190.0130.07320.26
5.5.180.0030.08720.20
5.5.160.0100.06720.11
5.5.150.0130.03020.11
5.5.140.0100.07320.17
5.5.130.0100.05320.20
5.5.120.0070.08020.16
5.5.110.0000.09020.20
5.5.100.0030.08320.07
5.5.90.0100.08319.96
5.5.80.0130.06720.09
5.5.70.0100.07320.05
5.5.60.0130.07020.14
5.5.50.0030.06020.07
5.5.40.0100.07720.04
5.5.30.0070.04320.12
5.5.20.0170.05720.13
5.5.10.0100.07320.03
5.5.00.0070.04720.00
5.4.450.0100.07019.43
5.4.440.0070.04319.42
5.4.430.0000.04719.39
5.4.420.0130.07019.22
5.4.410.0070.08019.22
5.4.400.0030.04718.95
5.4.390.0030.07318.81
5.4.380.0070.06719.06
5.4.370.0030.08019.14
5.4.360.0130.04018.78
5.4.350.0100.06018.98
5.4.340.0030.06019.08
5.4.320.0100.08019.03
5.4.310.0070.05319.14
5.4.300.0070.05319.05
5.4.290.0130.07019.11
5.4.280.0130.05719.14
5.4.270.0030.04019.05
5.4.260.0030.07018.94
5.4.250.0070.06019.11
5.4.240.0100.07718.78
5.4.230.0030.08318.94
5.4.220.0100.07719.02
5.4.210.0100.05019.02
5.4.200.0030.07319.04
5.4.190.0000.04719.05
5.4.180.0000.05318.95
5.4.170.0030.08319.13
5.4.160.0070.03718.75
5.4.150.0030.09019.07
5.4.140.0100.02716.36
5.4.130.0070.03316.30
5.4.120.0100.06716.36
5.4.110.0000.07016.32
5.4.100.0000.07016.21
5.4.90.0100.04716.25
5.4.80.0030.07716.47
5.4.70.0030.07016.41
5.4.60.0130.06716.28
5.4.50.0030.07716.33
5.4.40.0000.07016.34
5.4.30.0130.06716.23
5.4.20.0030.08016.39
5.4.10.0070.07016.20
5.4.00.0100.05715.81
5.3.290.0030.06714.52
5.3.280.0130.06714.53
5.3.270.0070.06014.60
5.3.260.0030.06314.59
5.3.250.0000.03714.46
5.3.240.0170.03714.59
5.3.230.0030.08014.46
5.3.220.0030.06714.49
5.3.210.0030.03314.55
5.3.200.0100.06714.40
5.3.190.0070.06014.54
5.3.180.0030.07714.52
5.3.170.0130.04714.43
5.3.160.0030.07314.47
5.3.150.0170.06314.55
5.3.140.0030.07714.52
5.3.130.0000.08014.50
5.3.120.0070.03314.40
5.3.110.0000.04314.45
5.3.100.0030.06713.95
5.3.90.0100.07313.97
5.3.80.0100.07314.00
5.3.70.0070.08014.00
5.3.60.0030.07314.00
5.3.50.0030.04713.89
5.3.40.0000.07713.80
5.3.30.0070.06313.76
5.3.20.0070.04313.63
5.3.10.0030.06713.64
5.3.00.0070.06313.59
5.2.170.0030.06311.14
5.2.160.0070.02010.98
5.2.150.0030.05310.98
5.2.140.0070.04311.13
5.2.130.0000.05710.93
5.2.120.0000.03010.89
5.2.110.0130.05011.14
5.2.100.0070.02010.89
5.2.90.0000.06711.06
5.2.80.0000.06710.94
5.2.70.0070.06011.10
5.2.60.0000.05710.89
5.2.50.0000.04011.00
5.2.40.0070.06010.95
5.2.30.0100.05310.96
5.2.20.0070.04710.84
5.2.10.0070.03710.86
5.2.00.0130.05010.84
5.1.60.0000.03310.84
5.1.50.0070.05010.84
5.1.40.0070.04710.84
5.1.30.0030.04310.84
5.1.20.0030.06010.84
5.1.10.0100.04310.84
5.1.00.0000.04010.84
5.0.50.0100.04010.84
5.0.40.0000.04010.84
5.0.30.0000.06310.84
5.0.20.0030.02010.84
5.0.10.0070.03010.84
5.0.00.0030.06310.84
4.4.90.0030.01710.84
4.4.80.0000.02010.84
4.4.70.0000.04010.84
4.4.60.0000.03710.84
4.4.50.0030.02710.84
4.4.40.0100.02010.84
4.4.30.0030.02310.84
4.4.20.0100.02710.84
4.4.10.0070.01310.84
4.4.00.0030.05010.84
4.3.110.0030.03310.84
4.3.100.0030.03310.84
4.3.90.0030.01710.84
4.3.80.0030.04310.84
4.3.70.0000.02010.84
4.3.60.0000.02710.84
4.3.50.0000.03310.84
4.3.40.0000.04310.84
4.3.30.0170.02310.84
4.3.20.0000.02310.84
4.3.10.0000.03710.84
4.3.00.0030.02710.84

preferences:
45.86 ms | 401 KiB | 5 Q