3v4l.org

run code in 300+ PHP versions simultaneously
<?php //define an error handler function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, $errno, 0, $errfile, $errline); } //set ur error handle set_error_handler("exception_error_handler"); final class valueobjectEmail { const EMAIL = "me@where.com"; static $p = "me@here.com"; // can't unset static property private $pp = "me@there.org"; // but may unset ppp properties function getProp(){ return valueobjectEmail::$p; } function setProp(){ valueobjectEmail::$p = 'blee'; } function getPropPP(){ return $this->pp; } function UnsetPP() { unset($this->pp); } private function __destruct() { return false; } } $vo = new valueobjectEmail; var_dump($vo); echo $vo->getProp(),"\n"; $vo->setProp(); echo $vo->getProp(),"\n"; $vo2 = new valueobjectEmail; echo $vo == $vo2,"\n"; echo $vo === $vo2,"\n"; echo "\n",$vo2->getPropPP(),"\n"; $vo2->UnsetPP(); var_dump($vo2); echo $vo::EMAIL,"\n"; try { $vo = null; } catch(Exception $e) { echo $e; } finally { echo "You may not destroy the value object","\n"; } var_dump($vo);

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.0090.00918.56
8.3.50.0120.01022.12
8.3.40.0110.00418.79
8.3.30.0040.01219.01
8.3.20.0080.00020.32
8.3.10.0030.00620.70
8.3.00.0050.00519.63
8.2.180.0170.00016.63
8.2.170.0120.00322.96
8.2.160.0110.00320.43
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00522.05
8.2.110.0030.00620.35
8.2.100.0090.00318.22
8.2.90.0000.00819.23
8.2.80.0000.00917.97
8.2.70.0000.00917.63
8.2.60.0000.00817.93
8.2.50.0000.01018.07
8.2.40.0040.00418.22
8.2.30.0070.00018.07
8.2.20.0060.00317.79
8.2.10.0070.00018.19
8.2.00.0050.00217.74
8.1.280.0090.00925.92
8.1.270.0060.00322.12
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.98
8.1.230.0040.00719.11
8.1.220.0080.00017.91
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00817.25
8.1.180.0000.00818.10
8.1.170.0030.00618.56
8.1.160.0050.00321.96
8.1.150.0030.00518.81
8.1.140.0040.00417.46
8.1.130.0030.00317.88
8.1.120.0000.00717.54
8.1.110.0050.00317.43
8.1.100.0040.00417.52
8.1.90.0000.00717.45
8.1.80.0050.00217.46
8.1.70.0080.00017.41
8.1.60.0090.00017.59
8.1.50.0000.00817.44
8.1.40.0040.00417.53
8.1.30.0040.00417.73
8.1.20.0080.00017.56
8.1.10.0000.00817.49
8.1.00.0000.00917.52
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.52
8.0.270.0080.00017.18
8.0.260.0000.00717.21
8.0.250.0040.00417.03
8.0.240.0000.00717.03
8.0.230.0000.00717.04
8.0.220.0030.00316.96
8.0.210.0050.00216.93
8.0.200.0000.00717.07
8.0.190.0070.00417.00
8.0.180.0040.00416.92
8.0.170.0040.00417.02
8.0.160.0000.00716.99
8.0.150.0070.00016.98
8.0.140.0040.00417.01
8.0.130.0000.00613.36
8.0.120.0050.00316.99
8.0.110.0050.00217.03
8.0.100.0030.00517.01
8.0.90.0000.00716.79
8.0.80.0060.00916.94
8.0.70.0000.00816.94
8.0.60.0040.00416.93
8.0.50.0050.00217.02
8.0.30.0110.01217.26
8.0.20.0160.00617.40
8.0.10.0000.00816.98
8.0.00.0060.01116.74
7.4.330.0000.00515.15
7.4.320.0050.00216.54
7.4.300.0060.00016.52
7.4.290.0000.00816.62
7.4.280.0000.00716.53
7.4.270.0030.00316.66
7.4.260.0030.00316.40
7.4.250.0030.00616.49
7.4.240.0050.00316.45
7.4.230.0020.00516.54
7.4.220.0110.00816.66
7.4.210.0070.00716.61
7.4.200.0000.00916.50
7.4.160.0050.01116.53
7.4.150.0120.00617.40
7.4.140.0100.00817.86
7.4.130.0040.01316.59
7.4.120.0150.00516.49
7.4.110.0090.00916.54
7.4.100.0100.01316.51
7.4.90.0110.00716.59
7.4.80.0090.00919.39
7.4.70.0110.00716.56
7.4.60.0080.01016.50
7.4.50.0050.00016.67
7.4.40.0140.00316.50
7.4.30.0150.00316.40
7.4.00.0050.00815.12
7.3.330.0000.00513.31
7.3.320.0050.00013.32
7.3.310.0000.00816.48
7.3.300.0030.00316.46
7.3.290.0070.00716.47
7.3.280.0090.01016.40
7.3.270.0090.00917.40
7.3.260.0130.00316.42
7.3.250.0120.00516.44
7.3.240.0030.01816.62
7.3.230.0080.00816.66
7.3.210.0150.00316.41
7.3.200.0160.00919.39
7.3.190.0050.01116.53
7.3.180.0050.01216.43
7.3.170.0120.00616.49
7.3.160.0130.01016.54
7.3.120.0060.01215.00
7.3.110.0070.01014.91
7.3.100.0070.01114.86
7.3.90.0060.01214.96
7.3.80.0060.01014.98
7.3.70.0070.01114.69
7.3.60.0110.00314.88
7.3.50.0030.00614.84
7.3.40.0030.01314.95
7.3.30.0060.00914.73
7.3.20.0070.00716.77
7.3.10.0100.00716.80
7.3.00.0100.00716.79
7.2.330.0040.01416.65
7.2.320.0180.00316.59
7.2.310.0110.00616.70
7.2.300.0090.00916.79
7.2.290.0060.01216.59
7.2.250.0160.00315.09
7.2.240.0110.00815.22
7.2.230.0030.01415.04
7.2.220.0030.00915.41
7.2.210.0000.01415.05
7.2.200.0040.01115.08
7.2.190.0040.01115.09
7.2.180.0110.00715.16
7.2.170.0040.00815.12
7.2.60.0300.00816.80
7.2.00.0070.00719.36
7.1.330.0100.00315.77
7.1.320.0000.01315.92
7.1.310.0090.00316.01
7.1.300.0060.00815.95
7.1.290.0120.00315.78
7.1.280.0040.00715.90
7.1.270.0000.01416.00
7.1.260.0040.01115.92
7.1.200.0030.00915.95
7.1.70.0000.00917.04
7.1.60.0040.00817.25
7.1.50.0130.00916.85
7.1.00.0070.07022.37
7.0.200.0030.01316.84
7.0.140.0030.07022.00
7.0.60.0070.04320.03
7.0.50.0170.07017.90
7.0.40.0100.04320.11
7.0.30.0330.05320.26
7.0.20.0230.07720.06
7.0.10.0200.07320.07
7.0.00.0030.09020.15
5.6.280.0070.07021.11
5.6.210.0170.04720.55
5.6.200.0130.08018.19
5.6.190.0030.09320.47
5.6.180.0270.05720.34
5.6.170.0200.05020.51
5.6.160.0070.04020.46
5.6.150.0100.03318.16
5.6.140.0100.03318.20
5.6.130.0070.08018.27
5.6.120.0100.03720.94
5.6.110.0030.09020.96
5.6.100.0200.07321.02
5.6.90.0100.07320.94
5.6.80.0000.06020.39
5.5.350.0170.03020.33
5.5.340.0030.04017.99
5.5.330.0130.06020.37
5.5.320.0430.05320.25
5.5.310.0270.04320.29
5.5.300.0000.06717.98
5.5.290.0100.04717.91
5.5.280.0170.08020.81
5.5.270.0070.08020.79
5.5.260.0000.04720.88
5.5.250.0100.07020.50
5.5.240.0130.08020.16
5.4.450.0700.05019.42
5.4.440.0900.05719.30
5.4.430.0870.06319.19
5.4.420.0670.00019.63
5.4.410.0670.00019.32
5.4.400.0630.00019.27
5.4.390.0630.00019.09
5.4.380.0670.00019.21
5.4.370.0630.00019.15
5.4.360.0600.00019.12
5.4.350.0670.00018.99
5.4.340.0830.00019.07
5.4.320.0080.04112.53
5.4.310.0070.03512.53
5.4.300.0080.03312.54
5.4.290.0060.03612.53
5.4.280.0050.04112.43
5.4.270.0060.03512.42
5.4.260.0080.03412.42
5.4.250.0100.03312.42
5.4.240.0070.03512.42
5.4.230.0060.03812.41
5.4.220.0050.03712.42
5.4.210.0070.03812.42
5.4.200.0070.03512.42
5.4.190.0040.03612.41
5.4.180.0040.03612.41
5.4.170.0060.03412.42
5.4.160.0040.03612.41
5.4.150.0080.03312.41
5.4.140.0050.03712.10
5.4.130.0060.03412.08
5.4.120.0070.03912.05
5.4.110.0090.04412.04
5.4.100.0040.03612.04
5.4.90.0040.03812.04
5.4.80.0060.03612.04
5.4.70.0020.03812.04
5.4.60.0030.03712.04
5.4.50.0080.03312.04
5.4.40.0040.03512.02
5.4.30.0100.03212.02
5.4.20.0080.03712.02
5.4.10.0050.03412.02
5.4.00.0090.03811.50
5.3.290.0050.03912.80
5.3.280.0070.04112.71
5.3.270.0090.03412.72
5.3.260.0060.04912.72
5.3.250.0030.03812.72
5.3.240.0090.03212.72
5.3.230.0060.04012.71
5.3.220.0030.03912.68
5.3.210.0040.04512.68
5.3.200.0100.03412.68
5.3.190.0060.03612.68
5.3.180.0050.03712.67
5.3.170.0060.03412.67
5.3.160.0070.04512.68
5.3.150.0080.03512.68
5.3.140.0090.03912.66
5.3.130.0080.03812.66
5.3.120.0060.03812.66
5.3.110.0040.04012.66
5.3.100.0060.03712.13
5.3.90.0070.03412.11
5.3.80.0100.03612.10
5.3.70.0060.03412.11
5.3.60.0060.03612.09
5.3.50.0080.03412.04
5.3.40.0060.03612.04
5.3.30.0070.03511.99
5.3.20.0060.03311.78
5.3.10.0050.03511.74
5.3.00.0090.03211.73
5.2.170.0050.0299.23
5.2.160.0060.0289.23
5.2.150.0040.0319.23
5.2.140.0050.0309.23
5.2.130.0050.0289.19
5.2.120.0040.0299.19
5.2.110.0030.0319.20
5.2.100.0030.0309.19
5.2.90.0050.0289.19
5.2.80.0060.0299.18
5.2.70.0060.0299.18
5.2.60.0030.0319.14
5.2.50.0040.0309.11
5.2.40.0050.0289.09
5.2.30.0040.0299.05
5.2.20.0030.0299.05
5.2.10.0040.0338.96
5.2.00.0050.0298.82
5.1.60.0050.0328.11
5.1.50.0030.0278.10
5.1.40.0030.0308.08
5.1.30.0040.0278.43
5.1.20.0060.0248.45
5.1.10.0030.0268.18
5.1.00.0040.0248.18
5.0.50.0040.0196.66
5.0.40.0020.0206.52
5.0.30.0030.0306.33
5.0.20.0050.0166.30
5.0.10.0030.0196.27
5.0.00.0040.0366.27
4.4.90.0010.0194.78
4.4.80.0040.0134.75
4.4.70.0000.0184.75
4.4.60.0020.0154.75
4.4.50.0020.0154.77
4.4.40.0030.0254.71
4.4.30.0040.0254.75
4.4.20.0040.0134.85
4.4.10.0020.0154.85
4.4.00.0040.0234.76
4.3.110.0010.0174.67
4.3.100.0020.0164.67
4.3.90.0020.0144.63
4.3.80.0030.0274.58
4.3.70.0020.0144.63
4.3.60.0000.0174.62
4.3.50.0020.0164.63
4.3.40.0040.0224.53
4.3.30.0010.0173.30
4.3.20.0040.0143.27
4.3.10.0020.0163.24
4.3.00.0100.01316.50

preferences:
46.55 ms | 401 KiB | 5 Q