3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace_callback('~[A-Z]~', function($_) { return chr(32 + ord($_[0])); }, '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.60.0140.00416.73
8.3.50.0160.00316.53
8.3.40.0090.00618.93
8.3.30.0100.01318.79
8.3.20.0080.00019.03
8.3.10.0080.00018.90
8.3.00.0090.00019.38
8.2.180.0120.00325.92
8.2.170.0110.01118.91
8.2.160.0170.00322.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0040.00419.64
8.2.110.0040.01421.97
8.2.100.0040.00817.91
8.2.90.0080.00017.97
8.2.80.0030.00617.97
8.2.70.0080.00017.88
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0060.00318.16
8.2.30.0040.00419.96
8.2.20.0060.00318.01
8.2.10.0070.00017.96
8.2.00.0000.00717.90
8.1.280.0030.01525.92
8.1.270.0040.00423.99
8.1.260.0070.00726.35
8.1.250.0000.00728.09
8.1.240.0140.00722.72
8.1.230.0090.00320.89
8.1.220.0090.00017.76
8.1.210.0000.01019.04
8.1.200.0000.00817.35
8.1.190.0000.00917.53
8.1.180.0030.00518.10
8.1.170.0060.00318.79
8.1.160.0000.00818.89
8.1.150.0000.00718.64
8.1.140.0030.00617.46
8.1.130.0000.00819.38
8.1.120.0030.00517.59
8.1.110.0050.00217.43
8.1.100.0000.00717.58
8.1.90.0000.00817.57
8.1.80.0050.00217.52
8.1.70.0040.00417.51
8.1.60.0080.00017.68
8.1.50.0040.00417.69
8.1.40.0040.00417.59
8.1.30.0080.00317.66
8.1.20.0040.00417.72
8.1.10.0070.00017.66
8.1.00.0030.00517.48
8.0.300.0040.00419.86
8.0.290.0000.00817.18
8.0.280.0000.00818.36
8.0.270.0030.00316.90
8.0.260.0030.00316.89
8.0.250.0040.00416.98
8.0.240.0050.00217.05
8.0.230.0050.00316.82
8.0.220.0040.00416.79
8.0.210.0000.00716.90
8.0.200.0030.00317.01
8.0.190.0040.00416.91
8.0.180.0040.00416.90
8.0.170.0000.00816.85
8.0.160.0100.00017.03
8.0.150.0030.00616.81
8.0.140.0000.00816.96
8.0.130.0000.00613.34
8.0.120.0040.00416.89
8.0.110.0040.00416.98
8.0.100.0070.00016.98
8.0.90.0000.00716.86
8.0.80.0040.01116.91
8.0.70.0000.00816.87
8.0.60.0060.00316.86
8.0.50.0070.00016.82
8.0.30.0150.00617.31
8.0.20.0110.00817.00
8.0.10.0080.00017.03
8.0.00.0100.01016.92
7.4.330.0060.00013.13
7.4.320.0030.00316.69
7.4.300.0060.00016.65
7.4.290.0030.00316.77
7.4.280.0000.00916.62
7.4.270.0040.00416.73
7.4.260.0080.00013.42
7.4.250.0040.00416.68
7.4.240.0000.00716.66
7.4.230.0030.00316.67
7.4.220.0070.02116.69
7.4.210.0030.01216.61
7.4.200.0030.00316.78
7.4.190.0080.00016.75
7.4.160.0060.01216.54
7.4.150.0100.00716.83
7.4.140.0090.00917.86
7.4.130.0170.00716.83
7.4.120.0030.01516.79
7.4.110.0070.01016.55
7.4.100.0070.01016.62
7.4.90.0080.01216.57
7.4.80.0070.01019.39
7.4.70.0050.01416.51
7.4.60.0120.01116.63
7.4.50.0000.00816.73
7.4.40.0000.01416.56
7.4.30.0080.00816.80
7.4.00.0100.00315.20
7.3.330.0060.00013.44
7.3.320.0030.00313.50
7.3.310.0000.00716.49
7.3.300.0030.00316.50
7.3.290.0090.00916.35
7.3.280.0060.01016.32
7.3.270.0110.00716.45
7.3.260.0170.00016.88
7.3.240.0100.00616.82
7.3.230.0140.00316.85
7.3.210.0060.01216.68
7.3.200.0140.00416.64
7.3.190.0100.00616.45
7.3.180.0030.01416.51
7.3.170.0110.00616.59
7.3.160.0030.01316.46
7.3.120.0070.00715.01
7.3.10.0110.00316.58
7.3.00.0050.00816.80
7.2.330.0100.01316.73
7.2.320.0110.00716.86
7.2.310.0070.01616.66
7.2.300.0130.00316.86
7.2.290.0060.01016.72
7.2.130.0000.01416.90
7.2.120.0060.00616.87
7.2.110.0020.01116.84
7.2.100.0060.00516.94
7.2.90.0050.00717.07
7.2.80.0080.00517.16
7.2.70.0090.00317.13
7.2.60.0100.00616.85
7.2.50.0050.00817.05
7.2.40.0050.00617.03
7.2.30.0070.00517.00
7.2.20.0100.00616.88
7.2.10.0040.00916.93
7.2.00.0050.00917.91
7.1.250.0000.01015.88
7.1.240.0030.00715.57
7.1.230.0060.00315.59
7.1.220.0030.00615.87
7.1.210.0120.00315.84
7.1.200.0070.00715.81
7.1.190.0090.00015.73
7.1.180.0040.01115.84
7.1.170.0070.00315.86
7.1.160.0030.00716.06
7.1.150.0050.00315.83
7.1.140.0040.01115.82
7.1.130.0030.01215.89
7.1.120.0050.00516.01
7.1.110.0030.01015.80
7.1.100.0030.01216.83
7.1.90.0030.00615.96
7.1.80.0100.00315.78
7.1.70.0060.00616.55
7.1.60.0090.00617.57
7.1.50.0090.00916.48
7.1.40.0060.00615.76
7.1.30.0040.00815.74
7.1.20.0140.00016.09
7.1.10.0050.01215.97
7.1.00.0030.03419.02
7.0.330.0000.01215.31
7.0.320.0120.00615.57
7.0.310.0040.00415.46
7.0.300.0050.00515.24
7.0.290.0050.00515.14
7.0.280.0030.00615.32
7.0.270.0030.00815.38
7.0.260.0040.00715.55
7.0.250.0030.01015.39
7.0.240.0040.00715.54
7.0.230.0060.00615.28
7.0.220.0070.00715.57
7.0.210.0030.01015.40
7.0.200.0030.00916.04
7.0.190.0060.00915.33
7.0.180.0030.00815.32
7.0.170.0040.00815.30
7.0.160.0030.00815.32
7.0.150.0040.00715.52
7.0.140.0080.03518.70
7.0.130.0050.00315.61
7.0.120.0040.04318.76
7.0.110.0070.00315.13
7.0.100.0050.00515.46
7.0.90.0070.00715.64
7.0.80.0100.00315.63
7.0.70.0000.01415.32
7.0.60.0110.02317.73
7.0.50.0060.04316.74
7.0.40.0080.03115.62
7.0.30.0090.04315.73
7.0.20.0060.04815.68
7.0.10.0080.04015.54
7.0.00.0060.03815.64
5.6.380.0000.01414.29
5.6.370.0000.01314.70
5.6.360.0070.00714.46
5.6.350.0040.00814.42
5.6.340.0030.01014.25
5.6.330.0060.00914.36
5.6.320.0070.00714.29
5.6.310.0080.00314.48
5.6.300.0030.00914.61
5.6.290.0080.00814.20
5.6.280.0100.03317.87
5.6.270.0090.00614.55
5.6.260.0070.00414.68
5.6.250.0040.01114.50
5.6.240.0110.00014.36
5.6.230.0030.01014.41
5.6.220.0050.00514.12
5.6.210.0100.04017.47
5.6.200.0050.02416.31
5.6.190.0090.03916.34
5.6.180.0030.04616.12
5.6.170.0090.04516.40
5.6.160.0080.03116.22
5.6.150.0050.04816.35
5.6.140.0070.04316.25
5.6.130.0050.03216.28
5.6.120.0080.04516.27
5.6.110.0080.03016.20
5.6.100.0020.03016.28
5.6.90.0050.02816.23
5.6.80.0050.04416.15
5.6.70.0100.04015.93
5.6.60.0070.02516.09
5.6.50.0030.04415.96
5.6.40.0120.01915.92
5.6.30.0070.04015.78
5.6.20.0060.02615.84
5.6.10.0000.03015.82
5.6.00.0070.02515.74
5.5.380.0050.00011.42
5.5.370.0030.00310.87
5.5.360.0040.00411.02
5.5.350.0140.04015.72
5.5.340.0080.02514.50
5.5.330.0060.04514.53
5.5.320.0020.03514.58
5.5.310.0110.03314.45
5.5.300.0100.03814.46
5.5.290.0050.04814.62
5.5.280.0020.03314.34
5.5.270.0060.03614.60
5.5.260.0050.04214.59
5.5.250.0080.04614.36
5.5.240.0100.03814.29
5.5.230.0080.03914.31
5.5.220.0080.03814.21
5.5.210.0000.04614.29
5.5.200.0030.03714.11
5.5.190.0070.04214.24
5.5.180.0060.03814.34
5.5.170.0030.00611.14
5.5.160.0030.03513.95
5.5.150.0030.04413.99
5.5.140.0060.04014.16
5.5.130.0050.04314.32
5.5.120.0020.02214.28
5.5.110.0040.02314.01
5.5.100.0060.02214.12
5.5.90.0090.03614.15
5.5.80.0060.03714.13
5.5.70.0070.02314.04
5.5.60.0030.02314.30
5.5.50.0040.03714.07
5.5.40.0070.03414.09
5.5.30.0090.01614.23
5.5.20.0060.03114.25
5.5.10.0120.03514.24
5.5.00.0040.03214.18
5.4.450.0100.03815.29
5.4.440.0080.02015.32
5.4.430.0100.03415.22
5.4.420.0070.03715.03
5.4.410.0020.03715.26
5.4.400.0000.03014.88
5.4.390.0080.04015.11
5.4.380.0050.04315.03
5.4.370.0090.03515.09
5.4.360.0080.03615.01
5.4.350.0050.03714.89
5.4.340.0050.04214.98
5.4.330.0060.00011.17
5.4.320.0030.03415.02
5.4.310.0050.03915.01
5.4.300.0050.02915.18
5.4.290.0080.02115.20
5.4.280.0080.02015.07
5.4.270.0060.02014.90
5.4.260.0040.03215.13
5.4.250.0030.04314.92
5.4.240.0050.02915.17
5.4.230.0080.03815.08
5.4.220.0050.02514.93
5.4.210.0080.03614.94
5.4.200.0050.03215.04
5.4.190.0060.02514.92
5.4.180.0090.03815.09
5.4.170.0050.02515.08
5.4.160.0050.02515.15
5.4.150.0070.04015.12
5.4.140.0080.03213.72
5.4.130.0040.04113.48
5.4.120.0060.03813.83
5.4.110.0030.02713.68
5.4.100.0030.02513.90
5.4.90.0040.02213.86
5.4.80.0060.04013.69
5.4.70.0050.04313.70
5.4.60.0080.03513.81
5.4.50.0040.02913.81
5.4.40.0100.03313.70
5.4.30.0030.04313.54
5.4.20.0080.03513.70
5.4.10.0100.02113.71
5.4.00.0080.01813.48
5.3.290.0090.04012.71
5.3.280.0070.02012.56
5.3.270.0070.04212.49
5.3.260.0010.02512.46
5.3.250.0020.03312.56
5.3.240.0000.02712.56
5.3.230.0020.03012.59
5.3.220.0030.02312.42
5.3.210.0100.03812.51
5.3.200.0120.03512.49
5.3.190.0060.03812.57
5.3.180.0000.04012.45
5.3.170.0030.04012.73
5.3.160.0050.03912.62
5.3.150.0050.04412.61
5.3.140.0020.03512.65
5.3.130.0070.04012.50
5.3.120.0030.03512.54
5.3.110.0030.03812.57
5.3.100.0080.04012.29
5.3.90.0030.03712.16
5.3.80.0040.04112.31
5.3.70.0050.04012.25
5.3.60.0080.03612.29
5.3.50.0050.03512.24
5.3.40.0020.04312.15
5.3.30.0050.03912.15
5.3.20.0030.03612.01
5.3.10.0000.04312.03
5.3.00.0020.04312.03
5.2.170.0030.03010.69
5.2.160.0040.01910.61
5.2.150.0050.03010.69
5.2.140.0080.03110.69
5.2.130.0060.02610.62
5.2.120.0030.03410.67
5.2.110.0070.03210.65
5.2.100.0010.03610.58
5.2.90.0020.02610.66
5.2.80.0040.01710.66
5.2.70.0060.02610.66
5.2.60.0030.01710.64
5.2.50.0090.02510.63
5.2.40.0070.03110.54
5.2.30.0060.03210.60
5.2.20.0020.02210.60
5.2.10.0050.01810.52
5.2.00.0060.01810.50
5.1.60.0030.01310.08
5.1.50.0040.01310.13
5.1.40.0030.01310.18
5.1.30.0050.02710.37
5.1.20.0020.03510.22
5.1.10.0040.01510.07
5.1.00.0000.03110.19
5.0.50.0030.0189.38
5.0.40.0030.0239.29
5.0.30.0030.0339.24
5.0.20.0030.0239.25
5.0.10.0030.0189.20
5.0.00.0080.0239.25
4.4.90.0000.0238.88
4.4.80.0000.0158.88
4.4.70.0020.0118.88
4.4.60.0030.0088.88
4.4.50.0020.0218.88
4.4.40.0030.0138.88
4.4.30.0000.0128.88
4.4.20.0040.0178.88
4.4.10.0000.0198.88
4.4.00.0060.0178.88
4.3.110.0020.0138.88
4.3.100.0000.0208.88
4.3.90.0000.0158.88
4.3.80.0020.0298.88
4.3.70.0080.0108.88
4.3.60.0020.0138.88
4.3.50.0000.0138.88
4.3.40.0030.0278.88
4.3.30.0040.0188.88
4.3.20.0020.0128.88
4.3.10.0020.0158.88
4.3.00.0020.0148.88

preferences:
49.75 ms | 401 KiB | 5 Q