3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Gironde numérique"; $string = strtolower($string); $string = preg_replace("/[^A-Za-z0-9 ]/", '', $string); $string = preg_replace('/\s+/', '_', $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.0090.00918.30
8.3.50.0080.00821.14
8.3.40.0070.00718.66
8.3.30.0070.00720.38
8.3.20.0070.00020.16
8.3.10.0000.00822.05
8.3.00.0050.00322.58
8.2.180.0100.01018.29
8.2.170.0150.00022.96
8.2.160.0030.01120.45
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0060.00321.12
8.2.110.0100.00719.37
8.2.100.0080.00417.97
8.2.90.0070.00019.08
8.2.80.0000.00719.27
8.2.70.0040.00417.88
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0040.00418.21
8.2.30.0000.00719.41
8.2.20.0070.00017.80
8.2.10.0070.00017.89
8.2.00.0000.00717.80
8.1.280.0140.00725.92
8.1.270.0050.00323.99
8.1.260.0140.00026.35
8.1.250.0080.00028.09
8.1.240.0070.00322.50
8.1.230.0100.00321.11
8.1.220.0000.00818.77
8.1.210.0030.00519.05
8.1.200.0040.00717.60
8.1.190.0000.00817.18
8.1.180.0040.00418.10
8.1.170.0060.00318.71
8.1.160.0020.00518.77
8.1.150.0040.00418.70
8.1.140.0060.00317.51
8.1.130.0000.00717.76
8.1.120.0040.00417.50
8.1.110.0030.00517.51
8.1.100.0000.00717.43
8.1.90.0050.00217.46
8.1.80.0080.00017.55
8.1.70.0030.00317.54
8.1.60.0000.00817.61
8.1.50.0050.00317.59
8.1.40.0000.00817.52
8.1.30.0050.00317.66
8.1.20.0000.00817.62
8.1.10.0000.00817.55
8.1.00.0000.00717.49
8.0.300.0000.00719.98
8.0.290.0040.00417.18
8.0.280.0030.00518.45
8.0.270.0030.00317.27
8.0.260.0000.00716.83
8.0.250.0040.00416.95
8.0.240.0090.00017.09
8.0.230.0000.00716.98
8.0.220.0000.00717.03
8.0.210.0000.00717.02
8.0.200.0040.00417.02
8.0.190.0000.00717.08
8.0.180.0020.00516.94
8.0.170.0070.00017.00
8.0.160.0040.00416.94
8.0.150.0030.00417.00
8.0.140.0030.00416.95
8.0.130.0030.00313.40
8.0.120.0000.00717.00
8.0.110.0000.00816.96
8.0.100.0020.00516.93
8.0.90.0000.00817.05
8.0.80.0120.00616.92
8.0.70.0000.00716.96
8.0.60.0040.00416.83
8.0.50.0070.00016.87
8.0.30.0080.01117.21
8.0.20.0070.01217.43
8.0.10.0040.00417.04
8.0.00.0090.00916.88
7.4.330.0000.00516.72
7.4.320.0030.00316.62
7.4.300.0000.00716.71
7.4.290.0070.00016.77
7.4.280.0040.00416.55
7.4.270.0070.00016.64
7.4.260.0030.00313.52
7.4.250.0030.00316.54
7.4.240.0070.00016.76
7.4.230.0030.00316.59
7.4.220.0110.01016.77
7.4.210.0090.00716.71
7.4.200.0050.00216.54
7.4.190.0070.00016.88
7.4.160.0090.00616.82
7.4.150.0110.00717.40
7.4.140.0100.00917.86
7.4.130.0100.00716.61
7.4.120.0090.00816.75
7.4.110.0140.00716.56
7.4.100.0150.00416.59
7.4.90.0140.00416.50
7.4.80.0100.00719.39
7.4.70.0070.01016.57
7.4.60.0070.01116.85
7.4.50.0000.00816.37
7.4.40.0060.01022.77
7.4.30.0120.00616.62
7.4.00.0040.01115.10
7.3.330.0060.00013.07
7.3.320.0050.00013.19
7.3.310.0030.00316.41
7.3.300.0000.00716.24
7.3.290.0070.00716.30
7.3.280.0100.00716.34
7.3.270.0090.00817.40
7.3.260.0110.00716.64
7.3.250.0060.01016.47
7.3.240.0060.01316.59
7.3.230.0130.01016.40
7.3.210.0130.00316.32
7.3.200.0140.00819.39
7.3.190.0080.01516.45
7.3.180.0100.01016.41
7.3.170.0060.00916.50
7.3.160.0100.00716.35
7.3.120.0030.01214.61
7.2.330.0040.01516.79
7.2.320.0090.01216.60
7.2.310.0070.01016.74
7.2.300.0030.01316.76
7.2.290.0060.01016.82
7.2.00.0070.01019.55
7.1.200.0130.00015.85
7.1.100.0100.00018.52
7.1.70.0070.00317.22
7.1.60.0110.01519.17
7.1.50.0000.02417.19
7.1.00.0100.05722.49
7.0.200.0030.00616.77
7.0.140.0070.06721.99
7.0.100.0030.05319.90
7.0.90.0030.05719.81
7.0.80.0030.05019.94
7.0.70.0000.04320.09
7.0.60.0070.03720.02
7.0.50.0000.04320.33
7.0.40.0030.04320.10
7.0.30.0100.05020.12
7.0.20.0070.04020.07
7.0.10.0030.04320.10
7.0.00.0100.03720.14
5.6.280.0030.07320.88
5.6.250.0100.08020.68
5.6.240.0100.08320.48
5.6.230.0070.08320.74
5.6.220.0000.04320.47
5.6.210.0100.03320.57
5.6.200.0100.03721.08
5.6.190.0000.04720.97
5.6.180.0030.05721.01
5.6.170.0100.07020.94
5.6.160.0030.04320.92
5.6.150.0030.05721.04
5.6.140.0170.06320.93
5.6.130.0030.04321.04
5.6.120.0000.04721.04
5.6.110.0030.04021.02
5.6.100.0000.04320.97
5.6.90.0030.04721.01
5.6.80.0070.03320.43
5.6.70.0070.03720.34
5.6.60.0000.04320.42
5.6.50.0070.03720.33
5.6.40.0100.03320.38
5.6.30.0070.03320.32
5.6.20.0100.02720.24
5.6.10.0070.03020.40
5.6.00.0070.04720.42
5.5.380.0070.06320.42
5.5.370.0030.07020.39
5.5.360.0070.04320.30
5.5.350.0030.04320.41
5.5.340.0070.04020.71
5.5.330.0000.04320.93
5.5.320.0030.04320.85
5.5.310.0070.06320.71
5.5.300.0130.06020.71
5.5.290.0030.04320.84
5.5.280.0070.04320.91
5.5.270.0130.03320.72
5.5.260.0070.04020.77
5.5.250.0000.08720.57
5.5.240.0070.03320.13
5.5.230.0100.03320.13
5.5.220.0030.04020.22
5.5.210.0070.03320.20
5.5.200.0030.04020.15
5.5.190.0000.05720.13
5.5.180.0070.03320.16
5.5.160.0000.04320.17
5.5.150.0070.03720.12
5.5.140.0100.06720.14
5.5.130.0100.06720.17
5.5.120.0100.07020.13
5.5.110.0100.07720.06
5.5.100.0070.07020.05
5.5.90.0000.06019.95
5.5.80.0130.07020.10
5.5.70.0100.07720.04
5.5.60.0070.06020.15
5.5.50.0030.03720.05
5.5.40.0000.05720.04
5.5.30.0030.08320.14
5.5.20.0130.07320.03
5.5.10.0130.04719.91
5.5.00.0070.07319.97
5.4.450.0030.04019.39
5.4.440.0030.04019.29
5.4.430.0100.03319.47
5.4.420.0000.04319.42
5.4.410.0100.03719.41
5.4.400.0100.02719.05
5.4.390.0000.04318.79
5.4.380.0100.03318.97
5.4.370.0000.03718.95
5.4.360.0100.03019.13
5.4.350.0070.03018.79
5.4.340.0070.03718.98
5.4.320.0030.03719.15
5.4.310.0000.05019.14
5.4.300.0030.06019.11
5.4.290.0130.07719.04
5.4.280.0070.07319.03
5.4.270.0130.07319.24
5.4.260.0100.07318.94
5.4.250.0100.07718.81
5.4.240.0130.06719.00
5.4.230.0070.04019.02
5.4.220.0100.07719.05
5.4.210.0030.07718.81
5.4.200.0070.07319.11
5.4.190.0070.07318.80
5.4.180.0000.08018.93
5.4.170.0070.04318.96
5.4.160.0100.06719.10
5.4.150.0070.08019.20
5.4.140.0000.08716.35
5.4.130.0000.07016.27
5.4.120.0030.06316.27
5.4.110.0070.07316.31
5.4.100.0030.07016.21
5.4.90.0100.06716.30
5.4.80.0100.06716.42
5.4.70.0100.06316.20
5.4.60.0030.06016.23
5.4.50.0070.06016.20
5.4.40.0100.06016.32
5.4.30.0000.04316.39
5.4.20.0030.04316.39
5.4.10.0100.06716.23
5.4.00.0030.04315.71
5.3.290.0100.03014.52
5.3.280.0070.06714.55
5.3.270.0070.07314.45
5.3.260.0070.07314.54
5.3.250.0000.05014.46
5.3.240.0100.06014.61
5.3.230.0070.04314.56
5.3.220.0070.05714.42
5.3.210.0000.08014.48
5.3.200.0130.06714.39
5.3.190.0030.07314.42
5.3.180.0070.07314.56
5.3.170.0100.06714.56
5.3.160.0000.04014.55
5.3.150.0070.07714.55
5.3.140.0100.07314.54
5.3.130.0100.07014.40
5.3.120.0100.07314.53
5.3.110.0000.05314.40
5.3.100.0030.05014.04
5.3.90.0070.07713.87
5.3.80.0100.04313.95
5.3.70.0030.07013.87
5.3.60.0100.04313.98
5.3.50.0070.04013.89
5.3.40.0070.05713.91
5.3.30.0100.06013.89
5.3.20.0100.05013.69
5.3.10.0030.07013.65
5.3.00.0170.06013.57
5.2.170.0170.05011.14
5.2.160.0030.05010.98
5.2.150.0030.06010.93
5.2.140.0070.03010.93
5.2.130.0030.06011.17
5.2.120.0100.04311.09
5.2.110.0030.06311.08
5.2.100.0000.05011.14
5.2.90.0030.06711.05
5.2.80.0070.04011.13
5.2.70.0000.04310.91
5.2.60.0070.04011.04
5.2.50.0030.03711.08
5.2.40.0130.05310.99
5.2.30.0000.06310.84
5.2.20.0100.05311.04
5.2.10.0070.05010.77
5.2.00.0030.06010.77
5.1.60.0070.04310.13
5.1.50.0070.05710.13
5.1.40.0000.04010.13
5.1.30.0000.04310.38
5.1.20.0100.05310.26
5.1.10.0070.04010.13
5.1.00.0000.04310.13
5.0.50.0070.02010.13
5.0.40.0030.02010.13
5.0.30.0030.03710.13
5.0.20.0030.02010.13
5.0.10.0070.04310.13
5.0.00.0030.05310.13
4.4.90.0000.02710.13
4.4.80.0000.02010.13
4.4.70.0030.03010.13
4.4.60.0000.01710.13
4.4.50.0000.01710.13
4.4.40.0030.03010.13
4.4.30.0000.03710.13
4.4.20.0000.03310.13
4.4.10.0000.01710.13
4.4.00.0000.05310.13
4.3.110.0070.02010.13
4.3.100.0030.01310.13
4.3.90.0030.03310.13
4.3.80.0070.04310.13
4.3.70.0030.02710.13
4.3.60.0000.03710.13
4.3.50.0070.02710.13
4.3.40.0070.02310.13
4.3.30.0030.03310.13
4.3.20.0000.03310.13
4.3.10.0000.03310.13
4.3.00.0030.03310.13

preferences:
37.11 ms | 401 KiB | 5 Q