3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Some { public $one = '1'; } class Registry { public static $list = []; public static function set($key, $var) { $self::list[$key] = $var; } public static function get($key) { return $self::list[$key]; } } $product = new Some(); Registry::set('product', $product); var_dump(Registry::get('product'));

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.360.0230.05718.60
5.4.350.0200.02713.81
5.4.340.0070.04013.80
5.4.320.0130.04014.30
5.4.310.0100.05014.28
5.4.300.0100.04014.21
5.4.290.0100.04014.27
5.4.280.0100.04014.19
5.4.270.0030.04314.18
5.4.260.0000.05014.23
5.4.250.0130.04014.23
5.4.240.0130.03314.36
5.4.230.0170.03714.16
5.4.220.0070.04314.17
5.4.210.0130.04014.23
5.4.200.0130.03714.16
5.4.190.0070.04014.16
5.4.180.0100.03714.16
5.4.170.0100.03714.15
5.4.160.0100.03714.20
5.4.150.0030.04314.16
5.4.140.0130.04314.06
5.4.130.0100.03713.77
5.4.120.0130.03313.89
5.4.110.0100.04013.81
5.4.100.0130.03714.00
5.4.90.0170.03713.78
5.4.80.0070.04014.00
5.4.70.0170.03013.89
5.4.60.0070.04013.79
5.4.50.0170.04013.78
5.4.40.0100.04313.77
5.4.30.0100.03013.77
5.4.20.0070.03313.76
5.4.10.0030.03713.96
5.4.00.0130.02713.18
5.3.290.0130.03714.64
5.3.280.0070.04014.67
5.3.270.0100.04014.58
5.3.260.0030.04314.66
5.3.250.0130.03714.71
5.3.240.0170.04014.63
5.3.230.0100.04714.63
5.3.220.0100.04314.52
5.3.210.0200.03314.54
5.3.200.0170.03314.63
5.3.190.0130.03714.49
5.3.180.0100.04014.68
5.3.170.0130.03714.63
5.3.160.0130.03314.67
5.3.150.0070.04314.54
5.3.140.0100.04014.67
5.3.130.0170.03314.52
5.3.120.0130.04014.65
5.3.110.0100.04014.50
5.3.100.0100.04014.15
5.3.90.0200.02714.04
5.3.80.0100.04014.04
5.3.70.0070.04714.05
5.3.60.0100.04013.90
5.3.50.0130.04313.90
5.3.40.0100.04313.98
5.3.30.0130.03313.96
5.3.20.0070.04013.64
5.3.10.0030.04313.68
5.3.00.0100.03713.57
5.2.170.0100.03711.11
5.2.160.0100.03311.17
5.2.150.0100.03311.27
5.2.140.0100.03311.21
5.2.130.0070.03011.07
5.2.120.0100.02711.08
5.2.110.0100.03011.04
5.2.100.0030.03711.07
5.2.90.0070.03011.20
5.2.80.0100.03711.15
5.2.70.0030.04011.12
5.2.60.0000.03711.12
5.2.50.0100.03311.05
5.2.40.0100.02711.06
5.2.30.0030.03310.87
5.2.20.0130.02310.93
5.2.10.0030.03710.81
5.2.00.0100.02710.69
5.1.60.0100.02010.05
5.1.50.0030.0309.97
5.1.40.0070.0279.93
5.1.30.0000.03310.46
5.1.20.0030.03010.32
5.1.10.0030.02710.05
5.1.00.0030.03010.17
5.0.50.0030.0208.52
5.0.40.0100.0178.39
5.0.30.0000.0338.18
5.0.20.0030.0238.09
5.0.10.0070.0178.26
5.0.00.0000.0378.25
4.4.90.0030.0205.82
4.4.80.0100.0105.80
4.4.70.0000.0205.80
4.4.60.0000.0205.85
4.4.50.0070.0135.86
4.4.40.0030.0275.83
4.4.30.0030.0175.88
4.4.20.0030.0205.96
4.4.10.0000.0275.95
4.4.00.0030.0275.89
4.3.110.0100.0135.87
4.3.100.0030.0175.77
4.3.90.0030.0175.80
4.3.80.0070.0275.77
4.3.70.0030.0175.76
4.3.60.0000.0175.73
4.3.50.0130.0075.79
4.3.40.0030.0275.71
4.3.30.0030.0174.60
4.3.20.0000.0204.55
4.3.10.0000.0174.51
4.3.00.0030.0236.89

preferences:
137.22 ms | 1394 KiB | 7 Q