3v4l.org

run code in 300+ PHP versions simultaneously
<?php class first { protected $someArray = array(); } class second extends first { protected $someValue = null; protected $someArray = array(); protected $someValue = null; public function __construct($someValue) { $this->someValue = $someValue; } } $objFirst = new second('123'); $objSecond = new second('321'); var_dump ($objFirst == $objSecond); $dummy = print_r($objFirst); var_dump ($objFirst == $objSecond);

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.230.2600.03719.30
5.4.220.3430.04018.84
5.4.210.3430.03318.85
5.4.200.3700.04019.08
5.4.190.3700.04018.97
5.4.180.3970.03319.23
5.4.170.3970.03719.18
5.4.160.3630.04018.83
5.4.150.3670.04319.06
5.4.140.3670.04016.43
5.4.130.3770.02716.54
5.4.120.3770.04016.40
5.4.110.3530.04016.63
5.4.100.3670.03716.51
5.4.90.3630.04016.63
5.4.80.3470.03316.49
5.4.70.3700.02716.41
5.4.60.3930.04016.51
5.4.50.3770.03716.16
5.4.40.4030.03716.51
5.4.30.3770.03316.48
5.4.20.3570.03316.55
5.4.10.3900.04016.23
5.4.00.4370.03715.90
5.3.280.3830.03314.67
5.3.270.3730.04014.52
5.3.260.3830.04014.59
5.3.250.3670.04014.57
5.3.240.4430.03714.68
5.3.230.3600.03014.57
5.3.220.4000.04314.55
5.3.210.2900.04314.72
5.3.200.3670.03714.68
5.3.190.3500.04014.47
5.3.180.3470.04014.46
5.3.170.3500.03714.64
5.3.160.3730.03714.46
5.3.150.3830.04014.45
5.3.140.4030.04014.70
5.3.130.3570.03714.47
5.3.120.3370.04014.66
5.3.110.3400.04014.77
5.3.100.3770.03314.05
5.3.90.3930.03714.09
5.3.80.3470.03714.01
5.3.70.3400.03314.08
5.3.60.3770.03714.15
5.3.50.3700.03713.96
5.3.40.3570.04013.94
5.3.30.3500.04013.83
5.3.20.3500.03313.73
5.3.10.3770.03713.63
5.3.00.3730.03313.79

preferences:
139.95 ms | 1394 KiB | 7 Q