3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); mb_internal_encoding('utf-8'); /* Возвращает соответствующую числу форму слова: 1 рубль, 2 рубля, 5 рублей */ function inclineWord($number, $word1, $word2, $word5) { /* DIY */ } function smallNumberToText($number, $isFemale) { $spelling = array( 0 => 'ноль', 10 => 'десять', 100 => 'сто', 1 => 'один', 11 => 'одиннадцать', 20 => 'двадцать', 200 => 'двести', 2 => 'два', 12 => 'двенадцать', 30 => 'тридцать', 300 => 'триста', 3 => 'три', 13 => 'тринадцать', 40 => 'сорок', 400 => 'четыреста', 4 => 'четыре', 14 => 'четырнадцать', 50 => 'пятьдесят', 500 => 'пятьсот', 5 => 'пять', 15 => 'пятнадцать', 60 => 'шестьдесят', 600 => 'шестьсот', 6 => 'шесть', 16 => 'шестнадцать', 70 => 'семьдесят', 700 => 'семьсот', 7 => 'семь', 17 => 'семнадцать', 80 => 'восемьдесят', 800 => 'восемьсот', 8 => 'восемь', 18 => 'восемнадцать', 90 => 'девяносто', 900 => 'девятьсот', 9 => 'девять', 19 => 'девятнадцать' ); $femaleSpelling = array( 1 => 'одна', 2 => 'две' ); if ($number == 0) { return "ноль рублей"; } echo "Соси хуй, быдло\n"; } function numberToText($number) { $text = ""; $text = smallNumberToText($number, 1); return $text; } /* Вызовем функцию несколько раз */ //$amount1 = mt_rand(1,99999999); $amount1 = 0; $text1 = numberToText($amount1); echo "На вашем счету {$text1}\n"; //$amount2 = mt_rand(1,99999999); //$text2 = numberToText($amount2); //echo "На вашем счету {$text2}\n"; //$amount3 = mt_rand(1,99999999); //$text3 = numberToText($amount3); //echo "На вашем счету {$text3}\n"; //$amount4 = mt_rand(1,99999999); //$text4 = numberToText($amount4); //echo "На вашем счету {$text4}\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.60.0120.00316.37
8.3.50.0140.00016.25
8.3.40.0070.00718.71
8.3.30.0040.01518.54
8.3.20.0040.00420.38
8.3.10.0000.00821.73
8.3.00.0040.00421.91
8.2.180.0110.00418.29
8.2.170.0190.00022.96
8.2.160.0070.01119.33
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00022.12
8.2.120.0080.00026.35
8.2.110.0030.00622.24
8.2.100.0000.01219.64
8.2.90.0040.00417.90
8.2.80.0050.00317.97
8.2.70.0030.00517.91
8.2.60.0030.00518.16
8.2.50.0000.00818.10
8.2.40.0050.00320.41
8.2.30.0070.00019.18
8.2.20.0000.00718.07
8.2.10.0000.00718.19
8.2.00.0050.00218.18
8.1.280.0110.00425.92
8.1.270.0050.00223.61
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0100.00020.27
8.1.230.0040.00822.77
8.1.220.0080.00020.78
8.1.210.0090.00318.77
8.1.200.0060.00317.23
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0060.00318.75
8.1.160.0060.00318.82
8.1.150.0000.00720.33
8.1.140.0050.00319.51
8.1.130.0000.00817.52
8.1.120.0000.00717.46
8.1.110.0080.00017.36
8.1.100.0050.00217.51
8.1.90.0040.00417.49
8.1.80.0030.00517.50
8.1.70.0080.00417.46
8.1.60.0080.00017.62
8.1.50.0050.00317.42
8.1.40.0000.00917.60
8.1.30.0090.00017.50
8.1.20.0040.00417.64
8.1.10.0040.00417.44
8.1.00.0040.00417.45
8.0.300.0040.00422.08
8.0.290.0050.00316.75
8.0.280.0030.00318.31
8.0.270.0030.00317.32
8.0.260.0030.00316.75
8.0.250.0050.00217.01
8.0.240.0070.00016.95
8.0.230.0030.00316.87
8.0.220.0070.00016.92
8.0.210.0070.00016.87
8.0.200.0000.00917.03
8.0.190.0070.00016.95
8.0.180.0000.00816.89
8.0.170.0070.00016.82
8.0.160.0050.00216.78
8.0.150.0030.00616.73
8.0.140.0040.00416.88
8.0.130.0040.00413.32
8.0.120.0000.00816.76
8.0.110.0000.00716.80
8.0.100.0040.00416.95
8.0.90.0040.00416.90
8.0.80.0120.00616.83
8.0.70.0050.00216.91
8.0.60.0040.00417.03
8.0.50.0000.00816.75
8.0.30.0110.00617.11
8.0.20.0110.00817.41
8.0.10.0040.00417.14
8.0.00.0060.01216.84
7.4.330.0030.00315.55
7.4.320.0060.00016.53
7.4.300.0030.00316.48
7.4.290.0000.01116.64
7.4.280.0040.00416.61
7.4.270.0000.00716.64
7.4.260.0030.00516.41
7.4.250.0030.00316.57
7.4.240.0000.00716.66
7.4.230.0000.00716.64
7.4.220.0030.01416.50
7.4.210.0070.00716.52
7.4.200.0000.00716.27
7.4.160.0050.01016.55
7.4.150.0040.01517.40
7.4.140.0150.00917.86
7.4.130.0130.00616.53
7.4.120.0120.00916.55
7.4.110.0140.00316.45
7.4.100.0130.00316.52
7.4.90.0100.01016.51
7.4.80.0090.00919.39
7.4.70.0070.01016.64
7.4.60.0040.01416.60
7.4.50.0060.00916.59
7.4.40.0100.00716.34
7.4.30.0100.00716.51
7.4.00.0030.01314.66
7.3.330.0060.00013.25
7.3.320.0000.00513.34
7.3.310.0030.00316.21
7.3.300.0030.00316.28
7.3.290.0070.00016.40
7.3.280.0100.01016.37
7.3.270.0060.01217.40
7.3.260.0120.00816.47
7.3.250.0090.00716.42
7.3.240.0100.00616.56
7.3.230.0180.00016.39
7.3.210.0070.01016.38
7.3.200.0120.00616.39
7.3.190.0070.01516.35
7.3.180.0090.00616.45
7.3.170.0060.01016.53
7.3.160.0070.01116.66
7.3.10.0110.00316.89
7.3.00.0030.01016.68
7.2.330.0120.00616.43
7.2.320.0160.00816.64
7.2.310.0130.00316.66
7.2.300.0100.01316.69
7.2.290.0100.00616.50
7.2.130.0000.01616.99
7.2.120.0030.00716.77
7.2.110.0070.00716.95
7.2.100.0040.01116.68
7.2.90.0070.01116.99
7.2.80.0040.01116.93
7.2.70.0030.01016.95
7.2.60.0030.00816.68
7.2.50.0060.00616.90
7.2.40.0100.00316.59
7.2.30.0100.00316.71
7.2.20.0060.00616.84
7.2.10.0030.01016.92
7.2.00.0080.00416.78
7.1.250.0030.01315.54
7.1.200.0040.00815.82
7.1.70.0070.00017.33
7.1.60.0000.01017.29
7.1.30.0200.06038.29
7.1.20.0130.06038.32
7.1.10.0130.05722.15
7.1.00.0070.05722.17
7.0.200.0000.01116.48
7.0.170.0000.08021.86
7.0.160.0130.06721.90
7.0.150.0100.05321.82
7.0.140.0100.05321.84
7.0.130.0030.06021.78
7.0.120.0070.05321.84
7.0.110.0070.05721.80
7.0.100.0130.05021.86
7.0.90.0030.07021.86
7.0.80.0000.09021.85
7.0.70.0070.08321.86
7.0.60.0070.06021.58
7.0.50.0130.05021.79
7.0.40.0100.05321.84
7.0.30.0070.07321.87
7.0.20.0030.06021.77
7.0.10.0130.06721.82
7.0.00.0100.05321.84

preferences:
77.97 ms | 401 KiB | 5 Q