3v4l.org

run code in 300+ PHP versions simultaneously
<?php $el = array_filter(array('a','b','c'), function($i){ return $i === 'a'; }); print_r($e)l ;

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)
5.4.390.0230.05318.57
5.4.380.0200.05718.63
5.4.370.0100.06018.80
5.4.360.0100.05718.78
5.4.350.0100.06018.61
5.4.340.0200.05018.50
5.4.320.0200.04718.77
5.4.310.0170.05318.74
5.4.300.0100.05718.74
5.4.290.0300.03718.78
5.4.280.0230.05018.46
5.4.270.0270.04018.63
5.4.260.0200.05018.83
5.4.250.0230.05018.73
5.4.240.0170.05718.77
5.4.230.0170.05018.51
5.4.220.0170.07718.46
5.4.210.0170.05018.82
5.4.200.0170.05016.63
5.4.190.0130.05318.70
5.4.180.0070.06018.61
5.4.170.0230.04718.76
5.4.160.0170.05018.50
5.4.150.0170.05318.72
5.4.140.0230.04716.30
5.4.130.0200.04316.28
5.4.120.0070.06016.30
5.4.110.0100.05716.23
5.4.100.0230.04316.26
5.4.90.0230.04316.44
5.4.80.0230.04316.23
5.4.70.0030.06316.26
5.4.60.0200.04716.16
5.4.50.0130.05016.27
5.4.40.0200.05016.14
5.4.30.0270.04016.26
5.4.20.0200.04716.28
5.4.10.0200.04716.29
5.4.00.0200.04715.69
5.3.290.0200.05314.80
5.3.280.0070.06314.65
5.3.270.0130.06014.74
5.3.260.0070.06314.71
5.3.250.0170.05714.64
5.3.240.0200.05714.74
5.3.230.0270.04714.64
5.3.220.0230.05014.59
5.3.210.0170.05314.58
5.3.200.0200.04714.61
5.3.190.0230.04714.66
5.3.180.0270.06714.79
5.3.170.0200.05014.60
5.3.160.0130.05714.79
5.3.150.0100.05314.75
5.3.140.0230.04714.66
5.3.130.0100.06014.54
5.3.120.0200.06014.59
5.3.110.0100.07014.67
5.3.100.0270.04314.08
5.3.90.0270.04314.04
5.3.80.0100.06014.12
5.3.70.0370.05014.11
5.3.60.0130.05714.07
5.3.50.0170.05314.07
5.3.40.0170.05313.97
5.3.30.0070.05713.89
5.3.20.0170.05013.74
5.3.10.0300.03713.79
5.3.00.0100.05313.71
5.2.170.0130.04311.10
5.2.160.0130.04711.18
5.2.150.0200.03711.20
5.2.140.0070.04711.17
5.2.130.0130.04010.98
5.2.120.0170.03711.02
5.2.110.0200.03311.07
5.2.100.0100.04011.07
5.2.90.0200.03311.25
5.2.80.0200.03711.27
5.2.70.0170.03711.04
5.2.60.0170.03711.03
5.2.50.0170.03311.05
5.2.40.0230.03710.97
5.2.30.0130.03711.01
5.2.20.0070.04710.95
5.2.10.0070.04311.00
5.2.00.0100.04310.81
5.1.60.0170.04310.05
5.1.50.0100.03710.02
5.1.40.0270.02010.01
5.1.30.0200.03010.43
5.1.20.0130.03310.50
5.1.10.0030.04310.14
5.1.00.0130.03310.09
5.0.50.0030.0338.69
5.0.40.0070.0278.42
5.0.30.0000.0508.24
5.0.20.0070.0278.38
5.0.10.0100.0278.27
5.0.00.0030.0478.29
4.4.90.0070.0205.87
4.4.80.0070.0235.91
4.4.70.0070.0235.90
4.4.60.0100.0205.86
4.4.50.0030.0235.82
4.4.40.0030.0375.86
4.4.30.0030.0235.82
4.4.20.0000.0275.88
4.4.10.0070.0205.93
4.4.00.0000.0375.93
4.3.110.0130.0175.84
4.3.100.0170.0175.75
4.3.90.0070.0205.78
4.3.80.0100.0305.80
4.3.70.0030.0235.83
4.3.60.0000.0275.82
4.3.50.0000.0275.79
4.3.40.0070.0305.77
4.3.30.0000.0274.58
4.3.20.0070.0204.57
4.3.10.0000.0234.48
4.3.00.0170.0277.30

preferences:
147.5 ms | 1394 KiB | 7 Q