3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SubObject { static $instances = 0; public $instance; public function __construct() { $this->instance = ++self::$instances; } class MyCloneable { public $object1; public $object2; } $obj = new MyCloneable(); $obj->object1 = new SubObject(); $obj->object2 = new SubObject(); print("Oggetto originale:\n"); print_r($obj); ?>

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.190.3470.04319.04
5.4.180.0070.05318.98
5.4.170.2500.05719.10
5.4.160.4230.03718.97
5.4.150.4200.04319.01
5.4.140.4230.03716.29
5.4.130.3500.03316.48
5.4.120.4100.03316.67
5.4.110.3600.03316.45
5.4.100.3500.03716.27
5.4.90.3600.03716.51
5.4.80.3400.04016.53
5.4.70.0100.07016.53
5.4.60.0070.07316.35
5.4.50.3500.03716.13
5.4.40.3500.03716.34
5.4.30.3400.03716.53
5.4.20.2830.04016.55
5.4.10.4100.03016.15
5.4.00.4170.03715.78
5.3.270.0070.04714.59
5.3.260.4200.04014.50
5.3.250.4030.03714.50
5.3.240.3670.03314.82
5.3.230.3970.03314.65
5.3.220.4070.03714.79
5.3.210.3930.03014.65
5.3.200.3770.04714.46
5.3.190.3570.03714.68
5.3.180.3570.04014.66
5.3.170.0030.08014.54
5.3.160.2030.04714.55
5.3.150.3430.03714.72
5.3.140.3400.04314.56
5.3.130.3370.04014.45
5.3.120.4270.04314.55
5.3.110.4200.03314.45
5.3.100.3870.03314.04
5.3.90.3370.03314.01
5.3.80.3600.03313.94
5.3.70.3700.03714.17
5.3.60.3270.03314.06
5.3.50.3670.03314.17
5.3.40.3830.03313.96
5.3.30.5030.04313.82
5.3.20.4030.04313.78
5.3.10.4200.04013.57
5.3.00.3770.04013.64

preferences:
138.7 ms | 1394 KiB | 7 Q