3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = range(1,150000); $t = microtime(true); array_filter($arr); $t = microtime(true) - $t; printf('array_filter took %0.6f seconds to filter through %d elements', $t, count($arr));

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)
7.2.00.0130.00330.96
7.1.70.0160.00628.90
7.1.60.0100.02129.23
7.1.50.0140.02028.89
7.1.00.0030.08034.36
7.0.200.0000.01328.73
7.0.140.0070.07734.09
7.0.100.0170.07729.95
7.0.90.0000.06329.93
7.0.80.2200.07329.89
7.0.70.2170.09029.82
7.0.60.0170.08329.87
7.0.50.0100.08730.21
7.0.40.0130.08728.97
7.0.30.1530.08329.02
7.0.20.2100.07328.95
7.0.10.2070.07328.95
7.0.00.2370.05029.04
5.6.280.0130.11757.67
5.6.250.0200.12357.06
5.6.240.0300.11057.20
5.6.230.0130.12057.13
5.6.220.0270.12357.14
5.6.210.0200.07357.28
5.6.200.0100.10057.64
5.6.190.0130.11357.47
5.6.180.0270.10757.47
5.6.170.0270.11357.64
5.6.160.0270.09757.55
5.6.150.0200.12057.49
5.6.140.0270.11757.46
5.6.130.0130.12057.61
5.6.120.0230.12057.54
5.6.110.0170.11357.60
5.6.100.0300.10757.45
5.6.90.0230.13057.44
5.6.80.0130.11756.93
5.6.70.0270.11057.07
5.6.60.0170.12056.96
5.6.50.0200.10756.95
5.6.40.0130.12356.91
5.6.30.0230.12056.91
5.6.20.0200.09756.98
5.6.10.0270.11057.01
5.6.00.0270.11056.80
5.5.380.0300.11056.97
5.5.370.0070.12356.95
5.5.360.0370.12056.93
5.5.350.0230.12356.95
5.5.340.0170.11357.39
5.5.330.0270.11057.30
5.5.320.0370.10057.17
5.5.310.0270.11057.39
5.5.300.0170.11757.40
5.5.290.0170.11057.33
5.5.280.0230.11357.45
5.5.270.0270.11057.44
5.5.260.0300.11357.39
5.5.250.0200.12757.11
5.5.240.0330.11056.67
5.5.230.0270.10756.52
5.5.220.0130.10356.73
5.5.210.0030.12756.68
5.5.200.0200.11356.71
5.5.190.0200.12356.78
5.5.180.0170.12356.51
5.5.160.0330.11056.77
5.5.150.0270.10056.67
5.5.140.0070.09356.63
5.5.130.0100.10356.61
5.5.120.0200.11056.80
5.5.110.0200.12056.66
5.5.100.0200.10056.69
5.5.90.0200.11356.63
5.5.80.0270.11356.68
5.5.70.0130.11756.65
5.5.60.0130.09356.43
5.5.50.0170.07356.67
5.5.40.0130.14756.59
5.5.30.0070.10356.55
5.5.20.0200.10056.62
5.5.10.0330.09756.64
5.5.00.0370.09756.59
5.4.450.0270.10755.75
5.4.440.0170.11355.83
5.4.430.0170.12055.79
5.4.420.0300.11355.93
5.4.410.0070.12055.72
5.4.400.0230.11055.55
5.4.390.0270.07355.46
5.4.380.0200.10355.61
5.4.370.0370.05755.41
5.4.360.0230.09055.46
5.4.350.0300.10355.46
5.4.340.0200.10055.41
5.4.320.0300.10055.36
5.4.310.0270.11355.41
5.4.300.0230.10755.55
5.4.290.0130.10755.43
5.4.280.0130.11755.42
5.4.270.0330.09355.28
5.4.260.0300.10055.55
5.4.250.0170.10755.26
5.4.240.0170.10755.24
5.4.230.0370.10355.50
5.4.220.0200.07055.32
5.4.210.0330.10355.49
5.4.200.0300.10055.46
5.4.190.0200.13055.26
5.4.180.0100.12755.42
5.4.170.0300.12355.34
5.4.160.0200.09055.52
5.4.150.0370.10755.42
5.4.140.0230.09352.82
5.4.130.0100.12352.86
5.4.120.0070.10052.78
5.4.110.0470.09752.91
5.4.100.0170.12052.75
5.4.90.0200.11352.75
5.4.80.0270.07752.69
5.4.70.0230.10752.93
5.4.60.0300.10052.92
5.4.50.0170.11752.71
5.4.40.0130.12052.80
5.4.30.0330.09352.73
5.4.20.0200.10052.75
5.4.10.0200.11352.75
5.4.00.0200.10352.23
5.3.290.0200.11050.39
5.3.280.0230.10350.34
5.3.270.0200.13350.34
5.3.260.0230.10750.42
5.3.250.0300.11750.29
5.3.240.0170.09350.50
5.3.230.0270.10050.49
5.3.220.0170.12050.43
5.3.210.0170.12750.38
5.3.200.0170.10750.29
5.3.190.0200.11750.46
5.3.180.0230.10750.28
5.3.170.0130.12050.41
5.3.160.0300.08750.30
5.3.150.0130.09050.39
5.3.140.0130.10050.34
5.3.130.0200.10350.39
5.3.120.0200.11050.43
5.3.110.0130.11750.42
5.3.100.0230.10049.93
5.3.90.0230.12049.91
5.3.80.0100.11349.67
5.3.70.0170.12349.70
5.3.60.0170.11349.67
5.3.50.0230.09349.59
5.3.40.0230.08049.70
5.3.30.0100.09349.67
5.3.20.0230.11349.42
5.3.10.0330.10349.38
5.3.00.0230.10349.31
5.2.170.0130.10345.74
5.2.160.0300.10045.70
5.2.150.0130.11345.87
5.2.140.0200.07745.79
5.2.130.0100.09345.76
5.2.120.0230.09045.68
5.2.110.0100.11045.68
5.2.100.0230.10345.75
5.2.90.0200.10345.73
5.2.80.0100.09745.65
5.2.70.0200.08045.54
5.2.60.0100.10045.66
5.2.50.0130.07345.39
5.2.40.0270.10045.48
5.2.30.0270.10345.50
5.2.20.0170.12045.39
5.2.10.0300.07345.29
5.2.00.0200.09045.20
5.1.60.0330.09054.81
5.1.50.0300.09754.66
5.1.40.0230.11354.65
5.1.30.0270.09755.06
5.1.20.0300.09755.18
5.1.10.0170.11754.88
5.1.00.0230.05754.95
5.0.50.0070.07353.30
5.0.40.0100.07753.09
5.0.30.0170.07353.12
5.0.20.0070.06053.00
5.0.10.0170.06353.06
5.0.00.0170.10053.00
4.4.90.0200.09350.80
4.4.80.0470.07750.83
4.4.70.0270.08750.73
4.4.60.0230.08350.76
4.4.50.0270.09050.77
4.4.40.0330.09350.74
4.4.30.0300.09350.79
4.4.20.0230.06750.80
4.4.10.0170.10050.85
4.4.00.0170.09050.86
4.3.110.0200.04350.71
4.3.100.0070.07350.66
4.3.90.0130.05350.69
4.3.80.0200.07050.70
4.3.70.0170.08750.70
4.3.60.0130.05050.70
4.3.50.0130.04750.72
4.3.40.0100.06750.63
4.3.30.0170.07749.47
4.3.20.0030.05749.47
4.3.10.0130.08749.44
4.3.00.0130.05049.40

preferences:
40.28 ms | 401 KiB | 5 Q