3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { } class Bar { const SOMECLASS = 'Foo'; protected $instance; public function __construct() { $instance = new static::SOMECLASS; $this->instance = new $instance; } }

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.270.0130.05318.91
5.4.260.0070.07718.98
5.4.250.0030.06019.14
5.4.240.0100.07018.99
5.4.230.0100.07718.91
5.4.220.0030.06018.94
5.4.210.0200.06718.84
5.4.200.0030.08018.84
5.4.190.0170.06019.13
5.4.180.0100.05019.13
5.4.170.0170.05018.87
5.4.160.0070.06719.21
5.4.150.0100.06718.95
5.4.140.0100.06716.72
5.4.130.0200.04316.44
5.4.120.0000.05716.70
5.4.110.0100.06716.73
5.4.100.0030.05316.75
5.4.90.0000.05716.56
5.4.80.0030.05716.70
5.4.70.0230.06016.73
5.4.60.0000.06316.71
5.4.50.0000.06016.61
5.4.40.0070.06716.45
5.4.30.0170.04716.51
5.4.20.0170.05016.54
5.4.10.0100.06316.56
5.4.00.0100.06316.12
5.3.280.0100.05314.80
5.3.270.0130.05014.90
5.3.260.0030.05714.60
5.3.250.0000.06714.87
5.3.240.0170.06314.66
5.3.230.0100.05014.78
5.3.220.0170.06314.85
5.3.210.0170.06314.77
5.3.200.0030.05714.62
5.3.190.0170.04314.84
5.3.180.0030.07314.84
5.3.170.0100.05714.62
5.3.160.0130.05314.43
5.3.150.0030.07314.74
5.3.140.0100.07014.44
5.3.130.0100.07014.83
5.3.120.0030.06714.55
5.3.110.0200.06314.81
5.3.100.0130.05714.11
5.3.90.0070.05014.29
5.3.80.0100.06714.14
5.3.70.0170.06014.22
5.3.60.0030.05714.19
5.3.50.0200.04714.24
5.3.40.0130.05314.03
5.3.30.0000.06014.22
5.3.20.0030.07013.91
5.3.10.0200.05313.71
5.3.00.0030.07313.52

preferences:
142.1 ms | 1386 KiB | 7 Q