3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,28,29,30,31,32,33,34,35,36,37,38,39,41,45,47,71,73,75,76,77,78,80,81,83,87,88,89,90'; $list = explode(',', $str); array_push($list, 91) $list_new = array_unique($list); var_export($list_new);

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.08020.37
5.5.240.0170.06720.14
5.4.400.1030.04719.15
5.4.390.0330.04318.74
5.4.380.0270.04718.79
5.4.370.0230.04718.63
5.4.360.0230.04718.79
5.4.350.0270.04718.69
5.4.340.0170.05718.46
5.4.320.0200.05318.78
5.4.310.0270.04718.79
5.4.300.0270.05018.80
5.4.290.0270.06018.56
5.4.280.0230.06318.50
5.4.270.0130.06018.83
5.4.260.0230.04318.55
5.4.250.0230.04718.71
5.4.240.0200.05018.74
5.4.230.0200.05018.51
5.4.220.0170.05318.80
5.4.210.0170.05318.72
5.4.200.0130.05016.56
5.4.190.0200.05018.72
5.4.180.0270.06718.79
5.4.170.0130.05718.50
5.4.160.0130.05718.70
5.4.150.0270.04318.53
5.4.140.0200.05016.48
5.4.130.0170.05016.28
5.4.120.0200.05016.29
5.4.110.0270.06016.32
5.4.100.0100.05716.27
5.4.90.0270.04016.27
5.4.80.0170.05016.43
5.4.70.0200.05016.20
5.4.60.0170.05016.18
5.4.50.0170.05016.20
5.4.40.0200.04716.20
5.4.30.0200.06016.27
5.4.20.0200.05016.38
5.4.10.0100.05316.25
5.4.00.0200.04715.63
5.3.290.0230.05314.64
5.3.280.0270.04314.64
5.3.270.0330.03714.69
5.3.260.0230.05314.70
5.3.250.0100.05714.61
5.3.240.0170.05314.70
5.3.230.0230.04314.51
5.3.220.0170.05014.52
5.3.210.0070.06314.59
5.3.200.0270.04014.55
5.3.190.0070.06014.55
5.3.180.0170.05014.51
5.3.170.0170.05014.54
5.3.160.0170.05014.56
5.3.150.0070.06014.57
5.3.140.0200.04714.65
5.3.130.0230.04714.50
5.3.120.0170.05714.46
5.3.110.0130.05714.46
5.3.100.0270.04013.97
5.3.90.0130.05314.00
5.3.80.0200.04713.97
5.3.70.0170.05713.91
5.3.60.0200.05013.90
5.3.50.0170.05313.88
5.3.40.0130.06313.93
5.3.30.0130.05013.86
5.3.20.0030.06013.72
5.3.10.0130.05013.64
5.3.00.0100.05313.63
5.2.170.0130.04011.29
5.2.160.0170.03711.07
5.2.150.0170.04011.07
5.2.140.0170.04011.12
5.2.130.0200.03711.05
5.2.120.0100.04311.14
5.2.110.0100.04011.13
5.2.100.0170.03711.14
5.2.90.0230.03311.04
5.2.80.0070.04711.24
5.2.70.0200.03311.08
5.2.60.0230.03011.10
5.2.50.0170.04311.08
5.2.40.0100.04010.98
5.2.30.0170.03711.00
5.2.20.0170.04011.07
5.2.10.0130.03710.91
5.2.00.0100.04010.71
5.1.60.0100.03310.07
5.1.50.0130.03010.01
5.1.40.0170.03010.09
5.1.30.0030.04310.45
5.1.20.0070.04010.45
5.1.10.0170.03310.09
5.1.00.0070.04010.20
5.0.50.0030.0308.56
5.0.40.0100.0308.51
5.0.30.0030.0478.29
5.0.20.0070.0278.32
5.0.10.0070.0308.35
5.0.00.0100.0478.27
4.4.90.0030.0235.93
4.4.80.0100.0205.89
4.4.70.0070.0205.88
4.4.60.0030.0235.88
4.4.50.0100.0175.93
4.4.40.0130.0305.87
4.4.30.0030.0235.88
4.4.20.0030.0235.94
4.4.10.0000.0275.88
4.4.00.0100.0305.85
4.3.110.0030.0235.88
4.3.100.0070.0205.87
4.3.90.0130.0135.82
4.3.80.0070.0335.81
4.3.70.0070.0205.80
4.3.60.0070.0305.89
4.3.50.0030.0235.78
4.3.40.0100.0275.75
4.3.30.0100.0174.54
4.3.20.0030.0234.54
4.3.10.0000.0274.49
4.3.00.0170.01714.42

preferences:
136.19 ms | 1398 KiB | 7 Q