3v4l.org

run code in 300+ PHP versions simultaneously
<?php class dupa { public var $a; public static $NICE = 'STATIC_VALUE'; public function __construct($param) { $this->a = $param; echo '+_construct'.$this->a.self::$NICE; } public function __call($a, $b) { echo 'Wywolano metodÄ™ '.$a.' z parametrami:'; foreach($b as $i=>$val) { echo 'indeks: '.$i.'wartosc: '.$val; } } public function setA($a) { $this->a = $a; } }; $a = new dupa('blabla'); echo $a->a; $b = new dupa(''); echo $b->a; $b->setA('bb'); $b->setb('bb') ?>

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.0070.07017.29
5.5.110.0130.06717.29
5.5.100.0000.08717.21
5.5.90.0100.07017.23
5.5.80.0100.07317.32
5.5.70.0100.06017.21
5.5.60.0130.05317.22
5.5.50.0070.08017.19
5.5.40.0070.05317.31
5.5.30.0100.03717.22
5.5.20.0100.06717.19
5.5.10.0030.07317.22
5.5.00.0000.04317.28
5.4.270.0070.08019.03
5.4.260.0130.06719.09
5.4.250.0130.07319.26
5.4.240.0070.07318.97
5.4.230.0130.06319.02
5.4.220.0230.06319.05
5.4.210.0100.06719.02
5.4.200.0030.04318.88
5.4.190.0030.05319.01
5.4.180.0000.08719.08
5.4.170.0030.04718.91
5.4.160.0000.07318.87
5.4.150.0170.06718.96
5.4.140.0070.04716.55
5.4.130.0170.03316.39
5.4.120.0070.05316.29
5.4.110.0070.07716.24
5.4.100.0070.07716.46
5.4.90.0070.06016.38
5.4.80.0070.07316.43
5.4.70.0130.05316.39
5.4.60.0100.07016.45
5.4.50.0100.07316.38
5.4.40.0030.07716.34
5.4.30.0130.06316.32
5.4.20.0100.03316.42
5.4.10.0000.05316.29
5.4.00.0130.03715.87
5.3.280.0000.05014.63
5.3.270.0130.07014.66
5.3.260.0070.04714.68
5.3.250.0030.06014.70
5.3.240.0030.07714.62
5.3.230.0130.07014.59
5.3.220.0170.05314.77
5.3.210.0130.04714.55
5.3.200.0070.07314.66
5.3.190.0000.04314.77
5.3.180.0000.04314.41
5.3.170.0100.07314.60
5.3.160.0100.07314.60
5.3.150.0030.06314.41
5.3.140.0100.03714.51
5.3.130.0030.04014.59
5.3.120.0070.07714.75
5.3.110.0030.08314.52
5.3.100.0030.05014.05
5.3.90.0100.06314.02
5.3.80.0030.05714.22
5.3.70.0030.07013.90
5.3.60.0030.04714.04
5.3.50.0070.05714.04
5.3.40.0030.03713.79
5.3.30.0130.02713.91
5.3.20.0070.03013.79
5.3.10.0100.03713.71
5.3.00.0000.03713.64

preferences:
145.02 ms | 1398 KiB | 7 Q