3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(1, 2); $file = new splfileobject('/tmp/stdfile.txt', 'w+'); $file->fputcsv($a); var_dump(file_get_contents('/tmp/stdfile.txt'));
based on kuGq9

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.2.60.0000.01316.82
7.2.00.0060.01018.95
7.1.200.0040.00815.82
7.1.100.0080.00418.16
7.1.70.0040.00417.05
7.1.60.0030.00817.32
7.1.50.0070.00716.92
7.1.00.0100.07022.43
7.0.200.0090.00916.71
7.0.140.0070.06722.09
7.0.60.0100.05319.91
7.0.50.0100.08017.81
7.0.40.0200.07320.13
7.0.30.0200.08320.17
7.0.20.0200.07720.00
7.0.10.0070.04020.30
7.0.00.0030.09020.33
5.6.280.0100.06720.86
5.6.210.0130.06720.69
5.6.200.0030.04318.09
5.6.190.0130.07020.41
5.6.180.0370.06720.77
5.6.170.0370.07720.47
5.6.160.0030.04020.54
5.6.150.0130.07318.21
5.6.140.0000.05018.14
5.6.130.0000.05718.12
5.6.120.0100.08320.98
5.6.110.0030.08320.99
5.6.100.0070.04021.10
5.6.90.0000.07720.88
5.6.80.0130.07720.38
5.5.350.0200.05720.34
5.5.340.0000.05317.95
5.5.330.0030.06720.21
5.5.320.0370.04320.30
5.5.310.0300.07020.50
5.5.300.0070.04717.98
5.5.290.0000.06018.02
5.5.280.0130.05720.68
5.5.270.0000.07720.86
5.5.260.0200.07020.89
5.5.250.0000.04320.55
5.5.240.0100.07020.18
5.4.450.0470.06719.34
5.4.440.0630.05719.15
5.4.430.0570.06319.31
5.4.420.0530.05019.13
5.4.410.0700.05019.38
5.4.400.0700.05319.19
5.4.390.0700.07319.11
5.4.380.0230.07318.51
5.4.370.0170.06318.63
5.4.360.0270.05018.68
5.4.350.0200.05718.50
5.4.340.0330.05018.68
5.4.320.0230.05318.75
5.4.310.0330.06718.69
5.4.300.0200.07318.68
5.4.290.0230.05318.66
5.4.280.0230.05318.60
5.4.270.0300.04718.66
5.4.260.0230.05718.57
5.4.250.0130.06018.66
5.4.240.0230.05018.59
5.4.230.0130.06018.65
5.4.220.0130.06718.54
5.4.210.0230.05718.58
5.4.200.0170.06016.50
5.4.190.0230.05318.58
5.4.180.0200.06718.54
5.4.170.0230.05718.57
5.4.160.0130.06018.48
5.4.150.0230.05018.55
5.4.140.0230.04716.15
5.4.130.0330.04316.17
5.4.120.0200.05316.36
5.4.110.0300.05316.06
5.4.100.0170.05716.08
5.4.90.0230.06716.15
5.4.80.0270.04716.12
5.4.70.0300.07016.15
5.4.60.0130.07016.25
5.4.50.0170.05716.09
5.4.40.0270.05316.05
5.4.30.0170.07316.23
5.4.20.0330.05316.19
5.4.10.0200.05716.24
5.4.00.0200.04715.72
5.3.290.0100.06714.71
5.3.280.0330.04014.58
5.3.270.0200.07014.64
5.3.260.0230.05714.60
5.3.250.0230.05314.58
5.3.240.0330.05314.60
5.3.230.0230.07714.68
5.3.220.0300.07014.60
5.3.210.0200.05714.66
5.3.200.0230.05314.48
5.3.190.0200.06314.56
5.3.180.0230.04714.47
5.3.170.0200.04714.46
5.3.160.0270.04714.47
5.3.150.0230.05014.55
5.3.140.0170.05714.64
5.3.130.0330.04314.60
5.3.120.0170.05714.64
5.3.110.0200.05314.46
5.3.100.0130.05713.93
5.3.90.0200.05013.96
5.3.80.0130.06014.02
5.3.70.0200.05014.00
5.3.60.0300.04013.99
5.3.50.0270.04313.88
5.3.40.0130.05314.04
5.3.30.0170.05014.00
5.3.20.0170.05313.64
5.3.10.0170.06013.64
5.3.00.0270.07013.63
5.2.170.0130.06311.06
5.2.160.0270.05711.07
5.2.150.0230.05011.15
5.2.140.0300.05011.20
5.2.130.0170.06011.15
5.2.120.0070.05711.08
5.2.110.0300.03011.10
5.2.100.0130.04311.07
5.2.90.0130.04311.14
5.2.80.0300.04311.10
5.2.70.0130.04711.09
5.2.60.0170.04011.20
5.2.50.0130.05311.07
5.2.40.0170.04010.92
5.2.30.0170.04011.13
5.2.20.0230.03310.91
5.2.10.0200.03710.96
5.2.00.0100.05310.67
5.1.60.0100.04010.12
5.1.50.0100.03710.06
5.1.40.0200.02710.01
5.1.30.0200.03010.38
5.1.20.0130.03710.40
5.1.10.0230.03010.19
5.1.00.0130.03710.05
5.0.50.0070.0308.64
5.0.40.0100.0308.42
5.0.30.0070.0478.24
5.0.20.0100.0278.17
5.0.10.0070.0308.18
5.0.00.0070.0438.24
4.4.90.0030.0236.98
4.4.80.0030.0236.98
4.4.70.0270.0136.98
4.4.60.0030.0276.98
4.4.50.0100.0276.98
4.4.40.0100.0376.98
4.4.30.0030.0276.98
4.4.20.0030.0276.98
4.4.10.0100.0236.98
4.4.00.0070.0376.98
4.3.110.0100.0206.98
4.3.100.0100.0206.98
4.3.90.0100.0276.98
4.3.80.0130.0336.98
4.3.70.0070.0206.98
4.3.60.0030.0236.98
4.3.50.0070.0236.98
4.3.40.0100.0406.98
4.3.30.0000.0306.98
4.3.20.0000.0276.98
4.3.10.0030.0236.98
4.3.00.0100.02310.29