3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $baz = 1; public static function foo() { echo "foo\n"; } public function bar() { echo "bar\n"; $this->foo(); $this::foo(); self::foo(); self::baz(); } public function baz() { printf("baz = %d\n", $this->baz); } } Test::test

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.5.120.0000.04317.30
5.5.110.0100.04717.33
5.5.100.0070.07717.30
5.5.90.0130.07317.22
5.5.80.0030.04717.19
5.5.70.0000.05717.29
5.5.60.0170.04717.27
5.5.50.0070.03717.20
5.5.40.0200.06717.29
5.5.30.0030.07717.19
5.5.20.0130.07017.32
5.5.10.0130.08017.32
5.5.00.0030.05017.27
5.4.280.0070.03719.05
5.4.270.0100.07319.11
5.4.260.0170.06319.11
5.4.250.0070.08019.04
5.4.240.0070.07319.06
5.4.230.0100.04719.02
5.4.220.0000.04719.00
5.4.210.0100.03719.05
5.4.200.0100.03719.07
5.4.190.0070.07719.06
5.4.180.0100.05319.08
5.4.170.0070.07319.04
5.4.160.0130.06318.98
5.4.150.0100.04019.08
5.4.140.0030.04716.41
5.4.130.0030.04316.45
5.4.120.0130.06316.42
5.4.110.0070.05716.32
5.4.100.0000.07716.38
5.4.90.0070.07016.46
5.4.80.0070.07316.28
5.4.70.0070.04716.57
5.4.60.0100.04716.38
5.4.50.0070.04016.43
5.4.40.0030.07716.45
5.4.30.0100.06016.40
5.4.20.0030.05316.32
5.4.10.0070.05016.40
5.4.00.0070.06015.73
5.3.280.0070.04314.64
5.3.270.0100.07714.82
5.3.260.0030.04714.66
5.3.250.0030.04714.82
5.3.240.0030.04014.64
5.3.230.0070.05314.63
5.3.220.0000.07014.54
5.3.210.0070.05714.61
5.3.200.0100.04314.64
5.3.190.0070.07014.58
5.3.180.0100.07014.58
5.3.170.0030.06014.54
5.3.160.0030.07714.57
5.3.150.0030.05714.53
5.3.140.0100.06014.63
5.3.130.0130.07014.58
5.3.120.0200.06714.77
5.3.110.0170.06714.52
5.3.100.0130.06714.09
5.3.90.0100.05714.24
5.3.80.0000.04714.07
5.3.70.0070.07714.09
5.3.60.0030.03714.00
5.3.50.0030.03713.84
5.3.40.0100.07014.02
5.3.30.0030.04713.96
5.3.20.0100.07013.70
5.3.10.0030.05713.64
5.3.00.0030.08013.68

preferences:
133.23 ms | 1394 KiB | 7 Q