3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class TestField{ public function __construct(){ echo "TestField constructed"; } } $field = 'test'; $fieldfield = $field . 'field'; new $fieldfield();
based on Ys6HL

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.80.0000.01016.49
7.2.60.0030.00716.71
7.2.00.0040.01119.15
7.1.200.0060.00915.82
7.1.100.6220.01015.41
7.1.70.0070.01017.22
7.1.60.0070.00717.09
7.1.50.0100.01416.89
7.1.00.0000.08022.51
7.0.200.0030.01316.68
7.0.140.0030.05721.92
7.0.60.0030.07719.88
7.0.50.0100.07717.73
7.0.40.0030.04320.08
7.0.30.0600.06320.07
7.0.20.0300.07720.33
7.0.10.0100.08720.23
7.0.00.0030.09320.36
5.6.280.0070.07321.10
5.6.210.0070.05720.55
5.6.200.0000.08018.29
5.6.190.0030.09020.77
5.6.180.4170.03720.41
5.6.170.0230.09320.45
5.6.160.0030.04320.48
5.6.150.0000.08018.19
5.6.140.0070.03718.24
5.6.130.0170.06718.28
5.6.120.0030.08321.14
5.6.110.0100.08321.03
5.6.100.0100.08721.07
5.6.90.0100.07720.97
5.6.80.0130.06020.49
5.6.70.0330.06720.28
5.5.350.0070.07020.37
5.5.340.0200.06018.07
5.5.330.0100.04720.57
5.5.320.0330.07320.52
5.5.310.0200.07320.21
5.5.300.0100.07018.04
5.5.290.0130.04317.99
5.5.280.0070.08320.69
5.5.270.0130.05020.87
5.5.260.0070.07020.64
5.5.250.0070.04320.68
5.5.240.0100.08020.13
5.4.450.0770.05019.58
5.4.440.0730.06319.23
5.4.430.0830.04319.63
5.4.420.1030.03319.23
5.4.410.0730.03319.53
5.4.400.0870.06019.26
5.4.390.0370.05018.86
5.4.380.0230.06718.75
5.4.370.0370.08318.76
5.4.360.0100.06718.80
5.4.350.0200.05718.74
5.4.340.0330.06018.78
5.4.320.0230.06018.78
5.4.310.0300.08018.47
5.4.300.0370.07018.74
5.4.290.0470.07018.84
5.4.280.0270.05318.46
5.4.270.0200.06018.60
5.4.260.0230.05318.69
5.4.250.0330.05318.50
5.4.240.0300.07318.85
5.4.230.0330.04718.55
5.4.220.0370.04018.73
5.4.210.0370.08018.73
5.4.200.0300.05016.59
5.4.190.0200.05318.67
5.4.180.0270.05318.79
5.4.170.0200.07018.48
5.4.160.0230.05318.74
5.4.150.0230.05018.81
5.4.140.0230.04716.43
5.4.130.0170.05316.33
5.4.120.0270.05016.27
5.4.110.0330.04016.23
5.4.100.0230.05016.21
5.4.90.0170.05716.25
5.4.80.0300.04716.25
5.4.70.0370.06016.23
5.4.60.0270.04716.30
5.4.50.0230.04716.18
5.4.40.0230.05016.25
5.4.30.0200.05016.28
5.4.20.0170.05716.24
5.4.10.0230.05016.26
5.4.00.0200.05315.78
5.3.290.0200.06014.82
5.3.280.0230.05314.57
5.3.270.0270.05714.80
5.3.260.0230.07014.77
5.3.250.0300.04714.73
5.3.240.0170.06014.78
5.3.230.0430.06014.59
5.3.220.0200.06014.60
5.3.210.0230.05714.66
5.3.200.0170.06314.66
5.3.190.0230.05014.74
5.3.180.0170.05714.78
5.3.170.0230.05014.77
5.3.160.0170.05714.68
5.3.150.0270.06714.55
5.3.140.0300.06714.69
5.3.130.0230.06314.52
5.3.120.0200.06314.65
5.3.110.0300.07014.65
5.3.100.0170.06014.16
5.3.90.0100.06014.01
5.3.80.0200.05014.24
5.3.70.0170.06014.01
5.3.60.0230.05314.10
5.3.50.0130.06013.98
5.3.40.0330.04013.92
5.3.30.0200.05314.07
5.3.20.0200.05013.80
5.3.10.0130.05313.63
5.3.00.0170.05313.66
5.2.170.0100.04711.27
5.2.160.0130.04711.18
5.2.150.0100.04711.26
5.2.140.0130.04311.36
5.2.130.0070.04711.11
5.2.120.0230.03011.33
5.2.110.0200.04011.32
5.2.100.0070.04711.09
5.2.90.0170.04011.13
5.2.80.0130.04311.19
5.2.70.0100.05011.20
5.2.60.0170.04311.09
5.2.50.0130.04311.16
5.2.40.0170.03711.12
5.2.30.0270.03311.09
5.2.20.0200.04011.06
5.2.10.0070.04711.07
5.2.00.0130.04310.91
5.1.60.0200.04010.17
5.1.50.0100.03710.03
5.1.40.0130.0379.97
5.1.30.0200.03710.43
5.1.20.0170.03310.47
5.1.10.0170.03710.20
5.1.00.0100.03710.16
5.0.50.0070.0308.57
5.0.40.0200.0238.40
5.0.30.0130.0408.32
5.0.20.0030.0338.30
5.0.10.0130.0238.36
5.0.00.0070.0478.30
4.4.90.0070.0275.89
4.4.80.0100.0235.88
4.4.70.0100.0205.88
4.4.60.0100.0205.88
4.4.50.0130.0175.90
4.4.40.0170.0375.89
4.4.30.0130.0175.96
4.4.20.0130.0176.04
4.4.10.0070.0235.93
4.4.00.0100.0336.02
4.3.110.0030.0275.90
4.3.100.0100.0205.84
4.3.90.0130.0205.82
4.3.80.0070.0335.80
4.3.70.0070.0205.87
4.3.60.0070.0205.78
4.3.50.0100.0235.91
4.3.40.0100.0335.76
4.3.30.0070.0205.40
4.3.20.0030.0305.40
4.3.10.0070.0205.40
4.3.00.0130.0236.83