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); echo join(~รต,$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.0160.00318.43
8.3.50.0080.01320.93
8.3.40.0110.00418.87
8.3.30.0040.01118.66
8.3.20.0060.00320.29
8.3.10.0040.00421.73
8.3.00.0040.00419.69
8.2.180.0030.01216.63
8.2.170.0070.00722.96
8.2.160.0030.01020.35
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0000.00917.63
8.2.110.0060.00321.11
8.2.100.0090.00317.63
8.2.90.0040.00419.15
8.2.80.0030.00517.97
8.2.70.0080.00517.38
8.2.60.0030.00617.80
8.2.50.0040.00418.07
8.2.40.0000.00820.99
8.2.30.0000.00720.64
8.2.20.0040.00417.56
8.2.10.0000.00718.07
8.2.00.0070.00017.95
8.1.280.0210.00325.92
8.1.270.0110.00722.02
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0070.00422.64
8.1.230.0030.01017.66
8.1.220.0050.00317.79
8.1.210.0030.00518.77
8.1.200.0060.00317.36
8.1.190.0050.00317.13
8.1.180.0040.00418.10
8.1.170.0030.00618.48
8.1.160.0020.00521.97
8.1.150.0040.00418.76
8.1.140.0040.00417.29
8.1.130.0000.00717.60
8.1.120.0000.00717.48
8.1.110.0040.00417.39
8.1.100.0000.00817.43
8.1.90.0050.00217.42
8.1.80.0080.00317.46
8.1.70.0030.00317.41
8.1.60.0030.00617.54
8.1.50.0080.00017.52
8.1.40.0030.00717.43
8.1.30.0030.00617.61
8.1.20.0080.00017.64
8.1.10.0040.00417.55
8.1.00.0040.00417.58
8.0.300.0070.00018.77
8.0.290.0000.00716.58
8.0.280.0040.00418.46
8.0.270.0000.00717.26
8.0.260.0030.00317.14
8.0.250.0040.00416.84
8.0.240.0080.00016.98
8.0.230.0070.00016.87
8.0.220.0000.00716.84
8.0.210.0050.00316.83
8.0.200.0070.00016.88
8.0.190.0040.00416.85
8.0.180.0040.00416.84
8.0.170.0030.00616.95
8.0.160.0040.00416.94
8.0.150.0040.00416.75
8.0.140.0060.00316.77
8.0.130.0050.00013.40
8.0.120.0070.00016.84
8.0.110.0000.00716.96
8.0.100.0000.00716.77
8.0.90.0000.00816.77
8.0.80.0030.01116.90
8.0.70.0000.00816.90
8.0.60.0000.00716.87
8.0.50.0000.00816.79
8.0.30.0120.00816.85
8.0.20.0120.00917.40
8.0.10.0000.00716.86
8.0.00.0120.01116.70
7.4.330.0050.00015.08
7.4.320.0060.00016.71
7.4.300.0030.00316.66
7.4.290.0030.00316.79
7.4.280.0080.00316.84
7.4.270.0080.00316.79
7.4.260.0030.00616.71
7.4.250.0030.00516.72
7.4.240.0010.00616.72
7.4.230.0030.00316.58
7.4.220.0060.01616.72
7.4.210.0100.00916.82
7.4.200.0020.00516.65
7.4.160.0100.00616.80
7.4.150.0120.00817.40
7.4.140.0080.01317.86
7.4.130.0120.00416.78
7.4.120.0050.01216.83
7.4.110.0110.01116.74
7.4.100.0150.00416.72
7.4.90.0060.01216.87
7.4.80.0060.01219.39
7.4.70.0130.00716.88
7.4.60.0120.01016.81
7.4.50.0000.00816.57
7.4.40.0160.00916.76
7.4.30.0050.01316.61
7.4.00.0040.01115.41
7.3.330.0070.00013.32
7.3.320.0000.00513.36
7.3.310.0000.00716.56
7.3.300.0000.00716.57
7.3.290.0090.00916.60
7.3.280.0110.00916.60
7.3.270.0000.01717.40
7.3.260.0170.00916.97
7.3.250.0100.01016.78
7.3.240.0110.00816.52
7.3.230.0090.00916.70
7.3.210.0000.01816.68
7.3.200.0130.00316.77
7.3.190.0100.00716.87
7.3.180.0070.01016.70
7.3.170.0090.00916.75
7.3.160.0150.00616.60
7.2.330.0150.00317.07
7.2.320.0070.01616.82
7.2.310.0110.00716.89
7.2.300.0130.01016.74
7.2.290.0120.00616.83
7.2.60.0090.00617.23
7.1.200.0060.00916.14
7.1.70.0000.01117.57
7.1.60.0070.01819.19
7.1.50.0040.01817.32
7.1.00.0000.07722.53
7.0.200.0000.00816.83
7.0.60.0030.07720.02
7.0.50.0070.08717.70
7.0.40.0070.08720.29
7.0.30.0400.06720.35
7.0.20.0230.08020.21
7.0.10.0130.03720.18
7.0.00.0100.08020.05
5.6.280.0070.06021.03
5.6.210.0070.08020.48
5.6.200.0030.04018.11
5.6.190.0030.04320.67
5.6.180.0130.08020.41
5.6.170.0370.05320.51
5.6.160.0100.08020.46
5.6.150.0170.07018.11
5.6.140.0070.08318.11
5.6.130.0030.04318.11
5.6.120.0170.07020.99
5.6.110.0170.06720.99
5.6.100.0100.07720.86
5.6.90.0030.04020.94
5.6.80.0030.04020.44
5.5.350.0070.07020.50
5.5.340.0070.04717.89
5.5.330.0070.04020.40
5.5.320.0370.07020.29
5.5.310.0300.07320.24
5.5.300.0100.08018.00
5.5.290.0030.06317.93
5.5.280.0070.08720.75
5.5.270.0170.02720.80
5.5.260.0070.08020.77
5.5.250.0100.03720.59
5.5.240.0000.06720.26
5.4.450.0800.07019.54
5.4.440.0800.06319.54
5.4.430.0630.07019.60
5.4.420.0830.05719.62
5.4.410.0600.06319.39
5.4.400.0670.06019.16
5.4.390.0670.06019.09
5.4.380.0730.05319.30
5.4.370.0670.04319.28
5.4.360.0630.05318.77
5.4.350.0630.05718.99
5.4.340.0700.06718.95
5.4.320.0800.04318.95
5.4.310.0670.05719.16
5.4.300.0730.06019.02
5.4.290.0630.06018.80
5.4.280.0800.04718.80
5.4.270.0800.04719.08
5.4.260.0470.07319.25
5.4.250.0070.06019.14
5.4.240.0100.05318.80
5.4.230.0200.05018.80
5.4.220.0570.05319.29
5.4.210.0630.05319.07
5.4.200.0570.05318.96
5.4.190.0530.06319.14
5.4.180.0630.05318.91
5.4.170.0700.06318.98
5.4.160.0730.04719.20
5.4.150.0700.05318.78
5.4.140.0670.05316.39
5.4.130.0670.05316.50
5.4.120.0770.05716.28
5.4.110.0670.05316.50
5.4.100.0770.04316.54
5.4.90.0770.04316.54
5.4.80.0730.05016.28
5.4.70.0030.05016.42
5.4.60.0170.03316.37
5.4.50.0230.03716.38
5.4.40.0330.06016.17
5.4.30.0030.05016.39
5.4.20.0030.06716.18
5.4.10.0200.03316.20

preferences:
42.61 ms | 401 KiB | 5 Q