3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __get() { echo 'wut'; } } class Bar { public function __construct() { $this->wut = 'bar'; } public function __get($key) { echo $key; } } class Baz { public function __construct() { $this->wut = 'baz'; } } $foo = new Foo; $bar = new Bar; $baz = new Baz; var_dump([$foo->wut, $bar->wut, $baz->wut]);

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.380.0170.06018.76
5.4.370.0170.05318.75
5.4.360.0230.04718.83
5.4.350.0230.04718.79
5.4.340.0200.05018.54
5.4.320.0170.05318.53
5.4.310.0200.05018.57
5.4.300.0270.04718.63
5.4.290.0170.05318.57
5.4.280.0130.05718.57
5.4.270.0330.04318.61
5.4.260.0200.05018.66
5.4.250.0230.05318.63
5.4.240.0200.05318.47
5.4.230.0300.04318.55
5.4.220.0130.06018.81
5.4.210.0100.06018.61
5.4.200.0230.04316.78
5.4.190.0230.05018.72
5.4.180.0200.05318.59
5.4.170.0230.04718.55
5.4.160.0070.06018.72
5.4.150.0270.04318.58
5.4.140.0130.05316.30
5.4.130.0130.05316.32
5.4.120.0200.05316.42
5.4.110.0170.05716.29
5.4.100.0170.05716.20
5.4.90.0130.05716.41
5.4.80.0270.04316.27
5.4.70.0130.05716.20
5.4.60.0200.04716.27
5.4.50.0130.05016.14
5.4.40.0230.04316.23
5.4.30.0200.04716.30
5.4.20.0170.05016.25
5.4.10.0100.05716.23
5.4.00.0230.05015.89
5.3.290.0270.05014.84
5.3.280.0130.06014.72
5.3.270.0200.05014.61
5.3.260.0230.05014.62
5.3.250.0200.05014.80
5.3.240.0230.05314.73
5.3.230.0070.06314.77
5.3.220.0100.05714.78
5.3.210.0170.05714.68
5.3.200.0130.06014.77
5.3.190.0170.05714.60
5.3.180.0300.06014.59
5.3.170.0200.07014.54
5.3.160.0130.07714.66
5.3.150.0100.06014.70
5.3.140.0170.05014.58
5.3.130.0170.05314.57
5.3.120.0070.06314.78
5.3.110.0130.05714.77
5.3.100.0130.05014.06
5.3.90.0070.06314.18
5.3.80.0200.06014.13
5.3.70.0200.06314.18
5.3.60.0170.06013.99
5.3.50.0200.05014.00
5.3.40.0200.05014.00
5.3.30.0200.05314.13
5.3.20.0330.03313.79
5.3.10.0330.03313.71
5.3.00.0100.05713.68
5.2.170.0070.05011.16
5.2.160.0200.03711.16
5.2.150.0230.03711.38
5.2.140.0170.04011.25
5.2.130.0200.03311.14
5.2.120.0170.03711.14
5.2.110.0070.04711.22
5.2.100.0100.04011.12
5.2.90.0100.04711.11
5.2.80.0100.04711.29
5.2.70.0070.05011.21
5.2.60.0130.04011.08
5.2.50.0130.04311.13
5.2.40.0070.04311.10
5.2.30.0170.04011.02
5.2.20.0100.04011.03
5.2.10.0130.03710.84
5.2.00.0130.04010.82
5.1.60.0030.04310.02
5.1.50.0200.02710.03
5.1.40.0200.0279.96
5.1.30.0130.03710.38
5.1.20.0130.03310.40
5.1.10.0130.03310.11
5.1.00.0130.03310.10
5.0.50.0000.0378.58
5.0.40.0030.0308.45
5.0.30.0000.0538.24
5.0.20.0100.0278.28
5.0.10.0030.0338.19
5.0.00.0100.0438.16
4.4.90.0070.0235.90
4.4.80.0100.0175.91
4.4.70.0000.0305.87
4.4.60.0030.0235.96
4.4.50.0100.0175.96
4.4.40.0030.0375.88
4.4.30.0070.0235.90
4.4.20.0030.0235.99
4.4.10.0000.0275.93
4.4.00.0070.0336.02
4.3.110.0030.0235.80
4.3.100.0070.0205.86
4.3.90.0070.0205.84
4.3.80.0170.0235.82
4.3.70.0070.0205.80
4.3.60.0070.0205.87
4.3.50.0100.0175.79
4.3.40.0030.0375.78
4.3.30.0070.0204.93
4.3.20.0070.0234.93
4.3.10.0000.0274.93
4.3.00.0000.0237.59

preferences:
145.18 ms | 1394 KiB | 7 Q