3v4l.org

run code in 300+ PHP versions simultaneously
<?php $phrase = "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ"; $phraseLength = mb_strlen($phrase); $fromAngle = -80; $toAngle = 260; $radius = 12.5; $height = 30; $centerX = 40; $centerY = 15; $screen = array(); for ($y = 0; $y < $height; $y++) { $screen[$y] = array_fill(0, 80, " "); } $degree = (abs($fromAngle) + $toAngle) / $phraseLength; $curDegree = round($degree); for ($i = 0; $i < $phraseLength; $i++) { $x = round($radius * sin(deg2rad($curDegree)) * 2.1); $y = round($radius * cos(deg2rad($curDegree))); $curDegree += $degree; $screen[$centerY + $y][$centerX + $x] = mb_substr($phrase, $i, 1);; } foreach (array_reverse($screen) as $string) { echo implode("", $string) . "\n"; }

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.0180.00317.00
8.3.60.0070.00717.25
8.3.50.0110.00617.68
8.3.40.0060.01219.21
8.3.30.0000.01419.16
8.3.20.0000.00722.10
8.3.10.0060.00323.75
8.3.00.0080.00022.65
8.2.190.0110.01117.13
8.2.180.0070.01518.55
8.2.170.0090.00622.96
8.2.160.0070.00720.91
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.01421.13
8.2.110.0060.00322.45
8.2.100.0080.00418.34
8.2.90.0030.00518.28
8.2.80.0080.00018.42
8.2.70.0030.00518.30
8.2.60.0000.00818.41
8.2.50.0080.00018.10
8.2.40.0050.00319.80
8.2.30.0000.00719.60
8.2.20.0000.00718.46
8.2.10.0040.00419.66
8.2.00.0000.00719.71
8.1.280.0070.00725.92
8.1.270.0050.00522.50
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0080.00322.39
8.1.230.0070.00423.00
8.1.220.0000.00818.41
8.1.210.0070.00319.15
8.1.200.0070.00317.86
8.1.190.0040.00417.98
8.1.180.0000.00818.10
8.1.170.0040.00418.98
8.1.160.0000.00719.35
8.1.150.0040.00419.44
8.1.140.0040.00421.35
8.1.130.0030.00620.50
8.1.120.0080.00017.86
8.1.110.0000.00717.95
8.1.100.0000.00817.79
8.1.90.0050.00317.94
8.1.80.0050.00317.93
8.1.70.0040.00417.81
8.1.60.0080.00018.05
8.1.50.0080.00018.07
8.1.40.0030.00518.05
8.1.30.0050.00318.19
8.1.20.0040.00418.06
8.1.10.0030.00618.02
8.1.00.0040.00417.93
8.0.300.0000.00719.95
8.0.290.0050.00317.25
8.0.280.0040.00418.92
8.0.270.0070.00017.36
8.0.260.0030.00320.60
8.0.250.0070.00317.52
8.0.240.0030.00317.52
8.0.230.0000.00817.47
8.0.220.0050.00217.41
8.0.210.0000.00817.41
8.0.200.0000.00617.48
8.0.190.0080.00017.43
8.0.180.0040.00417.46
8.0.170.0030.00617.43
8.0.160.0080.00017.43
8.0.150.0050.00317.46
8.0.140.0000.00717.32
8.0.130.0050.00213.92
8.0.120.0030.00517.41
8.0.110.0060.00317.34
8.0.100.0030.00517.28
8.0.90.0080.00017.40
8.0.80.0060.00917.36
8.0.70.0050.00317.35
8.0.60.0040.00417.34
8.0.50.0040.00417.46
8.0.30.0110.01117.53
8.0.20.0070.01117.57
8.0.10.0050.00217.40
8.0.00.0110.00717.31
7.4.330.0020.00215.55
7.4.320.0000.00617.00
7.4.300.0040.00417.01
7.4.290.0000.00717.07
7.4.280.0040.00417.02
7.4.270.0070.00316.95
7.4.260.0000.00717.00
7.4.250.0000.00816.98
7.4.240.0000.00716.95
7.4.230.0000.00717.11
7.4.220.0040.00417.12
7.4.210.0080.00617.02
7.4.200.0040.00317.03
7.4.130.0150.00416.92
7.4.120.0040.01416.90
7.4.110.0150.00416.98
7.4.100.0070.01116.84
7.4.90.0040.01516.86
7.4.80.0060.01119.39
7.4.70.0000.01616.95
7.4.60.0080.01016.82
7.4.50.0060.00616.95
7.4.40.0030.01316.91
7.4.00.0030.01415.56
7.3.330.0050.00316.83
7.3.320.0000.00613.60
7.3.310.0030.00316.64
7.3.300.0000.00716.93
7.3.290.0000.00716.66
7.3.280.0040.01216.70
7.3.260.0150.00716.94
7.3.240.0140.00416.85
7.3.230.0130.01016.63
7.3.210.0120.00416.61
7.3.200.0080.01116.69
7.3.190.0060.01716.90
7.3.180.0140.00717.11
7.3.170.0070.01516.71
7.3.160.0060.01116.79
7.3.90.0090.01115.18
7.3.80.0050.01115.19
7.3.70.0090.00915.12
7.3.60.0130.00615.07
7.3.50.0100.01015.22
7.3.40.0140.00715.29
7.3.30.0030.01515.25
7.3.20.0150.00715.26
7.3.10.0060.01415.29
7.3.00.0120.01115.18
7.2.330.0130.00517.22
7.2.320.0090.00916.98
7.2.310.0070.01116.98
7.2.300.0090.01417.08
7.2.290.0130.00317.19
7.2.220.0120.00715.49
7.2.210.0090.01115.54
7.2.200.0080.01015.34
7.2.190.0080.01215.26
7.2.180.0100.00515.38
7.2.170.0050.01315.40
7.2.160.0070.01415.64
7.2.150.0130.00915.62
7.2.140.0080.01215.55
7.2.130.0080.01115.26
7.2.120.0080.01515.61
7.2.110.0130.00615.35
7.2.100.0040.01515.65
7.2.90.0060.01315.62
7.2.80.0060.01315.49
7.2.70.0120.00915.61
7.2.60.0070.01315.69
7.2.50.0110.00915.37
7.2.40.0090.01015.48
7.2.30.0090.01215.62
7.2.20.0150.00815.59
7.2.10.0120.00815.54
7.2.00.0100.01115.47
7.1.320.0080.01214.58
7.1.310.0120.00814.28
7.1.300.0070.01414.43
7.1.290.0120.00814.36
7.1.280.0120.00914.46
7.1.270.0080.01014.33
7.1.260.0130.00914.39
7.1.250.0120.00714.44

preferences:
48.92 ms | 401 KiB | 5 Q