3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a{ const foo = "test"; } class b{ public $obj = null; public function __construct(){ $this->obj = new a; } } $b = new b; echo {$b->obj}::foo; // Parse error!

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.170.0100.07019.11
5.4.160.0100.06719.12
5.4.150.0070.04719.22
5.4.140.0070.07316.46
5.4.130.0070.04716.31
5.4.120.0100.04016.46
5.4.110.0000.04716.72
5.4.100.0000.05016.59
5.4.90.0070.06016.46
5.4.80.0030.07316.51
5.4.70.0070.03316.37
5.4.60.0100.05316.26
5.4.50.0070.05016.27
5.4.40.0100.06316.40
5.4.30.0030.04716.30
5.4.20.0130.06316.34
5.4.10.0100.07016.39
5.4.00.0100.07015.73
5.3.270.0100.07714.61
5.3.260.0070.06714.50
5.3.250.0000.07014.66
5.3.240.0100.07314.61
5.3.230.0130.07014.77
5.3.220.0130.06314.60
5.3.210.0130.06714.62
5.3.200.0130.06714.57
5.3.190.0100.07314.61
5.3.180.0070.06314.48
5.3.170.0070.04314.61
5.3.160.0030.04714.61
5.3.150.0070.07714.58
5.3.140.0100.07314.56
5.3.130.0100.04714.56
5.3.120.0100.04014.70
5.3.110.0030.07714.56
5.3.100.0070.06314.20
5.3.90.0130.05013.94
5.3.80.0170.06713.91
5.3.70.0130.05714.03
5.3.60.0070.05014.01
5.3.50.0030.05013.96
5.3.40.0030.07313.84
5.3.30.0170.07013.98
5.3.20.0030.03713.73
5.3.10.0070.07013.69
5.3.00.0000.04013.78

preferences:
140.31 ms | 939 KiB | 8 Q