3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $var = self::init(); public static function init() { return 123; } } var_dump(new Foo());

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.320.0330.07319.18
5.4.310.0330.04019.16
5.4.300.0300.03319.06
5.4.290.0270.07018.98
5.4.280.0270.07319.22
5.4.270.0300.07018.98
5.4.260.0230.04719.14
5.4.250.0230.05019.09
5.4.240.0270.03719.13
5.4.230.0230.06718.97
5.4.220.0200.04318.85
5.4.210.0400.06019.15
5.4.200.0170.04019.21
5.4.190.0230.04319.14
5.4.180.0170.03719.05
5.4.170.0170.04019.30
5.4.160.0230.07319.13
5.4.150.0170.04019.07
5.4.140.0230.03316.38
5.4.130.0300.05016.33
5.4.120.0300.06316.38
5.4.110.0170.04016.55
5.4.100.0230.04716.54
5.4.90.0270.06716.31
5.4.80.0230.03316.54
5.4.70.0270.05016.54
5.4.60.0270.04716.34
5.4.50.0370.06016.41
5.4.40.0330.06716.33
5.4.30.0330.05316.55
5.4.20.0330.06316.55
5.4.10.0330.06316.42
5.4.00.0300.06015.95
5.3.290.0370.06714.66
5.3.280.0300.06714.81
5.3.270.0230.06314.56
5.3.260.0330.04714.65
5.3.250.0230.07314.51
5.3.240.0300.07014.51
5.3.230.0200.03714.68
5.3.220.0270.04014.64
5.3.210.0200.06014.61
5.3.200.0170.03714.47
5.3.190.0230.07314.71
5.3.180.0300.03714.46
5.3.170.0200.04014.64
5.3.160.0230.07014.54
5.3.150.0270.05314.53
5.3.140.0270.06314.63
5.3.130.0330.05314.47
5.3.120.0330.07014.46
5.3.110.0430.06714.53
5.3.100.0270.04014.15
5.3.90.0330.05313.93
5.3.80.0300.06014.10
5.3.70.0230.04713.93
5.3.60.0300.06314.11
5.3.50.0300.05014.16
5.3.40.0330.06314.10
5.3.30.0330.07014.02
5.3.20.0270.07013.61
5.3.10.0330.04313.58
5.3.00.0270.04713.71
5.2.170.0230.06011.82
5.2.160.0330.06011.82
5.2.150.0270.04011.82
5.2.140.0300.06011.82
5.2.130.0200.05011.82
5.2.120.0170.04311.82
5.2.110.0300.05711.82
5.2.100.0270.05711.82
5.2.90.0200.04711.82
5.2.80.0330.04311.82
5.2.70.0270.05311.82
5.2.60.0300.05311.82
5.2.50.0300.06711.82
5.2.40.0270.03711.82
5.2.30.0200.05011.82
5.2.20.0170.04711.82
5.2.10.0270.04311.82
5.2.00.0130.03711.82
5.1.60.0300.04311.82
5.1.50.0200.05311.82
5.1.40.0230.04711.82
5.1.30.0170.05711.82
5.1.20.0130.03311.82
5.1.10.0130.04011.82
5.1.00.0170.05011.82
5.0.50.0170.04311.82
5.0.40.0100.03011.82
5.0.30.0130.04011.82
5.0.20.0200.02711.82
5.0.10.0130.03711.82
5.0.00.0170.03311.82
4.4.90.0130.01711.82
4.4.80.0070.02311.82
4.4.70.0170.01311.82
4.4.60.0100.03311.82
4.4.50.0130.03311.82
4.4.40.0130.03311.82
4.4.30.0100.01711.82
4.4.20.0130.03011.82
4.4.10.0070.03311.82
4.4.00.0170.03011.82
4.3.110.0100.02311.82
4.3.100.0100.03011.82
4.3.90.0100.02311.82
4.3.80.0170.04711.82
4.3.70.0070.02311.82
4.3.60.0070.03711.82
4.3.50.0070.03011.82
4.3.40.0130.04711.82
4.3.30.0100.02311.82
4.3.20.0070.02011.82
4.3.10.0030.02011.82
4.3.00.0030.03711.82

preferences:
136.97 ms | 1394 KiB | 7 Q