3v4l.org

run code in 300+ PHP versions simultaneously
<?php Namespace app { class berries { public $name; public $quantity; function __construct($name=NULL) { $this->name = $name; } } $object = app::berries("aberry"); $objecttext = serialize($object); $objectnew = unserialize($objecttext); print_r($objectnew);

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.340.1700.03719.24
5.4.320.1970.05319.14
5.4.310.1930.03319.06
5.4.300.2130.04718.84
5.4.290.2170.03319.10
5.4.280.2130.03718.84
5.4.270.1900.03318.95
5.4.260.2030.04719.21
5.4.250.1800.04018.99
5.4.240.1870.03319.16
5.4.230.1870.03319.19
5.4.220.1870.03719.18
5.4.210.1200.03019.07
5.4.200.0030.06319.16
5.4.190.0030.05018.83
5.4.180.0070.03319.11
5.4.170.1800.04019.08
5.4.160.2130.04319.20
5.4.150.1930.04019.19
5.4.140.1900.03016.34
5.4.130.2100.04716.61
5.4.120.2030.03316.40
5.4.110.2170.03316.50
5.4.100.1900.04016.41
5.4.90.1700.04016.51
5.4.80.1970.03716.59
5.4.70.2170.04316.58
5.4.60.2270.03716.54
5.4.50.1830.04016.55
5.4.40.1800.03316.39
5.4.30.1870.04716.51
5.4.20.1770.03316.34
5.4.10.1770.03316.37
5.4.00.1870.03715.82
5.3.290.2030.04714.67
5.3.280.2000.04714.60
5.3.270.2070.03714.69
5.3.260.2070.03314.57
5.3.250.1870.02714.57
5.3.240.2070.04014.61
5.3.230.1970.04314.68
5.3.220.1700.04314.62
5.3.210.2000.04314.64
5.3.200.1970.03714.62
5.3.190.2000.04014.60
5.3.180.1870.03714.65
5.3.170.2030.04014.57
5.3.160.1800.03714.61
5.3.150.2130.03314.79
5.3.140.2100.03714.56
5.3.130.1970.05014.44
5.3.120.1970.04714.52
5.3.110.1600.04014.56
5.3.100.0100.06314.01
5.3.90.0100.03014.15
5.3.80.0000.04314.11
5.3.70.1400.05314.10
5.3.60.2230.03714.01
5.3.50.1930.04713.95
5.3.40.1970.03713.86
5.3.30.2070.03313.83
5.3.20.1800.03313.61
5.3.10.1800.04013.67
5.3.00.2000.04313.54
5.2.170.1730.03011.30
5.2.160.1670.03311.08
5.2.150.1800.02711.08
5.2.140.1730.02711.05
5.2.130.1570.02010.95
5.2.120.1730.02711.18
5.2.110.1570.03310.95
5.2.100.1530.03010.94
5.2.90.1570.02711.12
5.2.80.1800.03011.17
5.2.70.1730.03011.04
5.2.60.1530.03010.90
5.2.50.1530.03311.09
5.2.40.1230.02710.84
5.2.30.1200.03010.88
5.2.20.1370.03010.79
5.2.10.1200.02710.93
5.2.00.1470.03010.73
5.1.60.1230.0239.86
5.1.50.0930.02710.17
5.1.40.1330.0279.96
5.1.30.1230.02310.24
5.1.20.1230.02310.30
5.1.10.1270.0209.93
5.1.00.1230.0279.96
5.0.50.0630.0178.67
5.0.40.0630.0178.53
5.0.30.0630.0278.20
5.0.20.0630.0178.25
5.0.10.0670.0238.09
5.0.00.0630.0308.23
4.4.90.0630.0137.70
4.4.80.0600.0177.70
4.4.70.0600.0177.70
4.4.60.0630.0177.70
4.4.50.0670.0107.70
4.4.40.0630.0237.70
4.4.30.0670.0137.70
4.4.20.0600.0177.70
4.4.10.0730.0177.70
4.4.00.0670.0307.70
4.3.110.0630.0177.70
4.3.100.0870.0177.70
4.3.90.0830.0107.70
4.3.80.0730.0207.70
4.3.70.0700.0137.70
4.3.60.0770.0237.70
4.3.50.0770.0277.70
4.3.40.0670.0277.70
4.3.30.0330.0207.70
4.3.20.0470.0237.70
4.3.10.0470.0277.70
4.3.00.0330.0207.70

preferences:
143.83 ms | 1394 KiB | 7 Q