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) { } 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.0180.00018.53
8.3.50.0090.01422.10
8.3.40.0130.00318.84
8.3.30.0090.00619.13
8.3.20.0040.00420.31
8.3.10.0030.00620.41
8.3.00.0030.00619.50
8.2.180.0110.00416.75
8.2.170.0070.01022.96
8.2.160.0110.00420.34
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00822.08
8.2.110.0090.00022.20
8.2.100.0060.00617.91
8.2.90.0030.00519.23
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0040.00417.55
8.2.50.0030.00718.07
8.2.40.0000.00818.24
8.2.30.0000.00818.00
8.2.20.0070.00017.76
8.2.10.0040.00418.18
8.2.00.0050.00317.82
8.1.280.0120.00325.92
8.1.270.0030.00722.14
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00023.96
8.1.230.0080.00419.09
8.1.220.0050.00317.78
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0080.00017.48
8.1.180.0030.00618.10
8.1.170.0040.00418.71
8.1.160.0060.00321.94
8.1.150.0050.00318.94
8.1.140.0000.00717.46
8.1.130.0030.00317.76
8.1.120.0040.00317.48
8.1.110.0050.00317.35
8.1.100.0000.00817.35
8.1.90.0040.00417.37
8.1.80.0000.00817.32
8.1.70.0030.00317.43
8.1.60.0000.00817.64
8.1.50.0040.00417.57
8.1.40.0030.00517.51
8.1.30.0040.00417.71
8.1.20.0040.00417.66
8.1.10.0000.00717.48
8.1.00.0080.00017.49
8.0.300.0000.00718.77
8.0.290.0060.00316.88
8.0.280.0030.00518.52
8.0.270.0080.00017.25
8.0.260.0070.00017.27
8.0.250.0030.00317.03
8.0.240.0070.00016.94
8.0.230.0080.00017.02
8.0.220.0000.00716.87
8.0.210.0080.00016.92
8.0.200.0030.00316.92
8.0.190.0000.00817.03
8.0.180.0000.00716.90
8.0.170.0000.00817.03
8.0.160.0040.00416.85
8.0.150.0070.00016.85
8.0.140.0030.00516.92
8.0.130.0030.00313.44
8.0.120.0000.00816.90
8.0.110.0050.00216.96
8.0.100.0050.00317.01
8.0.90.0040.00416.90
8.0.80.0000.01516.96
8.0.70.0080.00016.78
8.0.60.0040.00416.97
8.0.50.0000.00717.01
8.0.30.0140.00617.29
8.0.20.0140.00817.40
8.0.10.0040.00416.91
8.0.00.0080.01016.96
7.4.330.0030.00315.09
7.4.320.0000.00716.47
7.4.300.0070.00016.47
7.4.290.0030.00316.46
7.4.280.0040.00416.45
7.4.270.0070.00016.50
7.4.260.0070.00016.58
7.4.250.0050.00516.47
7.4.240.0040.00416.63
7.4.230.0040.00416.62
7.4.220.0100.01116.73
7.4.210.0030.01216.65
7.4.200.0040.00416.31
7.4.160.0130.00316.44
7.4.150.0040.01417.40
7.4.140.0050.01217.86
7.4.130.0080.00816.47
7.4.120.0090.00816.64
7.4.110.0090.00916.59
7.4.100.0100.00716.71
7.4.90.0190.00316.50
7.4.80.0070.01019.39
7.4.70.0030.01316.71
7.4.60.0090.01216.64
7.4.50.0000.00816.41
7.4.40.0060.01016.73
7.4.30.0110.00616.54
7.4.00.0030.01214.88
7.3.330.0000.00513.46
7.3.320.0050.00013.23
7.3.310.0040.00416.46
7.3.300.0030.00616.45
7.3.290.0090.00916.36
7.3.280.0070.01216.43
7.3.270.0060.01217.40
7.3.260.0160.00316.41
7.3.250.0090.01116.61
7.3.240.0140.00216.61
7.3.230.0100.00716.39
7.3.210.0000.01616.44
7.3.200.0150.00619.39
7.3.190.0080.01116.43
7.3.180.0050.01116.56
7.3.170.0120.00616.41
7.3.160.0120.00616.46
7.3.120.0030.01614.74
7.3.110.0070.00814.82
7.3.100.0050.01014.85
7.3.90.0070.00714.82
7.3.80.0050.00614.93
7.3.70.0050.01014.88
7.3.60.0050.01014.95
7.3.50.0030.01214.98
7.3.40.0090.00414.75
7.3.30.0050.01014.72
7.3.20.0030.00916.63
7.3.10.0090.00516.75
7.3.00.0030.01016.79
7.2.330.0110.00716.56
7.2.320.0120.00416.74
7.2.310.0070.01016.84
7.2.300.0110.00616.63
7.2.290.0090.00816.84
7.2.250.0080.01215.38
7.2.240.0030.01515.15
7.2.230.0120.00515.05
7.2.220.0060.00615.22
7.2.210.0020.00915.16
7.2.200.0050.00815.18
7.2.190.0040.00915.29
7.2.180.0020.01014.90
7.2.170.0050.00614.96
7.2.60.0120.00316.80
7.2.00.0060.00919.68
7.1.330.0050.01115.93
7.1.320.0040.00815.86
7.1.310.0090.00515.96
7.1.300.0080.00615.77
7.1.290.0080.00515.86
7.1.280.0050.00815.68
7.1.270.0020.01115.76
7.1.260.0050.00815.72
7.1.200.0100.00015.82
7.1.100.0040.00718.09
7.1.70.0000.00817.22
7.1.60.0200.00319.32
7.1.50.0070.01716.91
7.1.00.0030.07722.30
7.0.200.0000.00916.90
7.0.140.0000.07721.97
7.0.60.0170.05319.84
7.0.50.0100.06717.93
7.0.40.0030.06320.15
7.0.30.0200.04720.07
7.0.20.0300.06320.26
7.0.10.0070.09020.20
7.0.00.0130.07720.33
5.6.210.0000.06320.71
5.6.200.0100.05018.13
5.6.190.0070.07720.47
5.6.180.0230.05020.53
5.6.170.0200.03720.57
5.6.160.0100.04020.51
5.6.150.0070.07318.29
5.6.140.0130.07718.18
5.6.130.0100.07718.16
5.6.120.0100.06320.89
5.6.110.0200.08321.20
5.6.100.0070.08320.97
5.6.90.0070.08020.96
5.6.80.0030.04020.52
5.5.350.0100.03720.38
5.5.340.0100.07718.04
5.5.330.0070.04020.43
5.5.320.0370.07320.32
5.5.310.0270.05020.19
5.5.300.0030.06017.96
5.5.290.0030.08318.02
5.5.280.0070.06720.88
5.5.270.0030.05720.67
5.5.260.0000.04320.85
5.5.250.0130.07020.56
5.5.240.0130.06720.05
5.4.450.0370.04319.28
5.4.440.0870.05019.59
5.4.430.0800.05019.16
5.4.420.0670.00019.55
5.4.410.0670.00019.21
5.4.400.0600.00019.14
5.4.390.0630.00019.27
5.4.380.0670.00019.12
5.4.370.0700.00018.98
5.4.360.0630.00019.16
5.4.350.0630.00019.03
5.4.340.0630.00019.12
5.4.320.0060.03712.54
5.4.310.0070.03712.52
5.4.300.0050.04012.53
5.4.290.0090.03712.53
5.4.280.0060.03512.42
5.4.270.0060.03612.43
5.4.260.0040.04012.42
5.4.250.0040.04112.43
5.4.240.0040.03912.43
5.4.230.0050.03912.42
5.4.220.0050.03712.42
5.4.210.0070.03512.41
5.4.200.0060.03712.41
5.4.190.0100.03212.41
5.4.180.0100.03812.41
5.4.170.0040.03712.42
5.4.160.0080.03312.41
5.4.150.0110.03312.41
5.4.140.0060.03612.10
5.4.130.0070.03312.08
5.4.120.0070.03312.05
5.4.110.0050.03512.04
5.4.100.0080.03212.04
5.4.90.0100.03712.04
5.4.80.0060.03712.04
5.4.70.0030.03712.04
5.4.60.0070.03412.04
5.4.50.0090.03412.03
5.4.40.0110.03112.02
5.4.30.0050.03612.02
5.4.20.0070.03312.01
5.4.10.0080.03512.02
5.4.00.0050.03611.51
5.3.290.0080.03612.80
5.3.280.0040.03912.71
5.3.270.0070.03812.72
5.3.260.0060.03812.72
5.3.250.0080.03612.71
5.3.240.0060.03512.72
5.3.230.0040.03712.71
5.3.220.0080.03312.68
5.3.210.0080.03512.68
5.3.200.0070.03412.68
5.3.190.0050.03812.68
5.3.180.0050.03712.67
5.3.170.0030.03912.67
5.3.160.0040.03812.67
5.3.150.0080.03712.67
5.3.140.0080.03612.66
5.3.130.0100.03912.66
5.3.120.0170.03512.66
5.3.110.0100.03612.66
5.3.100.0100.03412.13
5.3.90.0080.03612.11
5.3.80.0030.03912.11
5.3.70.0040.03812.10
5.3.60.0090.03312.09
5.3.50.0070.03512.04
5.3.40.0070.03612.04
5.3.30.0060.03511.99
5.3.20.0040.03611.78
5.3.10.0070.03311.74
5.3.00.0030.03811.73
5.2.170.0050.0299.23
5.2.160.0020.0319.23
5.2.150.0050.0309.23
5.2.140.0070.0289.23
5.2.130.0040.0299.19
5.2.120.0060.0409.19
5.2.110.0050.0339.20
5.2.100.0090.0309.19
5.2.90.0080.0319.19
5.2.80.0070.0299.19
5.2.70.0140.0299.19
5.2.60.0100.0329.14
5.2.50.0040.0309.11
5.2.40.0050.0289.09
5.2.30.0100.0279.06
5.2.20.0040.0309.05
5.2.10.0040.0278.96
5.2.00.0060.0278.82
5.1.60.0060.0218.11
5.1.50.0020.0268.10
5.1.40.0020.0268.08
5.1.30.0080.0218.44
5.1.20.0060.0248.45
5.1.10.0040.0258.18
5.1.00.0030.0268.18
5.0.50.0050.0196.66
5.0.40.0030.0196.52
5.0.30.0050.0296.33
5.0.20.0030.0196.29
5.0.10.0020.0216.28
5.0.00.0020.0316.27
4.4.90.0050.0124.78
4.4.80.0020.0154.75
4.4.70.0030.0154.76
4.4.60.0060.0164.75
4.4.50.0030.0164.77
4.4.40.0010.0264.70
4.4.30.0020.0164.76
4.4.20.0010.0204.84
4.4.10.0050.0144.85
4.4.00.0020.0264.76
4.3.110.0020.0164.67
4.3.100.0030.0144.66
4.3.90.0020.0154.64
4.3.80.0050.0314.58
4.3.70.0030.0154.63
4.3.60.0070.0134.63
4.3.50.0070.0154.63
4.3.40.0030.0234.54
4.3.30.0010.0173.30
4.3.20.0020.0163.27
4.3.10.0000.0173.24
4.3.00.0270.01716.50

preferences:
40.29 ms | 401 KiB | 5 Q