3v4l.org

run code in 300+ PHP versions simultaneously
<?php // const: 定数キーワード。不変の値は $ なしでも格納できます const START = 1; const END = 100; // implode: 配列要素を文字列により連結する // @see https://www.php.net/manual/ja/function.implode.php echo implode("\n", // array_slice: 配列を任意の範囲で切り取る // @see https://www.php.net/manual/ja/function.array-slice.php array_slice( // array_replace: 配列の中身を置き換える // @see https://www.php.net/manual/ja/function.array-replace.php array_replace(range(0, END), // array_fill_keys: 第二引数の値で埋まった第一引数のキーらを持つ配列を得る // @see https://www.php.net/manual/ja/function.array-fill-keys.php array_fill_keys(range(0, END, 3), 'Fizz'), array_fill_keys(range(0, END, 5), 'Buzz'), array_fill_keys(range(0, END, 15), 'FizzBuzz') ), START, END ) );

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.140.0180.00016.54
8.3.130.0140.00016.59
8.3.120.0050.00318.91
8.3.110.0140.00720.94
8.3.100.0000.00816.52
8.3.90.0160.00326.77
8.3.80.0080.00416.50
8.3.70.0040.01218.31
8.3.60.0140.00418.30
8.3.50.0090.01224.44
8.3.40.0090.00921.86
8.3.30.0060.00918.41
8.3.20.0060.00324.18
8.3.10.0110.00724.66
8.3.00.0050.00326.16
8.2.250.0040.00418.20
8.2.240.0030.00618.84
8.2.230.0000.00922.58
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0030.00616.63
8.2.190.0170.00316.58
8.2.180.0100.00725.92
8.2.170.0070.00718.96
8.2.160.0060.01622.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00319.76
8.2.110.0090.00020.93
8.2.100.0090.00317.72
8.2.90.0040.00419.45
8.2.80.0080.00020.32
8.2.70.0000.00917.80
8.2.60.0030.00518.22
8.2.50.0040.00418.10
8.2.40.0040.00419.34
8.2.30.0040.00419.18
8.2.20.0050.00318.00
8.2.10.0080.00019.23
8.2.00.0040.00419.19
8.1.300.0060.00616.07
8.1.290.0060.00318.88
8.1.280.0100.00325.92
8.1.270.0050.00324.01
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.24
8.1.230.0080.00322.68
8.1.220.0040.00417.74
8.1.210.0080.00018.95
8.1.200.0000.00917.35
8.1.190.0030.00517.13
8.1.180.0080.00018.10
8.1.170.0040.00418.50
8.1.160.0040.00418.94
8.1.150.0040.00418.72
8.1.140.0070.00018.72
8.1.130.0000.00720.15
8.1.120.0020.00517.39
8.1.110.0070.00017.36
8.1.100.0050.00217.32
8.1.90.0070.00017.44
8.1.80.0030.00517.44
8.1.70.0000.00717.41
8.1.60.0090.00017.49
8.1.50.0040.00417.50
8.1.40.0040.00417.40
8.1.30.0040.00417.68
8.1.20.0040.00417.55
8.1.10.0040.00417.33
8.1.00.0000.00817.40
8.0.300.0000.00720.07
8.0.290.0030.00716.75
8.0.280.0000.00718.39
8.0.270.0000.00917.88
8.0.260.0060.00018.43
8.0.250.0000.00716.82
8.0.240.0030.00316.90
8.0.230.0050.00316.86
8.0.220.0070.00016.78
8.0.210.0050.00216.68
8.0.200.0000.00616.77
8.0.190.0030.00316.82
8.0.180.0040.00416.91
8.0.170.0030.00616.89
8.0.160.0070.00016.86
8.0.150.0040.00416.86
8.0.140.0040.00416.69
8.0.130.0060.00013.26
8.0.120.0030.00616.84
8.0.110.0030.00516.71
8.0.100.0040.00416.88
8.0.90.0000.00716.68
8.0.80.0070.00816.82
8.0.70.0080.00016.86
8.0.60.0040.00416.94
8.0.50.0070.00016.88
8.0.30.0030.01317.10
8.0.20.0120.00817.10
8.0.10.0100.00016.91
8.0.00.0120.00816.63
7.4.330.0000.00415.55
7.4.320.0000.00616.54
7.4.300.0070.00016.44
7.4.290.0000.00816.46
7.4.280.0030.00616.43
7.4.270.0000.00716.43
7.4.260.0000.00513.26
7.4.250.0070.00016.46
7.4.240.0070.00016.55
7.4.230.0000.00716.61
7.4.220.0040.00316.23
7.4.210.0060.01016.48
7.4.200.0030.00316.50
7.4.130.0180.01116.38
7.4.120.0110.00916.43
7.4.110.0110.00816.41
7.4.100.0110.01416.55
7.4.90.0090.01216.55
7.4.80.0110.00716.39
7.4.70.0110.00816.40
7.4.60.0090.00916.49
7.4.50.0140.00516.43
7.4.40.0130.00316.36
7.4.30.0060.01416.14
7.4.20.0090.00916.27
7.4.10.0100.00716.47
7.4.00.0090.00916.45
7.3.330.0040.00416.21
7.3.320.0030.00313.05
7.3.310.0050.00216.20
7.3.300.0060.00016.07
7.3.290.0080.00016.25
7.3.260.0130.01016.28
7.3.250.0140.00716.40
7.3.240.0110.00816.53
7.3.230.0120.00916.20
7.3.220.0050.01416.44
7.3.210.0110.00716.49
7.3.200.0090.00916.46
7.3.190.0120.00616.32
7.3.180.0110.00716.42
7.3.170.0080.00816.21
7.3.160.0150.00616.13
7.3.150.0170.00716.25
7.3.140.0030.01416.32
7.3.130.0070.01016.28
7.3.120.0100.01416.07
7.3.110.0090.00916.15
7.3.100.0140.00316.46
7.3.90.0120.00616.30
7.3.80.0090.00916.23
7.3.70.0040.01416.33
7.3.60.0110.00716.13
7.3.50.0090.01116.15
7.3.40.0080.00816.21
7.3.30.0130.00316.29
7.3.20.0130.00616.35
7.3.10.0100.01016.07
7.3.00.0110.00716.36

preferences:
50.36 ms | 403 KiB | 5 Q