3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $id; /** * @var array */ private $other; public __construct($id,$other) { $this->id = $id; $this->other = $other; } } $a = new A(1, array( 'truc', 'bidule' => array( 'something' ) )); $b = new A(1, array( 'truc', 'bidule' => array( 'something' ) )); $c = new A(1, array( 'truc', 'bidule' => array( 'something else' ) )); var_dump($a === $b); var_dump($a == $b); var_dump($a === $c); var_dump($a == $c;

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.50.0100.06717.21
5.5.40.0070.06717.31
5.5.30.0130.04717.22
5.5.20.0100.04017.23
5.5.10.0070.05317.28
5.5.00.0130.07017.26
5.4.210.0070.04719.09
5.4.200.0170.07319.00
5.4.190.0070.07319.02
5.4.180.0030.05019.04
5.4.170.0070.07719.12
5.4.160.0070.08019.11
5.4.150.0200.06718.87
5.4.140.0130.07016.39
5.4.130.0070.07316.30
5.4.120.0030.07716.43
5.4.110.0030.04716.43
5.4.100.0030.04016.43
5.4.90.0070.03316.59
5.4.80.0100.04316.46
5.4.70.0000.05016.39
5.4.60.0130.05716.33
5.4.50.0030.07716.32
5.4.40.0100.03316.37
5.4.30.0100.03016.56
5.4.20.0030.07016.53
5.4.10.0100.03316.43
5.4.00.0100.03315.71
5.3.270.0030.04014.64
5.3.260.0030.07714.65
5.3.250.0130.07014.64
5.3.240.0000.08014.64
5.3.230.0070.07714.61
5.3.220.0030.07014.63
5.3.210.0130.04714.55
5.3.200.0100.03014.61
5.3.190.0070.07314.60
5.3.180.0070.03714.61
5.3.170.0100.03714.57
5.3.160.0070.05014.41
5.3.150.0100.04014.62
5.3.140.0030.05014.51
5.3.130.0000.04014.57
5.3.120.0070.07714.61
5.3.110.0070.05014.57
5.3.100.0030.03714.07
5.3.90.0070.07713.96
5.3.80.0070.05314.05
5.3.70.0100.07014.07
5.3.60.0070.04013.98
5.3.50.0070.06714.04
5.3.40.0030.08013.79
5.3.30.0100.06313.75
5.3.20.0100.06713.68
5.3.10.0070.07713.67
5.3.00.0170.06313.63

preferences:
133.2 ms | 1394 KiB | 7 Q