3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = ["War and Peace", "Reading Rainbow: The Best Unicorn Ever", "Maus", "Home for a Bunny"]; for(;list($k,$w)=each($in);$S[]=$w){ for($l=$i=mb_strlen($w);$i--;){ $c=array_sum(unpack("C*",mb_substr($w,$i,1))); 96<$c&&$c<123 and $v+=$c-96 or 64<$c&&$c<91 and $v+=1.5*$c-96 or 48<$c&&$c>32||$c>57&&$c<127 and $v-=1; } $v=$v/l; preg_match_all("/\d+/",$w,$m); $v-=array_sum($m[0]); preg_match("/((^| )R.*){2}/",$w)&&$v=-1^1<<63; $t[]=$v; } array_multisort($t,$S); var_dump($S);

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.0030.01618.56
8.3.50.0150.00721.25
8.3.40.0000.01418.76
8.3.30.0200.00018.90
8.3.20.0000.00820.16
8.3.10.0070.00021.77
8.3.00.0000.00817.93
8.2.180.0070.01016.88
8.2.170.0040.01122.96
8.2.160.0100.00320.43
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0080.00017.63
8.2.110.0030.00619.31
8.2.100.0060.00617.75
8.2.90.0000.00919.11
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0050.00517.68
8.2.50.0040.00418.07
8.2.40.0040.00419.45
8.2.30.0070.00020.52
8.2.20.0040.00417.71
8.2.10.0040.00418.09
8.2.00.0000.00818.08
8.1.280.0100.00725.92
8.1.270.0130.00722.15
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00422.75
8.1.230.0000.01117.42
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0050.00317.35
8.1.180.0080.00018.10
8.1.170.0000.00818.50
8.1.160.0000.00721.95
8.1.150.0000.00718.86
8.1.140.0040.00417.47
8.1.130.0070.00017.66
8.1.120.0000.00817.46
8.1.110.0040.00417.40
8.1.100.0000.00717.37
8.1.90.0070.00017.49
8.1.80.0030.00617.46
8.1.70.0070.00017.41
8.1.60.0000.00817.58
8.1.50.0080.00017.37
8.1.40.0060.00317.52
8.1.30.0040.00417.68
8.1.20.0040.00417.65
8.1.10.0040.00417.47
8.1.00.0030.00617.41
8.0.300.0000.00818.77
8.0.290.0070.00016.58
8.0.280.0000.00718.27
8.0.270.0000.00717.22
8.0.260.0030.00317.20
8.0.250.0040.00416.93
8.0.240.0030.00316.99
8.0.230.0110.00016.96
8.0.220.0030.00516.89
8.0.210.0000.00716.82
8.0.200.0000.00617.01
8.0.190.0000.00716.99
8.0.180.0080.00316.86
8.0.170.0050.00216.92
8.0.160.0000.00716.80
8.0.150.0040.00416.89
8.0.140.0000.00716.89
8.0.130.0000.00513.33
8.0.120.0000.00816.90
8.0.110.0040.00416.77
8.0.100.0040.00416.95
8.0.90.0030.00316.94
8.0.80.0070.01016.95
8.0.70.0070.00316.96
8.0.60.0080.00016.88
8.0.50.0040.00416.97
8.0.30.0060.01417.07
8.0.20.0140.00917.40
8.0.10.0000.00816.86
8.0.00.0160.00716.69
7.4.330.0030.00315.08
7.4.320.0000.00716.74
7.4.300.0000.00616.63
7.4.290.0030.00316.88
7.4.280.0070.00316.64
7.4.270.0030.00716.89
7.4.260.0060.00316.86
7.4.250.0090.00016.68
7.4.240.0030.00516.73
7.4.230.0030.00516.67
7.4.220.0180.00616.92
7.4.210.0070.00716.73
7.4.200.0000.00816.84
7.4.160.0060.00916.68
7.4.150.0130.00717.40
7.4.140.0100.01317.86
7.4.130.0120.00716.66
7.4.120.0120.00616.82
7.4.110.0040.01416.61
7.4.100.0150.00316.61
7.4.90.0110.00816.67
7.4.80.0110.01419.39
7.4.70.0070.01016.71
7.4.60.0060.01016.87
7.4.50.0040.00416.50
7.4.40.0180.00016.80
7.4.30.0110.01216.68
7.4.10.0070.01114.99
7.4.00.0080.00815.27
7.3.330.0030.00313.39
7.3.320.0050.00013.41
7.3.310.0000.00716.59
7.3.300.0070.00016.56
7.3.290.0070.00916.55
7.3.280.0090.00916.54
7.3.270.0110.00717.40
7.3.260.0180.00616.51
7.3.250.0070.01016.57
7.3.240.0120.00616.83
7.3.230.0100.00716.71
7.3.210.0090.00916.73
7.3.200.0070.01016.82
7.3.190.0120.00616.75
7.3.180.0070.01016.75
7.3.170.0060.01116.52
7.3.160.0150.00316.59
7.3.130.0130.00315.28
7.3.120.0070.01115.27
7.3.110.0090.00914.99
7.3.100.0150.00315.30
7.3.90.0000.01415.29
7.3.80.0030.00815.42
7.3.70.0060.01215.27
7.3.60.0070.00815.13
7.3.50.0070.00314.93
7.3.40.0030.01015.02
7.3.30.0090.00415.14
7.3.20.0060.00616.91
7.3.10.0040.00817.14
7.3.00.0080.00317.01
7.2.330.0170.00316.75
7.2.320.0040.01917.02
7.2.310.0090.00916.92
7.2.300.0070.01616.81
7.2.290.0060.01016.75
7.2.260.0060.01214.94
7.2.250.0030.01015.24
7.2.240.0030.01015.29
7.2.230.0150.00315.23
7.2.220.0070.01115.22
7.2.210.0040.01115.21
7.2.200.0040.01115.34
7.2.190.0060.00715.18
7.2.180.0040.01115.16
7.2.170.0030.01015.22
7.2.160.0000.01415.50
7.2.150.0060.01116.98
7.2.140.0070.01017.04
7.2.130.0000.01617.11
7.2.120.0090.00317.24
7.2.110.0070.00417.24
7.2.100.0130.00016.93
7.2.90.0070.00717.02
7.2.80.0040.01017.21
7.2.70.0000.01416.89
7.2.60.0020.01517.00
7.2.50.0000.01516.99
7.2.40.0100.00317.33
7.2.30.0030.01017.18
7.2.20.0060.01217.19
7.2.10.0110.00017.32
7.2.00.0020.01218.26
7.1.330.0080.00416.04
7.1.320.0030.01115.75
7.1.310.0030.01216.10
7.1.300.0070.00315.97
7.1.290.0000.01016.23
7.1.280.0060.01215.59
7.1.270.0040.00816.14
7.1.260.0000.01115.92
7.1.250.0070.00715.79
7.1.240.0090.00015.64
7.1.230.0030.00916.09
7.1.220.0030.01215.71
7.1.210.0040.01216.06
7.1.200.0050.01015.96
7.1.190.0030.00616.04
7.1.180.0100.00315.80
7.1.170.0150.00015.89
7.1.160.0040.00815.71
7.1.150.0060.01016.11
7.1.140.0020.00716.03
7.1.130.0040.01115.90
7.1.120.0060.01116.13
7.1.110.0000.01116.07
7.1.100.0050.01017.31
7.1.90.0030.01016.11
7.1.80.0060.00616.08
7.1.70.0040.00516.68
7.1.60.0140.00817.63
7.1.50.0090.00916.46
7.1.40.0060.00616.02
7.1.30.0030.01016.11
7.1.20.0030.00616.01
7.1.10.0000.01315.96
7.1.00.0060.04019.16
7.0.330.0120.00315.66
7.0.320.0080.00415.71
7.0.310.0070.00315.32
7.0.300.0030.00915.81
7.0.290.0060.00615.70
7.0.280.0030.01015.52
7.0.270.0030.00515.49
7.0.260.0040.00715.56
7.0.250.0060.00915.64
7.0.240.0100.00615.74
7.0.230.0000.01115.45
7.0.220.0000.00915.70
7.0.210.0000.00915.73
7.0.200.0030.00816.25
7.0.190.0000.00915.71
7.0.180.0080.00015.50
7.0.170.0000.01215.45
7.0.160.0030.01015.64
7.0.150.0030.01315.37
7.0.140.0070.00715.77
7.0.130.0100.00015.58
7.0.120.0060.00915.62
7.0.110.0090.00915.65
7.0.100.0030.00615.41
7.0.90.0030.00515.71
7.0.80.0000.01315.78
7.0.70.0040.00715.84
7.0.60.0080.04317.71
7.0.50.0070.02716.71
7.0.40.0070.04516.86
7.0.30.0200.03616.95
7.0.20.0160.02916.99
7.0.10.0060.02316.89
7.0.00.0080.04516.93
5.6.400.0030.01114.46
5.6.390.0100.00714.46
5.6.380.0070.00714.82
5.6.370.0030.01414.86
5.6.360.0100.00014.89
5.6.350.0030.00614.74
5.6.340.0030.01414.57
5.6.330.0120.00014.12
5.6.320.0080.00814.45
5.6.310.0000.01314.39
5.6.300.0000.01713.98
5.6.290.0060.00914.68
5.6.280.0040.02917.85
5.6.270.0040.01414.79
5.6.260.0020.01314.70
5.6.250.0060.00314.85
5.6.240.0070.01014.71
5.6.230.0060.00914.59
5.6.220.0040.00814.67
5.6.210.0100.03717.71
5.6.200.0030.04616.42
5.6.190.0050.03517.53
5.6.180.0070.03117.30
5.6.170.0120.03117.46
5.6.160.0050.05017.51
5.6.150.0070.04316.19
5.6.140.0050.04716.54
5.6.130.0020.03016.29
5.6.120.0050.03417.75
5.6.110.0000.03017.69
5.6.100.0120.03617.70
5.6.90.0050.02717.81
5.6.80.0090.04517.45
5.6.70.0100.00314.35
5.6.60.0060.00914.55
5.6.50.0030.01414.35
5.6.40.0030.01014.37
5.6.30.0080.00414.23
5.6.20.0070.01014.32
5.6.10.0090.00614.39
5.6.00.0060.01014.50
5.5.380.0070.01014.51
5.5.370.0130.00014.57
5.5.360.0090.00914.32
5.5.350.0050.02117.43
5.5.340.0050.02216.23
5.5.330.0060.03517.61
5.5.320.0180.02817.29
5.5.310.0180.02817.27
5.5.300.0100.03816.17
5.5.290.0080.03716.04
5.5.280.0050.04517.80
5.5.270.0070.04317.80
5.5.260.0080.02517.81
5.5.250.0050.05017.62
5.5.240.0020.03617.34
5.5.230.0060.01214.19
5.5.220.0070.01014.64
5.5.210.0040.01114.29
5.5.200.0000.01314.30
5.5.190.0060.00614.21
5.5.180.0030.01414.49
5.5.170.0100.00314.46
5.5.160.0030.01014.26
5.5.150.0030.01014.30
5.5.140.0070.00714.31
5.5.130.0030.01014.57
5.5.120.0090.00614.56
5.5.110.0100.00614.50
5.5.100.0000.00914.27
5.5.90.0060.00314.27
5.5.80.0100.00314.38
5.5.70.0000.00814.30
5.5.60.0060.00614.23
5.5.50.0000.01514.41
5.5.40.0070.00714.38
5.5.30.0040.01314.30
5.5.20.0120.00314.72
5.5.10.0040.01514.46
5.5.00.0050.00814.25
5.4.450.0090.04415.54
5.4.440.0180.03815.33
5.4.430.0100.03215.35
5.4.420.0200.03615.22
5.4.410.0170.03615.34
5.4.400.0150.03015.07
5.4.390.0120.03215.26
5.4.380.0200.02314.99
5.4.370.0130.03015.07
5.4.360.0130.03015.28
5.4.350.0150.02515.20
5.4.340.0090.04215.17
5.4.330.0040.01111.43
5.4.320.0240.03115.10
5.4.310.0230.03015.13
5.4.300.0150.04015.09
5.4.290.0180.03815.10
5.4.280.0120.03715.02
5.4.270.0130.03615.16
5.4.260.0090.03615.13
5.4.250.0170.03315.12
5.4.240.0110.03115.00
5.4.230.0220.03515.04
5.4.220.0230.03615.26
5.4.210.0190.03715.20
5.4.200.0280.02015.09
5.4.190.0110.03015.18
5.4.180.0110.03315.20
5.4.170.0080.04215.21
5.4.160.0160.03915.11
5.4.150.0100.03414.86
5.4.140.0090.03313.92
5.4.130.0130.03113.88
5.4.120.0150.03513.75
5.4.110.0130.03013.87
5.4.100.0090.02913.74
5.4.90.0120.02813.76
5.4.80.0140.02513.84
5.4.70.0100.02013.69
5.4.60.0070.02213.79
5.4.50.0100.03213.82
5.4.40.0140.03913.81
5.4.30.0100.03513.85
5.4.20.0000.03013.69
5.4.10.0150.02613.85
5.4.00.0060.00010.84

preferences:
79.59 ms | 401 KiB | 5 Q