3v4l.org

run code in 300+ PHP versions simultaneously
<?php class BaseExample { public static function __callStatic($name, array $arguments) { echo "Calling static method '$name' \n"; } public function __call($name, array $arguments) { echo "Calling object method '$name' \n"; } } class Example extends BaseExample { public function __construct() { Example::test1(); static::test2(); self::test3(); $this->test4(); test7(); } } $u = new Example(); Example::test5(); $u->test6(); function test7() { Example::test7(); static::test8(); self::test9(); $this->test10(); }

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.140.0200.06017.42
5.5.130.0100.07717.45
5.5.120.0070.07017.42
5.5.110.0070.07717.27
5.5.100.0070.07717.18
5.5.90.0070.07317.47
5.5.80.0030.07317.08
5.5.70.0070.07317.17
5.5.60.0200.06017.49
5.5.50.0100.07017.15
5.5.40.0070.07717.34
5.5.30.0100.07017.32
5.5.20.0030.08017.34
5.5.10.0030.08317.32
5.5.00.0130.06717.16
5.4.300.0030.07319.24
5.4.290.0100.07019.00
5.4.280.0130.07018.98
5.4.270.0030.04719.31
5.4.260.0070.07719.31
5.4.250.0100.07019.00
5.4.240.0030.07719.20
5.4.230.0100.07018.98
5.4.220.0000.08319.30
5.4.210.0070.07019.00
5.4.200.0030.05019.23
5.4.190.0130.06319.00
5.4.180.0000.08019.01
5.4.170.0000.08319.17
5.4.160.0030.08018.97
5.4.150.0030.07718.93
5.4.140.0030.07316.50
5.4.130.0130.06316.58
5.4.120.0130.06316.62
5.4.110.0100.06716.59
5.4.100.0070.07016.53
5.4.90.0030.07716.52
5.4.80.0070.06716.40
5.4.70.0170.05316.39
5.4.60.0030.07716.34
5.4.50.0070.06716.44
5.4.40.0070.04016.53
5.4.30.0030.06016.34
5.4.20.0030.07316.62
5.4.10.0070.04316.44
5.4.00.0070.07315.77
5.3.280.0100.07314.70
5.3.270.0030.08314.65
5.3.260.0000.04714.84
5.3.250.0000.08014.61
5.3.240.0070.07314.63
5.3.230.0100.07014.58
5.3.220.0070.06314.80
5.3.210.0170.06714.58
5.3.200.0070.07714.59
5.3.190.0170.06714.58
5.3.180.0030.07314.43
5.3.170.0030.07714.58
5.3.160.0030.07714.58
5.3.150.0030.07014.59
5.3.140.0070.07014.59
5.3.130.0070.04014.68
5.3.120.0030.05314.42
5.3.110.0070.06314.57
5.3.100.0030.05314.05
5.3.90.0000.07313.99
5.3.80.0000.05314.06
5.3.70.0000.06714.03
5.3.60.0030.03714.04
5.3.50.0000.07714.04
5.3.40.0100.02713.81
5.3.30.0070.03013.89
5.3.20.0070.06713.70
5.3.10.0030.03713.64
5.3.00.0000.07013.64
5.2.170.0000.06011.23
5.2.160.0030.05011.14
5.2.150.0100.04011.23
5.2.140.0130.05311.21
5.2.130.0000.05011.10
5.2.120.0030.02711.17
5.2.110.0070.03011.11
5.2.100.0030.06011.24
5.2.90.0030.06311.25
5.2.80.0000.06311.19
5.2.70.0030.06311.07
5.2.60.0000.04711.09
5.2.50.0070.06011.11
5.2.40.0030.05711.08
5.2.30.0000.06310.96
5.2.20.0000.06311.20
5.2.10.0130.05010.73
5.2.00.0070.05710.82
5.1.60.0000.05310.00
5.1.50.0000.05710.18
5.1.40.0030.0539.96
5.1.30.0100.05310.36
5.1.20.0030.04310.36
5.1.10.0000.05010.08
5.1.00.0000.06010.04
5.0.50.0000.0309.75
5.0.40.0070.0409.75
5.0.30.0000.0409.75
5.0.20.0000.0209.75
5.0.10.0000.0439.75
5.0.00.0000.0609.75
4.4.90.0000.0339.75
4.4.80.0000.0339.75
4.4.70.0030.0179.75
4.4.60.0100.0279.75
4.4.50.0070.0309.75
4.4.40.0000.0579.75
4.4.30.0030.0279.75
4.4.20.0000.0379.75
4.4.10.0030.0309.75
4.4.00.0000.0539.75
4.3.110.0000.0239.75
4.3.100.0030.0139.75
4.3.90.0000.0339.75
4.3.80.0070.0309.75
4.3.70.0100.0279.75
4.3.60.0000.0309.75
4.3.50.0030.0339.75
4.3.40.0000.0509.75
4.3.30.0030.0279.75
4.3.20.0000.0409.75
4.3.10.0000.0379.75
4.3.00.0000.0339.75

preferences:
140.04 ms | 1394 KiB | 7 Q