3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strtr('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.', array_combine(range('A', 'Z'), range('a', 'z'))); echo 'a' + 2;

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.01216.75
8.3.50.0130.00718.34
8.3.40.0070.00718.81
8.3.30.0150.00720.60
8.3.20.0050.00318.76
8.3.10.0040.00418.73
8.3.00.0040.00419.38
8.2.180.0040.01116.50
8.2.170.0170.00022.96
8.2.160.0130.00319.00
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00419.54
8.2.110.0030.00722.10
8.2.100.0120.00017.66
8.2.90.0000.00819.07
8.2.80.0080.00017.97
8.2.70.0080.00317.50
8.2.60.0040.00417.90
8.2.50.0090.00018.07
8.2.40.0030.00519.35
8.2.30.0030.00617.66
8.2.20.0070.00317.64
8.2.10.0030.00517.67
8.2.00.0070.00017.59
8.1.280.0100.00725.92
8.1.270.0000.00823.99
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00320.82
8.1.230.0070.00417.77
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0100.00017.36
8.1.190.0000.00817.22
8.1.180.0000.00918.10
8.1.170.0040.00418.50
8.1.160.0000.00718.89
8.1.150.0050.00218.39
8.1.140.0000.00717.38
8.1.130.0040.00419.02
8.1.120.0040.00417.26
8.1.110.0050.00217.37
8.1.100.0030.00317.17
8.1.90.0070.00017.32
8.1.80.0000.00817.33
8.1.70.0030.00517.23
8.1.60.0050.00317.46
8.1.50.0050.00317.38
8.1.40.0090.00017.48
8.1.30.0000.01117.63
8.1.20.0040.00417.52
8.1.10.0030.00617.55
8.1.00.0080.00017.45
8.0.300.0020.00518.77
8.0.290.0050.00316.75
8.0.280.0040.00418.58
8.0.270.0040.00417.21
8.0.260.0000.00616.95
8.0.250.0020.00516.90
8.0.240.0070.00017.00
8.0.230.0040.00416.97
8.0.220.0000.00716.79
8.0.210.0000.00716.80
8.0.200.0060.00016.78
8.0.190.0000.00816.87
8.0.180.0040.00416.94
8.0.170.0030.00616.84
8.0.160.0080.00316.87
8.0.150.0050.00316.88
8.0.140.0040.00416.85
8.0.130.0030.00313.25
8.0.120.0000.00816.85
8.0.110.0000.00716.79
8.0.100.0040.00416.84
8.0.90.0040.00416.77
8.0.80.0070.00716.85
8.0.70.0050.00316.75
8.0.60.0040.00416.80
8.0.50.0030.00616.84
8.0.30.0090.00916.91
8.0.20.0120.00716.94
8.0.10.0070.00016.96
8.0.00.0040.01416.58
7.4.330.0000.00512.86
7.4.320.0000.00616.38
7.4.300.0000.00616.55
7.4.290.0030.00316.47
7.4.280.0040.00416.45
7.4.270.0040.00416.46
7.4.260.0040.00313.05
7.4.250.0040.00416.45
7.4.240.0080.00016.45
7.4.230.0030.00316.56
7.4.220.0390.01116.45
7.4.210.0120.00316.54
7.4.200.0030.00316.57
7.4.190.0040.00416.47
7.4.160.0150.00016.34
7.4.150.0100.00716.30
7.4.140.0090.01517.86
7.4.130.0090.01216.43
7.4.120.0030.01316.42
7.4.110.0110.00616.48
7.4.100.0120.00916.21
7.4.90.0150.00916.42
7.4.80.0070.01019.39
7.4.70.0110.00716.26
7.4.60.0060.01516.29
7.4.50.0060.00316.41
7.4.40.0070.01116.36
7.4.30.0100.00616.59
7.4.00.0070.00714.72
7.3.330.0030.00313.11
7.3.320.0000.00513.07
7.3.310.0040.00416.20
7.3.300.0000.00616.18
7.3.290.0110.00516.22
7.3.280.0000.01516.18
7.3.270.0090.01016.41
7.3.260.0160.00616.26
7.3.240.0130.00316.28
7.3.230.0090.00916.13
7.3.210.0090.00916.24
7.3.200.0080.00816.29
7.3.190.0060.00916.26
7.3.180.0100.00716.45
7.3.170.0080.00816.49
7.3.160.0030.01316.06
7.3.120.0110.00714.99
7.3.110.0100.01014.71
7.3.100.0040.01114.62
7.3.90.0080.00415.00
7.3.80.0030.00614.69
7.3.70.0000.01514.75
7.3.60.0070.00714.55
7.3.50.0060.00914.75
7.3.40.0000.01114.77
7.3.30.0100.00314.59
7.3.20.0070.00716.74
7.3.10.0040.01216.62
7.3.00.0030.00616.36
7.2.330.0060.01216.33
7.2.320.0120.01216.49
7.2.310.0030.01216.36
7.2.300.0060.00916.23
7.2.290.0030.01516.32
7.2.240.0060.01215.09
7.2.230.0070.01014.82
7.2.220.0030.01415.17
7.2.210.0060.00914.92
7.2.200.0060.01214.82
7.2.190.0070.01114.74
7.2.180.0060.00615.00
7.2.170.0090.00614.96
7.2.160.0090.00614.89
7.2.150.0080.00816.78
7.2.140.0100.00716.54
7.2.130.0030.00916.46
7.2.120.0070.00716.90
7.2.110.0080.00816.93
7.2.100.0040.01216.44
7.2.90.0050.00517.00
7.2.80.0020.01316.38
7.2.70.0040.01216.56
7.2.60.0090.00516.77
7.2.50.0070.00716.38
7.2.40.0060.00916.73
7.2.30.0000.01216.87
7.2.20.0030.01016.89
7.2.10.0030.01016.73
7.2.00.0080.00618.02
7.1.330.0080.00515.41
7.1.320.0130.00015.79
7.1.310.0030.01415.75
7.1.300.0060.00915.71
7.1.290.0060.00915.76
7.1.280.0000.01415.61
7.1.270.0090.00315.71
7.1.260.0070.00715.52
7.1.250.0040.00415.45
7.1.200.0030.01015.84
7.1.100.0100.00317.89
7.1.70.0000.00816.77
7.1.60.0040.00719.21
7.1.50.0070.01016.99
7.1.00.0030.07022.53
7.0.200.0000.00716.72
7.0.140.0030.07321.94
7.0.120.0000.07322.15
7.0.60.0070.08019.91
7.0.50.0030.09017.71
7.0.40.0170.07717.74
7.0.30.0100.06717.75
7.0.20.0100.06317.77
7.0.10.0030.07017.74
7.0.00.0030.05317.68
5.6.280.0130.06320.82
5.6.210.0070.08720.48
5.6.200.0070.07718.22
5.6.190.0100.05718.19
5.6.180.0030.04018.22
5.6.170.0170.06018.22
5.6.160.0070.08018.20
5.6.150.0170.07018.11
5.6.140.0030.08318.11
5.6.130.0070.08018.22
5.6.120.0030.07718.15
5.6.110.0100.04718.21
5.6.100.0130.07718.19
5.6.90.0100.05018.14
5.6.80.0070.07717.61
5.6.70.0070.04017.58
5.6.60.0100.05717.52
5.6.50.0070.07017.57
5.6.40.0130.07317.43
5.6.30.0100.05717.54
5.6.20.0130.06317.57
5.6.10.0200.06717.54
5.6.00.0130.07717.49
5.5.350.0270.07320.50
5.5.340.0070.07318.02
5.5.330.0070.07018.00
5.5.320.0070.04717.93
5.5.310.0000.09317.97
5.5.300.0000.05717.91
5.5.290.0030.06017.98
5.5.280.0130.08318.01
5.5.270.0130.06317.96
5.5.260.0000.06717.96
5.5.250.0100.04017.73
5.5.240.0030.08317.31
5.5.230.0170.07017.36
5.5.220.0030.04317.25
5.5.210.0000.08717.35
5.5.200.0170.07317.27
5.5.190.0100.06317.30
5.5.180.0100.08017.33
5.5.160.0000.08317.30
5.5.150.0070.04717.33
5.5.140.0030.08017.36
5.5.130.0030.04017.35
5.5.120.0000.04717.27
5.5.110.0130.06717.36
5.5.100.0030.08317.16
5.5.90.0030.06717.26
5.5.80.0030.04717.22
5.5.70.0100.07317.22
5.5.60.0170.07017.25
5.5.50.0100.07717.21
5.5.40.0070.08017.19
5.5.30.0070.07717.24
5.5.20.0130.05317.19
5.5.10.0070.06317.11
5.5.00.0100.07317.25
5.4.450.0030.06719.33
5.4.440.0070.07019.12
5.4.430.0130.07719.45
5.4.420.0100.08019.21
5.4.410.0070.04319.21
5.4.400.0030.07019.13
5.4.390.0030.07319.02
5.4.380.0100.07718.96
5.4.370.0030.07719.09
5.4.360.0030.08319.13
5.4.350.0070.06719.09
5.4.340.0070.05019.07
5.4.320.0100.07319.03
5.4.310.0170.06019.20
5.4.300.0070.07018.82
5.4.290.0030.08319.00
5.4.280.0030.04318.95
5.4.270.0030.04018.82
5.4.260.0200.06719.12
5.4.250.0130.06318.98
5.4.240.0100.03318.97
5.4.230.0130.06718.97
5.4.220.0100.07319.19
5.4.210.0070.07018.99
5.4.200.0100.06018.97
5.4.190.0070.07719.02
5.4.180.0070.07318.97
5.4.170.0130.04719.01
5.4.160.0070.04019.04
5.4.150.0000.07319.10
5.4.140.0070.05716.30
5.4.130.0100.04016.28
5.4.120.0070.03316.38
5.4.110.0070.06716.38
5.4.100.0030.08016.36
5.4.90.0000.07716.28
5.4.80.0070.05316.27
5.4.70.0070.04716.23
5.4.60.0100.03716.40
5.4.50.0100.07316.26
5.4.40.0070.05016.28
5.4.30.0000.08016.38
5.4.20.0000.05016.38
5.4.10.0100.06716.33
5.4.00.0070.07015.77
5.3.290.0070.07714.63
5.3.280.0070.06714.55
5.3.270.0100.07314.58
5.3.260.0070.04014.54
5.3.250.0070.07314.49
5.3.240.0030.05714.58
5.3.230.0070.03714.55
5.3.220.0070.03314.51
5.3.210.0230.06014.36
5.3.200.0100.07014.66
5.3.190.0070.05014.65
5.3.180.0070.07314.54
5.3.170.0070.06314.49
5.3.160.0100.07014.39
5.3.150.0100.07714.52
5.3.140.0100.07314.48
5.3.130.0070.08014.38
5.3.120.0100.06714.63
5.3.110.0100.07714.49
5.3.100.0070.07713.97
5.3.90.0000.08013.98
5.3.80.0030.06013.78
5.3.70.0070.07313.98
5.3.60.0030.05013.96
5.3.50.0070.07314.03
5.3.40.0070.07313.89
5.3.30.0070.06313.70
5.3.20.0100.04313.63
5.3.10.0030.06013.42
5.3.00.0070.06313.61
5.2.170.0100.05711.14
5.2.160.0070.06010.90
5.2.150.0030.06310.98
5.2.140.0030.06310.99
5.2.130.0130.03310.93
5.2.120.0100.06011.03
5.2.110.0030.06311.01
5.2.100.0130.05310.93
5.2.90.0030.04011.10
5.2.80.0130.05311.10
5.2.70.0100.05011.09
5.2.60.0100.04311.06
5.2.50.0100.02310.87
5.2.40.0030.04011.14
5.2.30.0030.03010.95
5.2.20.0070.04010.90
5.2.10.0070.03310.90
5.2.00.0070.05710.77
5.1.60.0030.0539.83
5.1.50.0070.04310.21
5.1.40.0070.05010.02
5.1.30.0130.04710.32
5.1.20.0030.04010.38
5.1.10.0030.04710.07
5.1.00.0030.04010.10
5.0.50.0070.0438.59
5.0.40.0000.0478.38
5.0.30.0030.0508.05
5.0.20.0070.0408.19
5.0.10.0100.0378.14
5.0.00.0000.0638.13
4.4.90.0030.0177.64
4.4.80.0030.0137.64
4.4.70.0070.0337.64
4.4.60.0100.0307.64
4.4.50.0070.0237.64
4.4.40.0070.0507.64
4.4.30.0000.0377.64
4.4.20.0000.0377.64
4.4.10.0000.0177.64
4.4.00.0070.0477.64
4.3.110.0000.0337.64
4.3.100.0000.0237.64
4.3.90.0030.0277.64
4.3.80.0070.0337.64
4.3.70.0000.0207.64
4.3.60.0000.0237.64
4.3.50.0000.0237.64
4.3.40.0030.0537.64
4.3.30.0030.0237.64
4.3.20.0030.0207.64
4.3.10.0000.0337.64
4.3.00.0070.0207.64

preferences:
48.2 ms | 401 KiB | 5 Q