3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace_callback('~[A-Z]~', function($_) { return 32 + $_[1]; }, 'Important: you are NOT allowed to use a built-in function that converts the string (or just one character) to lowercase (such as ToLower() in .NET, strtolower() in PHP , ...)! You\'re allowed to use all other built-in functions, however.');

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.70.0060.00918.63
8.3.60.0110.00716.88
8.3.50.0110.00817.60
8.3.40.0120.00319.08
8.3.30.0090.00919.09
8.3.20.0030.00519.11
8.3.10.0050.00318.96
8.3.00.0060.00319.63
8.2.180.0040.01116.88
8.2.170.0100.00722.96
8.2.160.0070.01018.79
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.01226.16
8.2.120.0080.00019.64
8.2.110.0070.00322.24
8.2.100.0060.00617.91
8.2.90.0080.00019.08
8.2.80.0080.00017.97
8.2.70.0080.00417.72
8.2.60.0000.00817.80
8.2.50.0030.00518.10
8.2.40.0040.00418.09
8.2.30.0000.00719.39
8.2.20.0040.00417.84
8.2.10.0060.00317.95
8.2.00.0040.00418.04
8.1.280.0070.01125.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00023.92
8.1.230.0040.00817.71
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0040.00417.48
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0050.00318.62
8.1.160.0000.00722.08
8.1.150.0080.00018.79
8.1.140.0000.00817.49
8.1.130.0040.00419.19
8.1.120.0050.00317.55
8.1.110.0030.00517.57
8.1.100.0040.00417.53
8.1.90.0040.00417.43
8.1.80.0030.00517.46
8.1.70.0000.00717.50
8.1.60.0000.00817.67
8.1.50.0040.00417.48
8.1.40.0030.00617.64
8.1.30.0000.01017.67
8.1.20.0000.00817.77
8.1.10.0070.00017.54
8.1.00.0040.00417.59
8.0.300.0030.00618.77
8.0.290.0040.00416.88
8.0.280.0000.00718.32
8.0.270.0030.00317.28
8.0.260.0000.00716.84
8.0.250.0000.00816.98
8.0.240.0050.00217.08
8.0.230.0030.00517.06
8.0.220.0070.00016.97
8.0.210.0040.00416.86
8.0.200.0060.00016.99
8.0.190.0080.00017.06
8.0.180.0070.00017.08
8.0.170.0040.00417.12
8.0.160.0030.00616.90
8.0.150.0080.00017.01
8.0.140.0070.00016.89
8.0.130.0000.00513.45
8.0.120.0030.00716.87
8.0.110.0040.00416.92
8.0.100.0040.00417.02
8.0.90.0000.00716.93
8.0.80.0150.00016.96
8.0.70.0000.00716.86
8.0.60.0040.00416.89
8.0.50.0070.00016.99
8.0.30.0090.00917.31
8.0.20.0110.00817.46
8.0.10.0030.00517.16
8.0.00.0100.00916.92
7.4.330.0050.00013.06
7.4.320.0000.00616.79
7.4.300.0030.00316.74
7.4.290.0030.00516.75
7.4.280.0050.00316.77
7.4.270.0000.00716.66
7.4.260.0030.00313.42
7.4.250.0030.00616.66
7.4.240.0000.00716.59
7.4.230.0070.00016.58
7.4.220.0200.00716.54
7.4.210.0120.00916.69
7.4.200.0000.00716.76
7.4.190.0040.00416.52
7.4.160.0050.01016.59
7.4.150.0090.01016.63
7.4.140.0120.00917.86
7.4.130.0150.00616.93
7.4.120.0040.01416.78
7.4.110.0070.01016.49
7.4.100.0110.00716.47
7.4.90.0120.00616.63
7.4.80.0110.01119.39
7.4.70.0100.00716.59
7.4.60.0210.00016.58
7.4.50.0040.00416.48
7.4.40.0060.00916.51
7.4.30.0090.00816.75
7.4.00.0070.00714.91
7.3.330.0030.00313.48
7.3.320.0000.00613.44
7.3.310.0030.00516.55
7.3.300.0070.00016.43
7.3.290.0080.00716.43
7.3.280.0060.01616.45
7.3.270.0090.00916.54
7.3.260.0120.00616.68
7.3.240.0120.00616.49
7.3.230.0030.01516.71
7.3.210.0080.00816.66
7.3.200.0120.00416.54
7.3.190.0060.00916.77
7.3.180.0100.01016.59
7.3.170.0080.00816.58
7.3.160.0160.00316.44
7.3.120.0060.00915.00
7.2.330.0060.01816.92
7.2.320.0070.01116.70
7.2.310.0030.01716.62
7.2.300.0040.01216.73
7.2.290.0100.00716.67
7.2.80.0200.00716.87
7.2.00.0060.01619.48
7.1.200.0040.01115.72
7.1.70.0040.00417.34
7.1.60.0030.00719.21
7.1.50.0040.01217.19
7.1.00.0070.03022.43
7.0.200.0030.00716.89
7.0.140.0070.06722.08
7.0.120.0030.07322.03
7.0.60.0070.04320.00
7.0.50.0030.06317.90
7.0.40.0130.08320.36
7.0.30.0070.04020.27
7.0.20.0000.04720.27
7.0.10.0030.04320.23
7.0.00.0100.03720.17
5.6.280.0000.07720.78
5.6.210.0170.07020.55
5.6.200.0030.08318.19
5.6.190.0030.06020.47
5.6.180.0070.07720.45
5.6.170.0000.04720.50
5.6.160.0100.03720.51
5.6.150.0000.04320.31
5.6.140.0070.03720.51
5.6.130.0100.03320.33
5.6.120.0030.05020.33
5.6.110.0030.04020.32
5.6.100.0100.03720.16
5.6.90.0030.04020.16
5.6.80.0030.04019.78
5.6.70.0000.04319.54
5.6.60.0030.04019.77
5.6.50.0030.04019.55
5.6.40.0030.04019.52
5.6.30.0030.04019.87
5.6.20.0100.03319.68
5.6.10.0030.04019.79
5.6.00.0030.04019.71
5.5.350.0370.06020.47
5.5.340.0100.07317.92
5.5.330.0030.04320.39
5.5.320.0030.05020.31
5.5.310.0030.04020.34
5.5.300.0030.04019.96
5.5.290.0030.04020.03
5.5.280.0070.04020.30
5.5.270.0030.04019.95
5.5.260.0030.04020.19
5.5.250.0030.04019.95
5.5.240.0070.03719.50
5.5.230.0030.04019.42
5.5.220.0030.04719.69
5.5.210.0000.04719.67
5.5.200.0030.04019.32
5.5.190.0000.04319.67
5.5.180.0070.04019.57
5.5.160.0070.03719.34
5.5.150.0100.03719.59
5.5.140.0100.03319.64
5.5.130.0030.06319.48
5.5.120.0070.03719.48
5.5.110.0170.06319.47
5.5.100.0100.07719.38
5.5.90.0030.07719.37
5.5.80.0170.07019.45
5.5.70.0070.04719.37
5.5.60.0030.05719.42
5.5.50.0030.07319.56
5.5.40.0170.06019.52
5.5.30.0230.04019.52
5.5.20.0070.03719.46
5.5.10.0100.03319.27
5.5.00.0100.07319.36
5.4.450.0070.03719.48
5.4.440.0000.04019.57
5.4.430.0070.03319.56
5.4.420.0000.04019.46
5.4.410.0070.03319.46
5.4.400.0030.03719.14
5.4.390.0030.03719.24
5.4.380.0030.04318.92
5.4.370.0000.04018.85
5.4.360.0200.03019.14
5.4.350.0070.03718.98
5.4.340.0030.03718.97
5.4.320.0030.05719.14
5.4.310.0070.03318.86
5.4.300.0000.04018.85
5.4.290.0130.06319.00
5.4.280.0070.04319.20
5.4.270.0100.07019.15
5.4.260.0070.08319.15
5.4.250.0130.06718.84
5.4.240.0070.07718.84
5.4.230.0100.07319.14
5.4.220.0070.05018.86
5.4.210.0100.07319.26
5.4.200.0170.05319.05
5.4.190.0000.04719.07
5.4.180.0070.04018.91
5.4.170.0030.06319.18
5.4.160.0070.04719.13
5.4.150.0030.04019.22
5.4.140.0070.07316.55
5.4.130.0070.04316.34
5.4.120.0000.03716.48
5.4.110.0000.05316.42
5.4.100.0000.04016.43
5.4.90.0100.03016.53
5.4.80.0000.04016.45
5.4.70.0030.03716.43
5.4.60.0030.04016.41
5.4.50.0070.03316.31
5.4.40.0070.06716.46
5.4.30.0070.03716.52
5.4.20.0070.04016.39
5.4.10.0100.07016.35
5.4.00.0100.07015.81
5.3.290.0030.03714.57
5.3.280.0070.07714.57
5.3.270.0100.06014.55
5.3.260.0100.07314.74
5.3.250.0070.07314.69
5.3.240.0000.07014.64
5.3.230.0000.04014.48
5.3.220.0070.03314.73
5.3.210.0070.03314.62
5.3.200.0030.03714.57
5.3.190.0000.05314.59
5.3.180.0130.06714.55
5.3.170.0070.03314.61
5.3.160.0100.06714.59
5.3.150.0100.07314.48
5.3.140.0100.07014.54
5.3.130.0100.07014.59
5.3.120.0070.05314.46
5.3.110.0030.06714.57
5.3.100.0030.07713.92
5.3.90.0070.05314.05
5.3.80.0000.07313.98
5.3.70.0030.05014.06
5.3.60.0130.06313.91
5.3.50.0000.06013.93
5.3.40.0070.04013.99
5.3.30.0100.07313.95
5.3.20.0100.03713.73
5.3.10.0070.05313.80
5.3.00.0070.04313.63
5.2.170.0030.07311.22
5.2.160.0030.04311.13
5.2.150.0000.05711.13
5.2.140.0030.06011.13
5.2.130.0030.05311.02
5.2.120.0130.02311.10
5.2.110.0100.05311.10
5.2.100.0070.04011.04
5.2.90.0070.05011.00
5.2.80.0130.06011.02
5.2.70.0000.07311.06
5.2.60.0070.06010.96
5.2.50.0030.06710.94
5.2.40.0030.04711.15
5.2.30.0000.06710.86
5.2.20.0070.05710.92
5.2.10.0070.05310.88
5.2.00.0000.05010.86
5.1.60.0000.0609.97
5.1.50.0000.05010.05
5.1.40.0030.0579.95
5.1.30.0070.02710.48
5.1.20.0030.02710.34
5.1.10.0070.04710.04
5.1.00.0070.04010.04
5.0.50.0070.0438.55
5.0.40.0030.0238.41
5.0.30.0000.0638.29
5.0.20.0030.0408.10
5.0.10.0030.0378.18
5.0.00.0000.0438.05
4.4.90.0070.0236.08
4.4.80.0100.0206.08
4.4.70.0070.0276.08
4.4.60.0000.0236.08
4.4.50.0000.0406.08
4.4.40.0000.0406.08
4.4.30.0000.0176.08
4.4.20.0000.0376.08
4.4.10.0030.0206.08
4.4.00.0000.0436.08
4.3.110.0030.0306.08
4.3.100.0130.0306.08
4.3.90.0030.0336.08
4.3.80.0030.0276.08
4.3.70.0030.0236.08
4.3.60.0100.0176.08
4.3.50.0030.0376.08
4.3.40.0070.0206.08
4.3.30.0030.0376.08
4.3.20.0000.0336.08
4.3.10.0070.0276.08
4.3.00.0000.0306.08

preferences:
44.19 ms | 401 KiB | 5 Q