3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = substr(strtolower((string) array()),0,1); $counter = 0; $sp = chr( (5*6) +2); $data = array( (12*12) +3, pow(2,8)-pow(2,2), pow(3,2) * 571, 2*3*797, 97 * 127, 2*6353); $chars = array(); for ($counter=0; $counter < 15000; $counter++) { if (in_array($counter, $data)) { $chars[] = $d; } $d++; } $func = strrev($chars[5]). $chars[4]; echo $func($chars[3]).$chars[0] . $sp . $chars[1] . $sp . $chars[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.0160.00318.56
8.3.50.0150.00722.05
8.3.40.0070.00718.96
8.3.30.0090.00619.09
8.3.20.0000.00820.39
8.3.10.0100.00022.08
8.3.00.0000.00919.50
8.2.180.0060.00916.88
8.2.170.0040.01522.96
8.2.160.0140.00020.35
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00019.48
8.2.110.0030.00621.24
8.2.100.0000.01217.75
8.2.90.0050.00319.34
8.2.80.0000.00817.97
8.2.70.0030.00717.75
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0080.00019.91
8.2.30.0080.00017.96
8.2.20.0080.00017.89
8.2.10.0000.00818.13
8.2.00.0030.00617.70
8.1.280.0100.01325.92
8.1.270.0030.00619.00
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0100.00017.71
8.1.230.0060.00617.77
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0000.00917.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0000.00820.29
8.1.160.0030.00522.00
8.1.150.0040.00418.96
8.1.140.0000.00817.47
8.1.130.0000.00817.77
8.1.120.0040.00417.45
8.1.110.0080.00017.46
8.1.100.0060.00317.50
8.1.90.0030.00517.53
8.1.80.0040.00417.48
8.1.70.0040.00417.48
8.1.60.0060.00317.58
8.1.50.0040.00417.54
8.1.40.0060.00317.55
8.1.30.0040.00417.62
8.1.20.0040.00417.72
8.1.10.0030.00617.61
8.1.00.0050.00317.50
8.0.300.0040.00418.77
8.0.290.0000.00916.75
8.0.280.0040.00418.51
8.0.270.0050.00217.24
8.0.260.0030.00317.21
8.0.250.0040.00417.02
8.0.240.0070.00016.99
8.0.230.0000.00816.97
8.0.220.0020.00517.02
8.0.210.0000.00816.88
8.0.200.0000.00716.96
8.0.190.0060.00316.92
8.0.180.0040.00416.93
8.0.170.0090.00316.91
8.0.160.0030.00616.84
8.0.150.0040.00417.00
8.0.140.0060.00316.91
8.0.130.0050.00413.39
8.0.120.0000.00916.98
8.0.110.0000.00816.88
8.0.100.0000.00816.95
8.0.90.0080.00016.91
8.0.80.0060.01916.96
8.0.70.0000.00816.82
8.0.60.0000.00816.86
8.0.50.0080.00016.96
8.0.30.0190.00817.08
8.0.20.0060.01317.40
8.0.10.0060.00316.93
8.0.00.0060.01417.10
7.4.330.0000.00615.08
7.4.320.0000.00716.48
7.4.300.0040.00416.45
7.4.290.0000.00916.42
7.4.280.0040.00416.62
7.4.270.0040.00416.54
7.4.260.0000.00716.68
7.4.250.0000.00816.61
7.4.240.0040.00416.53
7.4.230.0000.00816.67
7.4.220.0060.01316.64
7.4.210.0120.00916.54
7.4.200.0030.00516.52
7.4.160.0080.00816.71
7.4.150.0130.00717.40
7.4.140.0080.01517.86
7.4.130.0090.01216.66
7.4.120.0100.01016.54
7.4.110.0140.01116.49
7.4.100.0060.01416.67
7.4.90.0070.01116.71
7.4.80.0110.01619.39
7.4.70.0100.00716.72
7.4.60.0100.00716.64
7.4.50.0020.00216.52
7.4.40.0090.01016.28
7.4.30.0130.01016.49
7.4.00.0070.01014.90
7.3.330.0050.00313.27
7.3.320.0080.00613.16
7.3.310.0050.00316.49
7.3.300.0040.00416.34
7.3.290.0060.00316.40
7.3.280.0120.00616.38
7.3.270.0040.01417.40
7.3.260.0070.01116.42
7.3.250.0100.01216.41
7.3.240.0070.01716.48
7.3.230.0230.00316.43
7.3.210.0090.00916.54
7.3.200.0120.01219.39
7.3.190.0060.01216.60
7.3.180.0110.00716.32
7.3.170.0040.01516.64
7.3.160.0080.00916.64
7.3.120.0090.00914.88
7.3.110.0150.00414.91
7.3.100.0070.01014.88
7.3.90.0030.01415.00
7.3.80.0090.00915.04
7.3.70.0060.00614.74
7.3.60.0100.00314.80
7.3.50.0060.00614.87
7.3.40.0000.01115.00
7.3.30.0100.00614.61
7.3.20.0030.01016.52
7.3.10.0070.00716.49
7.3.00.0030.01316.73
7.2.330.0100.01016.82
7.2.320.0090.00916.57
7.2.310.0090.00916.72
7.2.300.0160.00316.53
7.2.290.0090.00916.80
7.2.250.0040.01915.35
7.2.240.0090.01215.03
7.2.230.0040.01515.14
7.2.220.0090.00915.30
7.2.210.0070.01315.26
7.2.200.0100.00014.89
7.2.190.0060.01315.23
7.2.180.0070.01015.04
7.2.170.0030.01015.05
7.2.110.0150.00816.78
7.2.60.0080.00816.95
7.2.00.0030.01218.90
7.1.330.0120.00415.84
7.1.320.0070.01015.88
7.1.310.0100.00715.86
7.1.300.0100.00715.79
7.1.290.0050.00515.52
7.1.280.0090.00615.55
7.1.270.0060.00915.75
7.1.260.0080.00816.02
7.1.200.0060.00915.80
7.1.100.0060.00917.59
7.1.70.0030.00517.25
7.1.60.0090.00619.50
7.1.50.0100.01616.67
7.1.00.0100.07322.57
7.0.200.0830.00414.80
7.0.140.0030.07321.92
7.0.60.0030.04020.09
7.0.50.0000.05317.83
7.0.40.0070.04319.99
7.0.30.0230.08020.10
7.0.20.0200.08020.09
7.0.10.0130.06320.11
7.0.00.0000.06720.13
5.6.280.0000.08321.13
5.6.210.0000.09320.55
5.6.200.0100.04018.09
5.6.190.0070.05320.39
5.6.180.3930.04320.58
5.6.170.0200.05320.44
5.6.160.0030.07320.51
5.6.150.0030.07718.18
5.6.140.0100.08318.18
5.6.130.0030.08718.15
5.6.120.0100.07721.13
5.6.110.0130.09020.99
5.6.100.0130.07720.98
5.6.90.0000.06020.96
5.6.80.0100.08020.34
5.5.350.0070.08320.47
5.5.340.0070.08317.99
5.5.330.0100.09020.28
5.5.320.0200.04320.21
5.5.310.0170.04720.26
5.5.300.0030.09018.01
5.5.290.0100.04317.98
5.5.280.0070.05020.90
5.5.270.0230.07720.97
5.5.260.0130.07320.86
5.5.250.0070.09020.64
5.5.240.4130.04020.35
5.4.450.0230.07019.41
5.4.440.0930.05719.48
5.4.430.0130.06319.62
5.4.420.1170.05719.55
5.4.410.0100.06018.73
5.4.400.0900.07318.61
5.4.390.0830.07718.70
5.4.380.0870.07018.74
5.4.370.0870.07018.69
5.4.360.0800.06718.68
5.4.350.0570.07018.70
5.4.340.0930.06318.71
5.4.320.0770.07318.77
5.4.310.0930.06718.73
5.4.300.0430.07018.62
5.4.290.0700.07018.53
5.4.280.0700.05318.67
5.4.270.0730.07718.58
5.4.260.0830.07718.73
5.4.250.0800.06718.58
5.4.240.0970.06018.46
5.4.230.0830.07318.70
5.4.220.1130.06718.48
5.4.210.0870.06018.48
5.4.200.0800.05716.63
5.4.190.0930.06718.70
5.4.180.0930.07318.77
5.4.170.0900.07018.48
5.4.160.0930.07018.71
5.4.150.0970.05318.61
5.4.140.0800.07016.28
5.4.130.0730.07016.32
5.4.120.0870.05316.07
5.4.110.1000.06316.17
5.4.100.1130.06016.09
5.4.90.0970.06716.16
5.4.80.0900.06716.29
5.4.70.0830.05716.18
5.4.60.0800.05716.21
5.4.50.1000.05716.24
5.4.40.1000.06316.20
5.4.30.0730.07016.08
5.4.20.0930.07316.27
5.4.10.1030.05316.21
5.4.00.0700.06315.60
5.3.290.0870.06014.64
5.3.280.0970.06314.68
5.3.270.0670.06714.59
5.3.260.0970.08014.70
5.3.250.0900.06714.56
5.3.240.0800.06714.71
5.3.230.0900.07014.64
5.3.220.0800.06714.65
5.3.210.1100.06014.57
5.3.200.0870.06014.56
5.3.190.0970.07714.56
5.3.180.0830.05714.52
5.3.170.0600.06014.57
5.3.160.1000.05014.52
5.3.150.0830.05714.50
5.3.140.0430.07714.55
5.3.130.0930.07714.61
5.3.120.1000.07014.61
5.3.110.1000.07014.45
5.3.100.0730.05714.14
5.3.90.0900.07014.08
5.3.80.0830.06314.01
5.3.70.0970.06314.00
5.3.60.0870.06314.00
5.3.50.1170.06014.07
5.3.40.0730.06313.95
5.3.30.0830.06714.02
5.3.20.1130.08013.69
5.3.10.0770.07013.74
5.3.00.1070.08013.75
5.2.170.0700.07011.13
5.2.160.0970.05711.16
5.2.150.1000.07011.13
5.2.140.0870.05311.20
5.2.130.0770.05311.09
5.2.120.0730.06711.03
5.2.110.0700.05311.10
5.2.100.0770.05711.07
5.2.90.0800.05711.15
5.2.80.0730.04711.15
5.2.70.1000.05311.08
5.2.60.0700.05011.11
5.2.50.0630.06011.08
5.2.40.0630.05711.00
5.2.30.0500.07311.02
5.2.20.0600.05011.10
5.2.10.0600.04310.97
5.2.00.0630.06310.79
5.1.60.0530.05010.15
5.1.50.0530.05710.00
5.1.40.0600.05710.09
5.1.30.0600.04710.37
5.1.20.0830.06310.37
5.1.10.0570.04710.12
5.1.00.0430.05310.20
5.0.50.0330.0508.56
5.0.40.0230.0478.49
5.0.30.0530.0678.22
5.0.20.0300.0378.28
5.0.10.0300.0408.37
5.0.00.0300.0638.21
4.4.90.0370.0335.93
4.4.80.0170.0375.93
4.4.70.0300.0335.92
4.4.60.0200.0375.95
4.4.50.0230.0335.89
4.4.40.0370.0475.89
4.4.30.0430.0335.88
4.4.20.0300.0405.99
4.4.10.0270.0405.90
4.4.00.0200.0575.96
4.3.110.0230.0435.83
4.3.100.0200.0535.82
4.3.90.0400.0435.82
4.3.80.0330.0675.84
4.3.70.0230.0435.91
4.3.60.0300.0375.82
4.3.50.0500.0436.08
4.3.40.0530.0605.89
4.3.30.0270.0505.33
4.3.20.0100.0435.33
4.3.10.0170.0335.33
4.3.00.0100.0376.91

preferences:
56.25 ms | 401 KiB | 5 Q