3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(5, "43", 2, "10"); asort($a); var_dump($a); asort($a, SORT_NUMERIC); var_dump($a); asort($a, SORT_STRING); var_dump($a);
based on fX7g0

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.10.0040.00816.27
7.3.00.0060.00316.44
7.2.130.0070.01116.79
7.2.120.0110.00416.67
7.2.110.0090.00616.42
7.2.100.0030.01316.49
7.2.90.0060.00916.68
7.2.80.0070.00416.43
7.2.70.0070.00716.69
7.2.60.0070.00716.68
7.2.50.0030.00716.64
7.2.40.0060.00916.66
7.2.30.0030.01316.75
7.2.20.0030.00716.79
7.2.10.0060.00816.38
7.2.00.0040.01117.91
7.1.250.0070.01015.65
7.1.200.0060.00915.63
7.1.100.0000.01218.02
7.1.70.0040.00817.05
7.1.60.0070.01719.46
7.1.50.0100.01016.84
7.1.00.0000.08022.32
7.0.200.0030.00716.63
7.0.140.0030.05722.04
7.0.60.0100.07319.82
7.0.50.0070.08017.88
7.0.40.0030.04320.20
7.0.30.0230.06720.00
7.0.20.0400.07320.16
7.0.10.0030.04320.12
7.0.00.0000.05720.03
5.6.280.0030.07021.12
5.6.210.0070.08720.64
5.6.200.0030.08318.11
5.6.190.0130.06320.45
5.6.180.0370.04720.54
5.6.170.0300.08720.71
5.6.160.0000.04320.35
5.6.150.0070.08018.19
5.6.140.0030.04318.11
5.6.130.0100.03318.14
5.6.120.0070.07020.96
5.6.110.0130.07720.96
5.6.100.0130.07720.97
5.6.90.0030.04320.99
5.6.80.0030.03720.52
5.5.350.0230.08720.42
5.5.340.0130.07717.93
5.5.330.0070.08320.40
5.5.320.0370.07020.29
5.5.310.0170.07020.29
5.5.300.0100.08018.01
5.5.290.0000.04717.97
5.5.280.0100.08320.86
5.5.270.0100.07720.82
5.5.260.0130.08020.83
5.5.250.0200.07320.46
5.5.240.0030.06320.20
5.4.450.0570.05719.47
5.4.440.0200.04719.58
5.4.430.0030.06019.63
5.4.420.0100.05319.31
5.4.410.0130.06319.39
5.4.400.0030.06019.03
5.4.390.0730.05318.74
5.4.380.0900.06318.70
5.4.370.0900.05718.68
5.4.360.0830.05018.55
5.4.350.0870.05718.79
5.4.340.0870.05718.73
5.4.320.0870.06018.60
5.4.310.0870.04718.83
5.4.300.0830.05318.68
5.4.290.0830.05018.56
5.4.280.0770.05718.63
5.4.270.0800.05318.68
5.4.260.0870.05718.54
5.4.250.0970.05318.68
5.4.240.1030.04718.43
5.4.230.0900.05018.44
5.4.220.1030.06318.70
5.4.210.0900.07718.55
5.4.200.0900.04716.46
5.4.190.0730.06318.45
5.4.180.0930.04718.47
5.4.170.0830.05718.76
5.4.160.0930.07018.47
5.4.150.1000.06318.66
5.4.140.0900.05716.22
5.4.130.0770.06016.04
5.4.120.0900.06316.04
5.4.110.0970.04016.16
5.4.100.0700.06716.21
5.4.90.0870.06016.16
5.4.80.0900.04716.07
5.4.70.0800.06316.13
5.4.60.0730.06016.19
5.4.50.0830.05016.25
5.4.40.1830.05716.23
5.4.30.0800.05316.04
5.4.20.0830.05316.13
5.4.10.0830.04316.09
5.4.00.0770.04715.61
5.3.290.0770.06014.66
5.3.280.0870.05314.57
5.3.270.0770.05714.59
5.3.260.0670.06714.62
5.3.250.0800.05014.53
5.3.240.0830.04714.70
5.3.230.0800.05314.59
5.3.220.0830.05314.48
5.3.210.0800.06014.64
5.3.200.0830.04714.48
5.3.190.1900.04714.56
5.3.180.1070.05014.54
5.3.170.0870.06314.52
5.3.160.1000.04314.59
5.3.150.0870.06014.45
5.3.140.0700.05714.59
5.3.130.0730.06314.48
5.3.120.1100.04714.46
5.3.110.0800.05714.44
5.3.100.0830.05714.04
5.3.90.0770.06313.96
5.3.80.0870.06313.99
5.3.70.0670.07013.96
5.3.60.0900.04014.03
5.3.50.0800.05013.86
5.3.40.0800.05314.02
5.3.30.0830.04313.85
5.3.20.0770.04713.72
5.3.10.0730.05013.56
5.3.00.0730.05313.55
5.2.170.0670.04011.18
5.2.160.0700.04711.28
5.2.150.0700.05011.09
5.2.140.0730.03711.12
5.2.130.0730.03711.03
5.2.120.0670.04311.08
5.2.110.0730.04311.12
5.2.100.0600.05011.24
5.2.90.0770.03311.15
5.2.80.0700.03711.13
5.2.70.0630.04311.12
5.2.60.0670.05011.00
5.2.50.0670.03710.96
5.2.40.0570.03711.14
5.2.30.0530.04310.95
5.2.20.0500.04010.88
5.2.10.0500.05010.84
5.2.00.0530.04010.83
5.1.60.0570.03710.16
5.1.50.0630.04010.04
5.1.40.0570.0539.97
5.1.30.0470.04010.38
5.1.20.0700.05310.48
5.1.10.0600.04010.13
5.1.00.0500.04310.08
5.0.50.0300.0338.66
5.0.40.0330.0278.49
5.0.30.0230.0478.33
5.0.20.0270.0338.32
5.0.10.0370.0238.16
5.0.00.0370.0408.18
4.4.90.0330.0235.94
4.4.80.0330.0205.81
4.4.70.0370.0175.99
4.4.60.0270.0275.90
4.4.50.0370.0205.94
4.4.40.0270.0335.87
4.4.30.0230.0235.88
4.4.20.0300.0205.87
4.4.10.0330.0135.93
4.4.00.0330.0335.98
4.3.110.0370.0305.86
4.3.100.0330.0205.84
4.3.90.0200.0275.80
4.3.80.0200.0405.77
4.3.70.0270.0235.77
4.3.60.0300.0175.82
4.3.50.0230.0275.77
4.3.40.0300.0335.86
4.3.30.0130.0234.62
4.3.20.0130.0304.53
4.3.10.0130.0204.59
4.3.00.0100.0207.19