3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bob { public $var; __construct(){ $this->var = function($a){ echo $a + 1; } } } $b = new Bob; ($b->var)(1);

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.4.260.0130.04719.05
5.4.250.0000.05718.79
5.4.240.0100.06318.96
5.4.230.0070.05719.09
5.4.220.0070.06019.00
5.4.210.0130.05318.95
5.4.200.0130.06019.02
5.4.190.0070.07719.09
5.4.180.0070.07318.79
5.4.170.0070.08018.76
5.4.160.0030.05718.99
5.4.150.0130.07319.01
5.4.140.0200.05316.39
5.4.130.0030.05316.30
5.4.120.0100.05016.61
5.4.110.0130.05316.41
5.4.100.0070.05716.52
5.4.90.0100.04716.62
5.4.80.0170.06016.64
5.4.70.0130.04316.40
5.4.60.0130.04316.53
5.4.50.0230.04016.38
5.4.40.0230.03716.50
5.4.30.0130.06316.57
5.4.20.0130.06716.33
5.4.10.0100.05716.59
5.4.00.0100.05015.87
5.3.280.0130.05314.72
5.3.270.0130.07014.57
5.3.260.0100.05014.76
5.3.250.0030.05714.57
5.3.240.0070.05014.43
5.3.230.0100.05014.68
5.3.220.0130.04314.70
5.3.210.0100.05314.54
5.3.200.0100.06714.39
5.3.190.0030.05314.64
5.3.180.0130.04314.52
5.3.170.0030.05714.64
5.3.160.0070.07314.64
5.3.150.0100.05014.73
5.3.140.0070.05014.70
5.3.130.0200.04714.63
5.3.120.0100.05014.72
5.3.110.0170.05014.56
5.3.100.0030.05314.26
5.3.90.0070.05014.10
5.3.80.0000.06714.06
5.3.70.0070.05014.23
5.3.60.0030.05014.06
5.3.50.0100.04313.96
5.3.40.0070.07013.95
5.3.30.0100.05013.93
5.3.20.0130.04313.52
5.3.10.0070.05013.73
5.3.00.0030.05313.64
5.2.170.0030.04011.09
5.2.160.0070.05711.13
5.2.150.0000.04711.14
5.2.140.0070.04311.11
5.2.130.0030.04011.18
5.2.120.0070.03711.10
5.2.110.0100.03311.07
5.2.100.0030.04011.18
5.2.90.0000.04711.05
5.2.80.0070.04011.17
5.2.70.0100.03311.05
5.2.60.0000.04710.95
5.2.50.0070.03710.92
5.2.40.0030.04010.99
5.2.30.0070.05711.03
5.2.20.0130.03310.95
5.2.10.0130.03010.75
5.2.00.0000.04710.78
5.1.60.0030.03310.00
5.1.50.0100.0279.94
5.1.40.0100.03310.01
5.1.30.0070.03710.48
5.1.20.0000.04010.41
5.1.10.0000.04010.07
5.1.00.0030.03710.22
5.0.50.0030.0378.58
5.0.40.0070.0238.60
5.0.30.0030.0408.20
5.0.20.0030.0278.23
5.0.10.0000.0308.13
5.0.00.0100.0337.98
4.4.90.0030.0206.90
4.4.80.0030.0306.90
4.4.70.0070.0176.90
4.4.60.0070.0176.90
4.4.50.0100.0236.90
4.4.40.0030.0376.90
4.4.30.0030.0276.90
4.4.20.0070.0276.90
4.4.10.0030.0236.90
4.4.00.0000.0336.90
4.3.110.0000.0236.90
4.3.100.0030.0176.90
4.3.90.0000.0206.90
4.3.80.0000.0336.90
4.3.70.0030.0206.90
4.3.60.0000.0236.90
4.3.50.0100.0136.90
4.3.40.0000.0436.90
4.3.30.0070.0176.90
4.3.20.0000.0236.90
4.3.10.0030.0206.90
4.3.00.0030.0279.30

preferences:
133.77 ms | 1394 KiB | 7 Q