3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class ChildThread extends Thread { public $data; public function run() { /* Do some work */ $this->data = 'result'; } } $thread = new ChildThread(); if ($thread->start()) { /* * Do some work here, while already doing other * work in the child thread. */ // wait until thread is finished $thread->join(); // we can now even access $thread->data }

Here you find the average performance (time & memory) of each version. A greyed 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.00.0100.00619.24
7.1.100.0030.01117.93
7.1.70.0000.00816.95
7.1.60.0070.01019.46
7.1.50.0190.01634.49
7.1.00.0030.07722.45
7.0.200.0090.00616.37
7.0.140.0030.03321.95
7.0.60.0100.08319.87
7.0.50.0070.05317.95
7.0.40.0070.09020.10
7.0.30.0170.04720.26
7.0.20.0230.04320.09
7.0.10.0230.05720.23
7.0.00.0100.05720.05
5.6.280.0100.06321.07
5.6.210.0070.03720.45
5.6.200.0130.07318.22
5.6.190.0100.08320.48
5.6.180.0070.07320.51
5.6.170.0230.03720.48
5.6.160.0130.08320.55
5.6.150.0100.07718.19
5.6.140.0070.03718.18
5.6.130.0030.08318.13
5.6.120.0000.04721.00
5.6.110.0100.08721.11
5.6.100.0170.05721.11
5.6.90.0070.07021.12
5.6.80.0100.08020.53
5.6.70.0200.04020.50
5.5.350.0030.07020.30
5.5.340.0030.04018.07
5.5.330.0070.08720.57
5.5.320.0100.04720.28
5.5.310.0270.03720.41
5.5.300.0000.07318.08
5.5.290.0030.04017.98
5.5.280.0070.08720.98
5.5.270.0100.04320.87
5.5.260.0130.07720.68
5.5.250.0030.07720.50
5.5.240.0070.08020.29
5.4.450.0530.06319.54
5.4.440.0070.06019.18
5.4.430.0300.05019.46
5.4.420.0800.05719.69
5.4.410.0200.04719.21
5.4.400.0200.05718.75
5.4.390.0170.05018.38
5.4.380.0170.05318.70
5.4.370.0130.05318.75
5.4.360.0070.06318.59
5.4.350.0200.05018.70
5.4.340.0200.07018.45
5.4.320.0300.03718.58
5.4.310.0270.04018.54
5.4.300.0270.04718.79
5.4.290.0200.04718.74
5.4.280.0100.05718.51
5.4.270.0100.05718.64
5.4.260.0130.05318.75
5.4.250.0230.07318.23
5.4.240.0200.07018.74
5.4.230.0130.05018.59
5.4.220.0100.05718.67
5.4.210.0230.04018.46
5.4.200.0030.06016.60
5.4.190.0200.05018.72
5.4.180.0270.03718.77
5.4.170.0170.05018.46
5.4.160.0200.05018.73
5.4.150.0230.05718.70
5.4.140.0170.05016.28
5.4.130.0200.04016.40
5.4.120.0000.06716.16
5.4.110.0200.04316.44
5.4.100.0170.05016.27
5.4.90.0000.06316.29
5.4.80.0100.05016.27
5.4.70.0170.06016.39
5.4.60.0300.04016.17
5.4.50.0170.04716.37
5.4.40.0170.05016.15
5.4.30.0200.04316.18
5.4.20.0200.04716.23
5.4.10.0070.05316.26
5.4.00.0170.05015.62
5.3.290.0130.05714.64
5.3.280.0170.04714.66
5.3.270.0070.06014.65
5.3.260.0130.05314.59
5.3.250.0170.05014.80
5.3.240.0170.05314.63
5.3.230.0130.05014.77
5.3.220.0100.05714.61
5.3.210.0170.05314.62
5.3.200.0200.04314.68
5.3.190.0230.04314.58
5.3.180.0230.05714.57
5.3.170.0170.04714.69
5.3.160.0130.05014.55
5.3.150.0170.07014.76
5.3.140.0270.06014.57
5.3.130.0100.08014.58
5.3.120.0170.07314.65
5.3.110.0270.06314.74
5.3.100.0100.06014.14
5.3.90.0070.05714.15
5.3.80.0100.05314.14
5.3.70.0100.05714.11
5.3.60.0130.05014.07
5.3.50.0130.05014.07
5.3.40.0100.05714.00
5.3.30.0200.04313.90
5.3.20.0130.04713.67
5.3.10.0170.04313.64
5.3.00.0100.05713.67
5.2.170.0070.04711.19
5.2.160.0130.04011.19
5.2.150.0130.04011.36
5.2.140.0070.05011.14
5.2.130.0130.04011.25
5.2.120.0070.04311.16
5.2.110.0130.04311.17
5.2.100.0030.04711.21
5.2.90.0070.04311.11
5.2.80.0100.04011.19
5.2.70.0300.02311.13
5.2.60.0170.03311.10
5.2.50.0100.04311.15
5.2.40.0100.03711.09
5.2.30.0170.04011.02
5.2.20.0070.04311.02
5.2.10.0170.03010.93
5.2.00.0100.04310.75
5.1.60.0030.03710.11
5.1.50.0100.03310.01
5.1.40.0130.03010.09
5.1.30.0100.03710.43
5.1.20.0100.04010.41
5.1.10.0130.03010.10
5.1.00.0100.03310.17
5.0.50.0070.0308.74
5.0.40.0000.0338.52
5.0.30.0130.0378.43
5.0.20.0070.0278.23
5.0.10.0030.0338.20
5.0.00.0070.0438.20
4.4.90.0030.0235.89
4.4.80.0030.0305.86
4.4.70.0000.0275.88
4.4.60.0100.0175.88
4.4.50.0100.0175.88
4.4.40.0030.0405.90
4.4.30.0030.0235.89
4.4.20.0070.0205.97
4.4.10.0000.0275.93
4.4.00.0070.0335.89
4.3.110.0030.0235.82
4.3.100.0100.0175.86
4.3.90.0070.0235.81
4.3.80.0100.0275.93
4.3.70.0030.0235.77
4.3.60.0030.0235.78
4.3.50.0030.0235.78
4.3.40.0030.0335.73
4.3.30.0070.0204.58
4.3.20.0030.0304.55
4.3.10.0000.0274.54
4.3.00.0070.0206.86