3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bool { const T_TRUE = true; const T_FALSE = false; private $_type; private $_label; private function __construct($type, $label) { $this->_type = $type; $this->_label = $label; } function Type() { return $this->_type; } function Label() { return $this->_label; } static function True() { return new self(self::T_TRUE, 'true'); } static function False() { return new self(self::T_FALSE, 'false'); } } var_dump(Bool::True()); var_dump(Bool::False());

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.6.280.0000.07320.90
5.6.210.0030.04320.53
5.6.200.0000.09318.29
5.6.190.0100.07320.44
5.6.180.0200.04020.69
5.6.170.0300.04720.62
5.6.160.0200.07020.50
5.6.150.0130.03018.23
5.6.140.0030.06318.24
5.6.130.0000.04318.16
5.6.120.0030.04020.91
5.6.110.0070.04020.99
5.6.100.0030.09321.11
5.6.90.0100.08320.97
5.6.80.0070.08320.38
5.5.350.0200.05720.43
5.5.340.0100.06717.96
5.5.330.0070.03720.27
5.5.320.0400.07320.20
5.5.310.0270.05720.23
5.5.300.0130.07717.95
5.5.290.0070.06318.04
5.5.280.0100.04320.77
5.5.270.0070.05320.78
5.5.260.0130.07720.77
5.5.250.0100.06720.69
5.5.240.0200.07020.19
5.4.450.0300.04319.32
5.4.440.0270.04019.56
5.4.430.0170.05319.46
5.4.420.0130.05019.46
5.4.410.0070.06018.86
5.4.400.0230.04318.76
5.4.390.0200.06018.61
5.4.380.0130.05318.86
5.4.370.0100.05718.75
5.4.360.0070.05318.73
5.4.350.0100.03013.72
5.4.340.0070.04013.91
5.4.320.0100.03314.28
5.4.310.0100.03714.27
5.4.300.0130.03314.33
5.4.290.0100.03714.32
5.4.280.0130.03314.22
5.4.270.0000.04314.16
5.4.260.0030.04014.17
5.4.250.0100.03714.28
5.4.240.0070.03714.39
5.4.230.0070.04014.17
5.4.220.0070.03714.16
5.4.210.0030.04014.31
5.4.200.0200.02714.09
5.4.190.0030.04014.13
5.4.180.0030.04014.37
5.4.170.0000.04014.22
5.4.160.0070.03714.07
5.4.150.0070.03714.23
5.4.140.0070.03713.91
5.4.130.0130.03013.80
5.4.120.0070.03713.73
5.4.110.0100.03313.80
5.4.100.0030.04013.77
5.4.90.0070.03713.77
5.4.80.0070.03713.76
5.4.70.0030.03713.77
5.4.60.0100.03313.75
5.4.50.0030.04013.84
5.4.40.0130.03313.70
5.4.30.0030.04313.76
5.4.20.0070.04713.75
5.4.10.0070.04013.77
5.4.00.0030.05313.32
5.3.290.0100.04314.83
5.3.280.0130.03314.66
5.3.270.0200.02714.65
5.3.260.0070.04714.59
5.3.250.0070.03714.54
5.3.240.0030.05014.55
5.3.230.0030.04014.66
5.3.220.0100.03314.50
5.3.210.0070.04014.76
5.3.200.0030.04014.73
5.3.190.0100.03714.63
5.3.180.0070.04014.55
5.3.170.0100.04014.62
5.3.160.0130.03014.55
5.3.150.0100.03714.49
5.3.140.0100.03314.67
5.3.130.0030.04714.63
5.3.120.0130.03714.58
5.3.110.0030.04714.60
5.3.100.0000.04714.20
5.3.90.0030.05014.05
5.3.80.0070.04014.00
5.3.70.0070.04714.09
5.3.60.0000.04313.99
5.3.50.0100.03313.91
5.3.40.0130.03014.02
5.3.30.0030.04013.96
5.3.20.0100.04013.78
5.3.10.0070.03313.65
5.3.00.0030.04013.63
5.2.170.0070.03711.19
5.2.160.0100.02711.16
5.2.150.0070.03011.20
5.2.140.0100.02711.20
5.2.130.0100.02311.23
5.2.120.0070.03011.15
5.2.110.0030.03311.05
5.2.100.0100.02311.14
5.2.90.0100.02711.14
5.2.80.0100.03011.14
5.2.70.0070.04011.23
5.2.60.0030.03311.09
5.2.50.0030.03311.15
5.2.40.0000.03711.00
5.2.30.0070.03310.91
5.2.20.0100.02311.01
5.2.10.0000.03310.91
5.2.00.0000.03310.65
5.1.60.0070.0209.95
5.1.50.0030.0279.99
5.1.40.0030.02710.05
5.1.30.0100.02010.38
5.1.20.0030.02710.41
5.1.10.0030.03010.08
5.1.00.0030.02710.17
5.0.50.0100.0138.64
5.0.40.0030.0178.36
5.0.30.0030.0308.17
5.0.20.0000.0278.34
5.0.10.0030.0208.16
5.0.00.0070.0278.14
4.4.90.0000.0175.97
4.4.80.0100.0135.80
4.4.70.0030.0175.82
4.4.60.0000.0175.93
4.4.50.0030.0135.86
4.4.40.0000.0275.93
4.4.30.0000.0175.82
4.4.20.0000.0175.93
4.4.10.0030.0135.87
4.4.00.0000.0275.88
4.3.110.0030.0135.79
4.3.100.0070.0105.76
4.3.90.0000.0175.81
4.3.80.0070.0235.76
4.3.70.0030.0135.73
4.3.60.0070.0105.71
4.3.50.0000.0175.76
4.3.40.0000.0275.67
4.3.30.0000.0204.53
4.3.20.0030.0174.51
4.3.10.0000.0174.46
4.3.00.0070.01716.65

preferences:
138.78 ms | 1394 KiB | 7 Q