3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * The basic registry interface. * * @author Time.ly Network, Inc. * @since 2.0 * @package Ai1EC * @subpackage Ai1EC.Object */ interface Ai1ec_Registry { /** * Retrieves the key from the registry * * @param string $key * * @return mixed the value associated to the key. */ public function get( $key ); /** * Set the key into the registry. * * @param string $key * @param mixed $value */ public function set( $key, $value ); } /** * Application Registry: handles application wide variables. * * @author Time.ly Network, Inc. * @since 2.0 * @package Ai1EC * @subpackage Ai1EC.Object */ class Ai1ec_Registry_Application implements Ai1ec_Registry { /** * @var Ai1ec_Registry_Object */ protected $_registry; /** * @var array */ protected $_environment = array(); /** * The contructor method. * * @param Ai1ec_Registry_Object $registry */ function __construct( Ai1ec_Registry_Object $registry ) { $this->_registry = $registry; } /* (non-PHPdoc) * @see Ai1ec_Registry::get() */ public function get( $key ) { if ( ! isset ( $this->_environment[$key] ) ) { return false; } return $this->_environment[$key]; } /* (non-PHPdoc) * @see Ai1ec_Registry::set() */ public function set( $key, $value ) { $this->_environment[$key] = $value; } } $app = new Ai1ec_Registry_Application(); $app->set( 'foo', 'baz' ); echo $app->get( 'foo' );

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)
8.3.60.0070.01518.55
8.3.50.0080.01022.12
8.3.40.0060.00918.79
8.3.30.0070.00719.05
8.3.20.0080.00020.04
8.3.10.0000.00821.90
8.3.00.0040.00422.34
8.2.180.0120.00816.63
8.2.170.0120.00322.96
8.2.160.0140.00720.95
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.23
8.2.110.0030.00622.08
8.2.100.0060.00617.84
8.2.90.0000.00819.29
8.2.80.0040.00418.03
8.2.70.0030.00617.75
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0050.00318.22
8.2.30.0030.00618.12
8.2.20.0070.00017.74
8.2.10.0000.00819.59
8.2.00.0050.00517.82
8.1.280.0070.00725.92
8.1.270.0030.00623.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.71
8.1.230.0040.00819.11
8.1.220.0000.00817.77
8.1.210.0050.00518.77
8.1.200.0030.00617.22
8.1.190.0080.00017.41
8.1.180.0060.00318.10
8.1.170.0000.00818.63
8.1.160.0040.00422.05
8.1.150.0040.00418.56
8.1.140.0030.00617.48
8.1.130.0070.00017.80
8.1.120.0040.00417.37
8.1.110.0040.00417.38
8.1.100.0070.00017.43
8.1.90.0040.00317.43
8.1.80.0040.00417.43
8.1.70.0030.00317.39
8.1.60.0050.00517.43
8.1.50.0040.00417.54
8.1.40.0080.00017.36
8.1.30.0000.00817.61
8.1.20.0040.00417.51
8.1.10.0030.00617.61
8.1.00.0050.00317.45
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0000.00818.44
8.0.270.0030.00317.29
8.0.260.0000.00616.87
8.0.250.0070.00017.05
8.0.240.0070.00316.95
8.0.230.0070.00016.94
8.0.220.0000.00816.92
8.0.210.0000.00717.01
8.0.200.0040.00416.89
8.0.190.0000.00816.91
8.0.180.0000.01017.05
8.0.170.0050.00317.04
8.0.160.0000.00716.87
8.0.150.0050.00316.92
8.0.140.0030.00516.93
8.0.130.0030.00313.36
8.0.120.0000.00716.83
8.0.110.0040.00416.87
8.0.100.0000.00716.94
8.0.90.0050.00316.87
8.0.80.0110.00616.94
8.0.70.0040.00416.79
8.0.60.0070.00017.05
8.0.50.0070.00017.04
8.0.30.0110.00817.23
8.0.20.0120.00617.41
8.0.10.0040.00416.99
8.0.00.0110.00616.76
7.4.330.0050.00015.03
7.4.320.0000.00616.42
7.4.300.0050.00216.61
7.4.290.0070.00016.60
7.4.280.0030.00316.38
7.4.270.0070.00316.46
7.4.260.0050.00516.35
7.4.250.0000.00716.48
7.4.240.0000.00716.49
7.4.230.0030.00316.63
7.4.220.0060.01416.44
7.4.210.0080.00816.54
7.4.200.0000.00716.33
7.4.190.0040.00416.43
7.4.160.0050.01016.41
7.4.150.0150.00317.40
7.4.140.0150.00317.86
7.4.130.0110.00616.69
7.4.120.0080.01016.56
7.4.110.0070.01016.46
7.4.100.0130.00316.54
7.4.90.0110.00716.45
7.4.80.0130.00319.39
7.4.70.0030.01516.51
7.4.60.0120.00416.39
7.4.50.0030.00616.20
7.4.40.0090.00622.77
7.4.30.0060.00916.55
7.4.00.0070.00614.82
7.3.330.0050.00013.18
7.3.320.0030.00313.32
7.3.310.0030.00316.25
7.3.300.0070.00016.25
7.3.290.0030.01216.31
7.3.280.0080.00716.40
7.3.270.0030.01317.40
7.3.260.0000.01716.45
7.3.250.0100.00816.45
7.3.240.0090.01216.39
7.3.230.0110.00716.55
7.3.210.0070.01016.41
7.3.200.0110.00819.39
7.3.190.0030.01316.59
7.3.180.0110.01216.68
7.3.170.0110.00416.46
7.3.160.0060.00916.50
7.3.120.0120.00714.82
7.3.110.0060.01315.02
7.3.100.0030.01214.96
7.3.90.0090.00614.77
7.3.80.0030.00614.83
7.3.70.0110.00714.56
7.3.60.0050.00515.01
7.3.50.0070.00714.90
7.3.40.0070.00714.70
7.3.30.0070.00714.85
7.3.20.0060.00616.57
7.3.10.0070.00716.65
7.3.00.0120.00016.41
7.2.330.0120.00916.59
7.2.320.0140.00816.64
7.2.310.0100.01016.31
7.2.300.0120.00616.54
7.2.290.0070.01016.47
7.2.250.0110.00715.05
7.2.240.0000.01115.14
7.2.230.0000.01114.77
7.2.220.0030.00714.86
7.2.210.0000.01614.96
7.2.200.0040.01214.95
7.2.190.0060.00814.93
7.2.180.0030.01315.02
7.2.170.0060.00614.94
7.2.60.0070.00717.00
7.2.00.0070.00719.21
7.1.330.0110.00415.41
7.1.320.0040.00815.66
7.1.310.0100.00615.77
7.1.300.0030.01015.77
7.1.290.0030.00615.45
7.1.280.0090.00015.75
7.1.270.0110.00315.48
7.1.260.0070.00715.76
7.1.200.0060.00915.55
7.1.70.0030.00316.96
7.1.60.0110.00017.02
7.1.50.0070.01416.86
7.1.00.0030.07722.24
7.0.200.0080.00816.79
7.0.140.0070.07022.03
7.0.60.0070.07320.06
7.0.50.0070.05017.87
7.0.40.0100.07020.18
7.0.30.0270.05320.06
7.0.20.0370.05320.23
7.0.10.0170.05020.10
7.0.00.0030.08020.06
5.6.280.0000.07721.09
5.6.210.0070.06020.53
5.6.200.0070.07718.23
5.6.190.0070.04720.39
5.6.180.4070.04020.43
5.6.170.0330.07020.39
5.6.160.0100.08020.53
5.6.150.0130.03718.20
5.6.140.0030.04018.13
5.6.130.0030.04318.27
5.6.120.0200.05320.99
5.6.110.0100.07021.10
5.6.100.0070.07721.00
5.6.90.0100.03721.01
5.6.80.0030.05020.51
5.5.350.0070.07320.32
5.5.340.0130.07718.02
5.5.330.0100.05320.26
5.5.320.0070.06020.57
5.5.310.0270.06320.35
5.5.300.0030.04018.04
5.5.290.0100.03317.99
5.5.280.0070.04320.75
5.5.270.0100.04720.81
5.5.260.0100.08020.88
5.5.250.0130.06320.70
5.5.240.0070.07320.27
5.4.450.0200.05319.34
5.4.440.1100.06719.45
5.4.430.0070.05719.26
5.4.420.0070.07719.70
5.4.410.0200.04318.92
5.4.400.0830.06318.67
5.4.390.0900.04718.84
5.4.380.0130.05718.79
5.4.370.0130.05018.75
5.4.360.0130.04718.79
5.4.350.0050.05112.03
5.4.340.0080.04812.02
5.4.320.0040.04012.51
5.4.310.0060.03812.50
5.4.300.0080.04412.51
5.4.290.0040.04012.51
5.4.280.0090.04512.40
5.4.270.0090.03412.37
5.4.260.0050.03812.38
5.4.250.0070.03512.37
5.4.240.0030.03812.37
5.4.230.0060.03612.37
5.4.220.0030.03912.36
5.4.210.0030.03812.36
5.4.200.0060.04412.37
5.4.190.0070.03412.36
5.4.180.0100.03112.36
5.4.170.0060.03512.37
5.4.160.0040.04212.36
5.4.150.0040.03712.36
5.4.140.0090.03312.04
5.4.130.0060.03412.03
5.4.120.0040.03711.99
5.4.110.0040.03711.98
5.4.100.0040.03611.98
5.4.90.0050.03711.98
5.4.80.0070.03511.98
5.4.70.0060.03411.98
5.4.60.0100.03811.98
5.4.50.0050.04111.98
5.4.40.0050.03511.96
5.4.30.0120.03011.96
5.4.20.0050.03611.96
5.4.10.0060.03611.97
5.4.00.0080.03311.46
5.3.290.0060.05312.80
5.3.280.0050.03812.70
5.3.270.0060.03912.73
5.3.260.0050.03912.72
5.3.250.0070.03612.72
5.3.240.0060.03712.72
5.3.230.0060.04212.71
5.3.220.0100.03312.68
5.3.210.0030.04112.68
5.3.200.0080.03512.68
5.3.190.0040.04012.68
5.3.180.0050.03712.67
5.3.170.0070.03512.67
5.3.160.0090.03312.68
5.3.150.0100.03312.67
5.3.140.0060.03712.66
5.3.130.0050.03912.66
5.3.120.0040.04012.66
5.3.110.0040.04012.66
5.3.100.0090.03312.11
5.3.90.0070.03712.08
5.3.80.0070.03512.08
5.3.70.0040.03712.07
5.3.60.0070.04112.07
5.3.50.0090.03812.00
5.3.40.0080.03412.00
5.3.30.0060.03411.96
5.3.20.0050.03511.74
5.3.10.0050.03511.71
5.3.00.0040.03711.70
5.2.170.0040.0319.20
5.2.160.0030.0309.20
5.2.150.0030.0329.20
5.2.140.0080.0369.20
5.2.130.0050.0329.15
5.2.120.0050.0319.15
5.2.110.0030.0319.16
5.2.100.0060.0279.16
5.2.90.0020.0319.15
5.2.80.0050.0299.15
5.2.70.0080.0289.14
5.2.60.0060.0299.10
5.2.50.0040.0309.07
5.2.40.0050.0289.05
5.2.30.0020.0339.03
5.2.20.0040.0359.02
5.2.10.0020.0308.93
5.2.00.0040.0338.78
5.1.60.0030.0258.06
5.1.50.0050.0278.07
5.1.40.0030.0258.05
5.1.30.0060.0248.40
5.1.20.0040.0298.43
5.1.10.0050.0258.14
5.1.00.0050.0298.14
5.0.50.0020.0216.62
5.0.40.0030.0206.48
5.0.30.0020.0336.29
5.0.20.0040.0186.26
5.0.10.0030.0206.24
5.0.00.0030.0316.23
4.4.90.0030.0154.78
4.4.80.0040.0144.75
4.4.70.0020.0164.75
4.4.60.0020.0224.75
4.4.50.0030.0144.77
4.4.40.0020.0254.71
4.4.30.0020.0204.76
4.4.20.0020.0264.84
4.4.10.0030.0154.85
4.4.00.0040.0244.76
4.3.110.0000.0184.67
4.3.100.0030.0144.67
4.3.90.0000.0174.63
4.3.80.0030.0264.59
4.3.70.0040.0204.63
4.3.60.0030.0204.63
4.3.50.0020.0164.63
4.3.40.0040.0294.54
4.3.30.0030.0213.27
4.3.20.0050.0173.25
4.3.10.0010.0163.21
4.3.00.0200.0306.95

preferences:
47.85 ms | 401 KiB | 5 Q