3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = ["a" => "green", "red", "blue"]; $a2 = ["red", "b" => "green", "yellow"]; $res = array_intersect($a1, $a2); print_r($res);

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.320.0230.07318.98
5.4.310.0230.07319.06
5.4.300.0270.04319.09
5.4.290.0270.06719.15
5.4.280.0270.07318.87
5.4.270.0270.07019.31
5.4.260.0230.06019.30
5.4.250.0400.06719.13
5.4.240.0170.04318.86
5.4.230.0400.05018.98
5.4.220.0300.07719.30
5.4.210.0300.04718.98
5.4.200.0300.06718.97
5.4.190.0230.04318.86
5.4.180.0300.07018.97
5.4.170.0200.04319.21
5.4.160.0370.04318.92
5.4.150.0300.06719.13
5.4.140.0300.03016.32
5.4.130.0230.04716.38
5.4.120.0330.08016.32
5.4.110.0300.04716.24
5.4.100.0330.07016.19
5.4.90.0370.05716.46
5.4.80.0330.03716.44
5.4.70.0370.06716.39
5.4.60.0400.05716.54
5.4.50.0230.04716.34
5.4.40.0230.04716.42
5.4.30.0200.04716.51
5.4.20.0300.04716.57
5.4.10.0370.03016.43
5.4.00.0300.03715.82
5.3.290.0200.05014.62
5.3.280.0400.03014.46
5.3.270.0200.04014.45
5.3.260.0300.04714.63
5.3.250.0330.06714.51
5.3.240.0270.03714.66
5.3.230.0330.07014.69
5.3.220.0430.06014.51
5.3.210.0270.07014.52
5.3.200.0230.07014.59
5.3.190.0270.05314.50
5.3.180.0330.03714.41
5.3.170.0200.04714.59
5.3.160.0330.07314.42
5.3.150.0330.07014.44
5.3.140.0270.07014.40
5.3.130.0330.07314.49
5.3.120.0230.05714.59
5.3.110.0270.03714.50
5.3.100.0230.04313.88
5.3.90.0330.03313.87
5.3.80.0400.03313.79
5.3.70.0270.04313.89
5.3.60.0330.06713.95
5.3.50.0230.07013.99
5.3.40.0430.03313.90
5.3.30.0430.04013.74
5.3.20.0230.04013.64
5.3.10.0470.05013.60
5.3.00.0430.05713.58
5.2.170.0270.03311.16
5.2.160.0400.03311.15
5.2.150.0200.04011.00
5.2.140.0370.04710.99
5.2.130.0300.02311.25
5.2.120.0270.02711.16
5.2.110.0370.06010.96
5.2.100.0270.02711.14
5.2.90.0200.04010.95
5.2.80.0200.04011.14
5.2.70.0130.04310.98
5.2.60.0230.03011.06
5.2.50.0330.05310.95
5.2.40.0200.03711.01
5.2.30.0270.04010.98
5.2.20.0170.05710.80
5.2.10.0200.03310.78
5.2.00.0170.02710.73
5.1.60.0130.0239.97
5.1.50.0200.02710.07
5.1.40.0330.04010.05
5.1.30.0200.05310.38
5.1.20.0270.04710.32
5.1.10.0170.03010.18
5.1.00.0270.05010.04
5.0.50.0200.0409.27
5.0.40.0130.0309.27
5.0.30.0170.0579.27
5.0.20.0100.0239.27
5.0.10.0170.0139.27
5.0.00.0030.0339.27
4.4.90.0100.0209.27
4.4.80.0070.0379.27
4.4.70.0070.0209.27
4.4.60.0200.0179.27
4.4.50.0070.0239.27
4.4.40.0100.0239.27
4.4.30.0100.0179.27
4.4.20.0130.0179.27
4.4.10.0100.0209.27
4.4.00.0170.0479.27
4.3.110.0070.0409.27
4.3.100.0100.0209.27
4.3.90.0130.0339.27
4.3.80.0070.0279.27
4.3.70.0070.0179.27
4.3.60.0130.0179.27
4.3.50.0070.0179.27
4.3.40.0070.0239.27
4.3.30.0070.0139.27
4.3.20.0000.0179.27
4.3.10.0030.0179.27
4.3.00.0100.0179.27

preferences:
143.29 ms | 1394 KiB | 7 Q