3v4l.org

run code in 300+ PHP versions simultaneously
<?php // PHP Program to Generate // Fibonacci Series function fibonacciSeries($n){ $num1 = 0; $num2 = 1; for ( $i = 0; $i < $n; $i++ ) { echo $num1 . ", "; $num3 = $num1 + $num2; $num1 = $num2; $num2 = $num3; } } // Driver Code $n = 10; fibonacciSeries($n); ?><?php // PHP Program to Generate // Fibonacci Series function fibonacciSeries($n){ $num1 = 0; $num2 = 1; for ( $i = 0; $i < $n; $i++ ) { echo $num1 . ", "; $num3 = $num1 + $num2; $num1 = $num2; $num2 = $num3; } } // Driver Code $n = 10; fibonacciSeries($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.4.10.0330.01517.43
8.3.140.0360.01016.78
8.3.130.0350.00716.40
8.3.120.0310.01016.19
8.3.110.0290.01316.43
8.3.100.0420.00816.65
8.3.90.0360.01316.62
8.3.80.0370.01016.66
8.3.70.0400.00716.41
8.3.60.0400.00716.40
8.3.50.0360.00716.67
8.3.40.0300.00717.43
8.3.30.0290.00717.16
8.3.20.0300.00617.38
8.3.10.0340.00317.21
8.3.00.0160.00317.37
8.2.260.0230.01316.37
8.2.250.0320.00616.05
8.2.240.0390.00016.59
8.2.230.0330.00916.10
8.2.220.0360.01116.54
8.2.210.0260.00716.29
8.2.200.0350.00416.52
8.2.190.0290.00916.53
8.2.180.0350.00816.46
8.2.170.0380.00717.70
8.2.160.0310.01017.59
8.2.150.0260.01317.34
8.2.140.0300.01317.18
8.2.130.0330.01017.23
8.2.120.0340.00917.27
8.2.110.0300.01017.48
8.2.100.0380.00317.12
8.2.90.0320.01217.59
8.2.80.0350.00817.28
8.2.70.0410.00617.45
8.2.60.0350.00317.32
8.2.50.0390.00317.33
8.2.40.0330.00917.12
8.2.30.0270.01417.34
8.2.20.0360.00317.46
8.2.10.0330.00417.27
8.2.00.0280.00917.22

preferences:
137.48 ms | 989 KiB | 8 Q