3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['a', 'b', 'c'] var_dump(array_intersect($a, array_flip(['a' => 1, 'c' => 2, 'b' => 3])));

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.6.120.0030.06020.91
5.6.110.0130.07720.96
5.6.100.0000.06720.97
5.6.90.0200.07320.97
5.6.80.0130.05720.28
5.5.280.0130.07720.77
5.5.270.0230.03720.96
5.5.260.0130.07720.97
5.5.250.0130.07720.46
5.5.240.0400.06020.26
5.4.440.0300.06019.32
5.4.430.0230.05319.16
5.4.420.0300.06719.30
5.4.410.0170.04319.04
5.4.400.0200.04019.20
5.4.390.0230.06019.24
5.4.380.0230.03319.06
5.4.370.0270.03019.09
5.4.360.0230.04019.22
5.4.350.0170.04718.95
5.4.340.0100.04319.24
5.4.320.0230.03019.06
5.4.310.0170.03718.87
5.4.300.0270.06718.98
5.4.290.0130.04019.15
5.4.280.0130.04019.14
5.4.270.0200.04019.13
5.4.260.0200.03319.09
5.4.250.0170.03718.97
5.4.240.0230.06319.19
5.4.230.0130.04718.95
5.4.220.0100.04319.22
5.4.210.0200.03319.10
5.4.200.0200.03319.07
5.4.190.0200.03318.86
5.4.180.0130.04019.09
5.4.170.0170.03718.85
5.4.160.0470.03018.82
5.4.150.0100.03719.06
5.4.140.0100.04016.45
5.4.130.0170.03716.49
5.4.120.0200.03716.36
5.4.110.0100.04016.28
5.4.100.0170.03716.45
5.4.90.0200.03316.63
5.4.80.0200.03316.23
5.4.70.0270.03016.39
5.4.60.0130.03716.52
5.4.50.0130.03716.43
5.4.40.0230.03716.39
5.4.30.0170.05316.42
5.4.20.0200.03716.33
5.4.10.0170.03716.48
5.4.00.0300.05715.78
5.3.290.0170.04014.62
5.3.280.0170.03714.54
5.3.270.0100.04314.45
5.3.260.0200.03314.66
5.3.250.0300.03714.51
5.3.240.0130.04014.59
5.3.230.0230.04314.65
5.3.220.0230.03714.47
5.3.210.0130.04014.52
5.3.200.0200.05014.51
5.3.190.0200.04014.41
5.3.180.0200.03714.50
5.3.170.0100.04314.42
5.3.160.0200.06314.42
5.3.150.0200.08014.41
5.3.140.0200.06314.50
5.3.130.0170.04014.38
5.3.120.0170.03714.49
5.3.110.0230.04314.49
5.3.100.0170.03713.89
5.3.90.0200.04013.86
5.3.80.0170.03713.86
5.3.70.0270.05714.06
5.3.60.0270.06314.05
5.3.50.0270.02713.74
5.3.40.0130.04013.77
5.3.30.0300.02313.85
5.3.20.0200.03013.63
5.3.10.0200.04013.50
5.3.00.0170.04013.73
5.2.170.0170.03010.97
5.2.160.0170.03011.16
5.2.150.0230.05311.00
5.2.140.0200.05711.21
5.2.130.0100.04310.95
5.2.120.0230.03710.95
5.2.110.0170.03311.04
5.2.100.0200.06011.12
5.2.90.0130.03311.18
5.2.80.0170.04310.96
5.2.70.0170.04010.93
5.2.60.0230.02711.09
5.2.50.0170.02710.87
5.2.40.0130.03011.14
5.2.30.0130.04710.81
5.2.20.0200.04710.81
5.2.10.0130.03310.82
5.2.00.0170.04710.78
5.1.60.0130.0239.88
5.1.50.0170.0239.98
5.1.40.0130.0279.95
5.1.30.0100.03310.29
5.1.20.0200.02310.25
5.1.10.0130.03010.04
5.1.00.0200.05710.04
5.0.50.0100.0338.47
5.0.40.0070.0208.27
5.0.30.0070.0378.19
5.0.20.0230.0338.09
5.0.10.0130.0178.11
5.0.00.0070.0338.13
4.4.90.0070.0237.96
4.4.80.0070.0177.96
4.4.70.0030.0277.96
4.4.60.0100.0337.96
4.4.50.0170.0277.96
4.4.40.0130.0237.96
4.4.30.0100.0337.96
4.4.20.0100.0177.96
4.4.10.0130.0337.96
4.4.00.0100.0277.96
4.3.110.0100.0377.96
4.3.100.0100.0177.96
4.3.90.0100.0277.96
4.3.80.0100.0277.96
4.3.70.0070.0307.96
4.3.60.0100.0337.96
4.3.50.0100.0307.96
4.3.40.0070.0337.96
4.3.30.0070.0207.96
4.3.20.0030.0207.96
4.3.10.0100.0337.96
4.3.00.0030.0177.96

preferences:
142.52 ms | 1398 KiB | 7 Q