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.70.0090.00616.63
8.3.60.0160.00318.43
8.3.50.0100.01321.15
8.3.40.0070.00718.64
8.3.30.0060.01218.63
8.3.20.0080.00020.15
8.3.10.0040.00421.67
8.3.00.0040.00417.89
8.2.180.0120.00318.66
8.2.170.0120.00322.96
8.2.160.0100.00320.26
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00017.50
8.2.110.0040.00422.21
8.2.100.0110.00017.91
8.2.90.0030.00619.22
8.2.80.0080.00017.97
8.2.70.0090.00317.50
8.2.60.0040.00417.78
8.2.50.0030.00618.07
8.2.40.0030.00620.99
8.2.30.0000.00720.64
8.2.20.0080.00017.60
8.2.10.0040.00418.00
8.2.00.0040.00418.05
8.1.280.0110.00425.92
8.1.270.0140.00422.14
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.01023.83
8.1.230.0070.00422.81
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0070.00317.35
8.1.190.0030.00617.10
8.1.180.0040.00418.10
8.1.170.0050.00518.66
8.1.160.0000.00822.07
8.1.150.0000.00718.83
8.1.140.0030.00517.52
8.1.130.0030.00317.57
8.1.120.0000.00717.34
8.1.110.0000.00917.41
8.1.100.0000.00817.30
8.1.90.0000.00717.37
8.1.80.0040.00717.46
8.1.70.0030.00317.34
8.1.60.0000.00717.54
8.1.50.0060.00317.51
8.1.40.0080.00417.55
8.1.30.0050.00317.53
8.1.20.0040.00417.71
8.1.10.0000.00817.59
8.1.00.0050.00217.54
8.0.300.0030.00718.77
8.0.290.0040.00416.72
8.0.280.0080.00018.35
8.0.270.0070.00017.23
8.0.260.0030.00317.32
8.0.250.0070.00016.97
8.0.240.0000.00616.80
8.0.230.0060.00316.99
8.0.220.0000.00716.94
8.0.210.0040.00416.85
8.0.200.0060.00016.85
8.0.190.0000.00716.98
8.0.180.0100.00016.90
8.0.170.0050.00316.93
8.0.160.0000.00716.97
8.0.150.0070.00316.89
8.0.140.0000.00716.76
8.0.130.0000.00513.27
8.0.120.0040.00416.85
8.0.110.0030.00516.82
8.0.100.0000.00716.79
8.0.90.0000.00716.80
8.0.80.0070.01016.94
8.0.70.0030.00616.90
8.0.60.0070.00016.73
8.0.50.0000.00716.97
8.0.30.0100.00817.13
8.0.20.0120.00617.41
8.0.10.0040.00416.84
8.0.00.0120.01116.66
7.4.330.0030.00315.08
7.4.320.0060.00016.68
7.4.300.0030.00316.82
7.4.290.0030.00316.73
7.4.280.0000.01016.72
7.4.270.0060.00316.72
7.4.260.0030.00716.82
7.4.250.0000.00816.83
7.4.240.0030.00416.78
7.4.230.0000.00716.80
7.4.220.0160.00616.76
7.4.210.0060.00816.87
7.4.200.0040.00416.57
7.4.160.0080.00816.80
7.4.150.0130.01017.40
7.4.140.0110.00917.86
7.4.130.0060.01116.73
7.4.120.0100.00816.80
7.4.110.0030.01616.78
7.4.100.0110.00616.89
7.4.90.0100.01416.90
7.4.80.0110.00819.39
7.4.70.0040.01316.94
7.4.60.0070.01016.76
7.4.50.0050.00316.71
7.4.40.0110.00716.64
7.4.30.0030.01916.61
7.4.00.0060.00914.95
7.3.330.0000.00513.47
7.3.320.0030.00313.45
7.3.310.0030.00616.38
7.3.300.0040.00416.59
7.3.290.0070.01016.52
7.3.280.0090.00716.59
7.3.270.0120.00617.40
7.3.260.0110.01316.76
7.3.250.0090.01216.54
7.3.240.0110.00616.83
7.3.230.0060.01216.58
7.3.210.0080.00816.61
7.3.200.0140.00316.60
7.3.190.0040.01316.71
7.3.180.0130.00316.73
7.3.170.0130.00916.59
7.3.160.0060.01016.49
7.3.10.0070.00716.91
7.3.00.0110.00416.82
7.2.330.0110.00716.83
7.2.320.0100.01416.78
7.2.310.0040.01416.84
7.2.300.0060.01716.82
7.2.290.0100.00716.83
7.2.130.0030.00716.98
7.2.120.0120.00617.00
7.2.110.0070.00717.35
7.2.100.0080.00417.26
7.2.90.0060.00317.33
7.2.80.0100.00717.14
7.2.70.0070.01017.31
7.2.60.0090.00917.24
7.2.50.0180.00716.95
7.2.40.0040.01217.13
7.2.30.0180.00017.21
7.2.20.0040.01117.19
7.2.10.0080.00917.21
7.2.00.0050.00918.46
7.1.250.0000.01115.64
7.1.200.0100.00016.05
7.1.100.0000.00918.34
7.1.70.0040.00417.38
7.1.60.0100.02019.19
7.1.50.0070.00717.23
7.1.00.0030.07722.56
7.0.200.0030.00716.94
7.0.60.0230.05319.95
7.0.50.0030.07717.85
7.0.40.0070.07720.11
7.0.30.0370.05720.20
7.0.20.0230.05720.18
7.0.10.0130.08320.04
7.0.00.0070.04020.14
5.6.280.0030.07320.93
5.6.210.0030.08320.77
5.6.200.0070.08318.13
5.6.190.0070.04720.76
5.6.180.0030.04320.45
5.6.170.0200.04720.71
5.6.160.0030.04320.44
5.6.150.0170.06018.15
5.6.140.0000.06718.21
5.6.130.0100.07718.21
5.6.120.0070.05020.97
5.6.110.0100.06721.13
5.6.100.0230.07320.99
5.6.90.0130.08321.13
5.6.80.0070.08020.53
5.5.350.0100.06720.45
5.5.340.0030.08317.98
5.5.330.0070.08320.41
5.5.320.0270.06020.17
5.5.310.0270.08320.34
5.5.300.0100.07017.91
5.5.290.0030.04017.92
5.5.280.0030.09020.88
5.5.270.0170.07720.77
5.5.260.0070.03720.89
5.5.250.0030.07720.62
5.5.240.0100.07320.20
5.4.450.3400.04019.24
5.4.440.3230.04019.57
5.4.430.3330.03019.45
5.4.420.3370.04019.41
5.4.410.3470.03319.44
5.4.400.3430.04019.16
5.4.390.3430.03719.16
5.4.380.2670.04019.21
5.4.370.3130.04018.88
5.4.360.3470.03719.10
5.4.350.3370.03319.09
5.4.340.3330.04319.16
5.4.320.3330.03718.80
5.4.310.3330.03319.05
5.4.300.4100.02718.90
5.4.290.3600.03719.23
5.4.280.3230.04319.07
5.4.270.3300.04019.09
5.4.260.3500.04018.78
5.4.250.3200.03719.23
5.4.240.3430.04318.80
5.4.230.3200.03019.21
5.4.220.3270.03718.80
5.4.210.3270.03319.09
5.4.200.3500.03719.09
5.4.190.3630.03018.91
5.4.180.3300.03718.94
5.4.170.3270.04018.87
5.4.160.3430.04318.91
5.4.150.3530.03718.86
5.4.140.3100.03716.23
5.4.130.3430.03716.45
5.4.120.3630.02716.25
5.4.110.3270.04016.20
5.4.100.3530.03316.43
5.4.90.3470.03316.30
5.4.80.3500.03716.32

preferences:
55.22 ms | 401 KiB | 5 Q