3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1, 2, 1, 3); array_unique(&$arr); var_dump($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)
5.6.80.0070.08320.34
5.5.240.0100.07320.33
5.4.400.0930.05018.92
5.4.390.0200.04718.61
5.4.380.0070.06018.72
5.4.370.0230.04718.51
5.4.360.0100.05318.74
5.4.350.0130.05318.73
5.4.340.0130.05318.66
5.4.320.0300.04718.51
5.4.310.0170.05318.68
5.4.300.0270.04318.73
5.4.290.0070.05718.60
5.4.280.0200.04718.51
5.4.270.0100.05718.71
5.4.260.0130.05318.73
5.4.250.0100.05718.71
5.4.240.0100.05718.71
5.4.230.0170.05318.47
5.4.220.0100.06018.66
5.4.210.0230.04318.64
5.4.200.0130.06016.38
5.4.190.0230.06718.64
5.4.180.0230.05318.48
5.4.170.0200.05018.47
5.4.160.0170.05318.38
5.4.150.0170.05018.54
5.4.140.0230.04716.23
5.4.130.0270.04316.09
5.4.120.0200.04716.16
5.4.110.0170.05016.31
5.4.100.0070.06016.16
5.4.90.0130.05716.14
5.4.80.0100.05016.15
5.4.70.0130.06716.23
5.4.60.0200.06316.29
5.4.50.0130.05016.16
5.4.40.0100.05716.30
5.4.30.0170.04715.98
5.4.20.0200.06716.10
5.4.10.0130.04716.18
5.4.00.0130.05015.70
5.3.290.0100.05714.58
5.3.280.0130.05714.60
5.3.270.0130.05714.52
5.3.260.0070.06314.61
5.3.250.0130.05714.70
5.3.240.0070.06014.63
5.3.230.0130.06014.57
5.3.220.0100.05314.62
5.3.210.0170.05714.57
5.3.200.0130.05014.59
5.3.190.0170.05014.55
5.3.180.0100.06014.55
5.3.170.0100.06714.54
5.3.160.0130.05014.63
5.3.150.0100.06014.65
5.3.140.0200.04714.50
5.3.130.0170.05714.63
5.3.120.0130.05314.49
5.3.110.0130.06014.47
5.3.100.0270.05714.07
5.3.90.0130.07313.95
5.3.80.0130.05314.10
5.3.70.0100.06014.11
5.3.60.0230.06013.95
5.3.50.0200.04713.90
5.3.40.0170.04713.94
5.3.30.0130.04713.93
5.3.20.0130.04713.68
5.3.10.0070.07013.69
5.3.00.0300.05313.73
5.2.170.0200.05011.13
5.2.160.0070.06011.10
5.2.150.0130.05311.13
5.2.140.0070.06311.27
5.2.130.0130.04011.07
5.2.120.0170.04011.13
5.2.110.0070.04711.09
5.2.100.0170.03311.06
5.2.90.0130.04011.16
5.2.80.0100.04311.13
5.2.70.0130.05711.07
5.2.60.0070.05711.01
5.2.50.0130.05311.02
5.2.40.0170.04310.97
5.2.30.0130.05711.02
5.2.20.0100.05310.87
5.2.10.0200.04010.95
5.2.00.0070.04310.71
5.1.60.0170.03710.01
5.1.50.0030.04310.17
5.1.40.0130.03710.04
5.1.30.0100.03710.35
5.1.20.0170.03310.55
5.1.10.0030.04010.14
5.1.00.0070.03710.18
5.0.50.0100.0278.68
5.0.40.0100.0208.39
5.0.30.0070.0478.24
5.0.20.0100.0238.23
5.0.10.0100.0338.35
5.0.00.0070.0438.18
4.4.90.0030.0235.87
4.4.80.0030.0235.98
4.4.70.0100.0235.98
4.4.60.0030.0335.86
4.4.50.0000.0275.87
4.4.40.0030.0375.90
4.4.30.0100.0235.90
4.4.20.0070.0305.99
4.4.10.0030.0335.95
4.4.00.0100.0405.96
4.3.110.0030.0335.88
4.3.100.0030.0305.79
4.3.90.0030.0305.88
4.3.80.0100.0375.92
4.3.70.0030.0305.91
4.3.60.0000.0335.82
4.3.50.0070.0205.83
4.3.40.0100.0375.82
4.3.30.0000.0274.66
4.3.20.0070.0204.54
4.3.10.0000.0234.61
4.3.00.0200.02314.42

preferences:
143.35 ms | 1394 KiB | 7 Q