3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $dummy1; public $dummy2; } class ErrorHandler { private $private = 'THIS IS PRIVATE'."\n"; function __construct() { set_error_handler( function ($errno, $errstr, $errfile, $errline) { $this->handleError($errno, $errstr, $errfile, $errline); } ); } private function handleError($errno, $errstr, $errfile, $errline, $errmodule = null) { echo __METHOD__. " dealing with error $errstr, $errfile:$errline\n"; // This attribute is no longer accessible in this object. Same for other // objects and their private attributes once we reach in this state. echo $this->private; echo "Never executed in PHP7.2; there is a fatal error in the line above\n"; } } function reproduceBug(Foo $f) { unset($f->dummy2); foreach ((new ReflectionObject($f))->getProperties() as $p) echo $p->getName() .' = '. $p->getValue($f) ."\n"; echo "This line is not reached in PHP7.2; but it is reached in PHP 7.0\n"; } $errorHandler = new ErrorHandler(); echo $x; # uncommenting this fixes it reproduceBug(new 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.40.0130.00318.97
8.3.30.0070.01318.67
8.3.20.0080.00018.95
8.3.10.0080.00021.90
8.3.00.0080.00023.70
8.2.170.0120.00322.96
8.2.160.0060.00919.08
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0180.00026.16
8.2.120.0070.00019.77
8.2.110.0060.00319.15
8.2.100.0110.00017.84
8.2.90.0000.00817.88
8.2.80.0080.00018.96
8.2.70.0040.00417.50
8.2.60.0050.00317.63
8.2.50.0040.00417.75
8.2.40.0080.00019.54
8.2.30.0000.00720.62
8.2.20.0030.00618.02
8.2.10.0000.00718.11
8.2.00.0000.00818.06
8.1.270.0040.00420.40
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00421.96
8.1.230.0110.00020.97
8.1.220.0050.00318.43
8.1.210.0000.00918.77
8.1.200.0080.00017.48
8.1.190.0000.00817.63
8.1.180.0040.00418.10
8.1.170.0000.00917.62
8.1.160.0000.00818.85
8.1.150.0040.00418.83
8.1.140.0000.00818.90
8.1.130.0000.00717.52
8.1.120.0040.00417.33
8.1.110.0030.00717.38
8.1.100.0040.00417.50
8.1.90.0000.00817.52
8.1.80.0050.00317.39
8.1.70.0000.00717.46
8.1.60.0000.00917.58
8.1.50.0070.00417.54
8.1.40.0000.00817.53
8.1.30.0100.00017.78
8.1.20.0040.00417.69
8.1.10.0000.00817.58
8.1.00.0040.00417.55
8.0.300.0050.00220.03
8.0.290.0070.00016.75
8.0.280.0030.00318.46
8.0.270.0000.00816.91
8.0.260.0070.00016.91
8.0.250.0000.00717.10
8.0.240.0080.00017.04
8.0.230.0030.00616.96
8.0.220.0110.00016.92
8.0.210.0070.00016.96
8.0.200.0040.00416.91
8.0.190.0080.00017.04
8.0.180.0040.00416.98
8.0.170.0050.00516.88
8.0.160.0040.00416.98
8.0.150.0040.00417.00
8.0.140.0000.00716.82
8.0.130.0000.00513.44
8.0.120.0040.00416.88
8.0.110.0040.00417.00
8.0.100.0050.00317.00
8.0.90.0030.00417.05
8.0.80.0090.01016.95
8.0.70.0040.00416.78
8.0.60.0000.00817.04
8.0.50.0040.00416.85
8.0.30.0070.01217.15
8.0.20.0130.01117.40
8.0.10.0080.00016.98
8.0.00.0140.00516.83
7.4.330.0000.00515.55
7.4.320.0040.00416.53
7.4.300.0040.00416.57
7.4.290.0030.00316.49
7.4.280.0000.00816.56
7.4.270.0050.00316.52
7.4.260.0030.00316.58
7.4.250.0080.00016.39
7.4.240.0040.00416.63
7.4.230.0000.00716.63
7.4.220.0000.00716.32
7.4.210.0070.00916.64
7.4.200.0000.00716.52
7.4.160.0100.00616.61
7.4.140.0090.00817.86
7.4.130.0030.01316.45
7.4.120.0070.01016.56
7.4.110.0140.00416.61
7.4.100.0140.00816.75
7.4.90.0140.00916.36
7.4.80.0130.00919.39
7.4.70.0040.01416.83
7.4.60.0110.00816.52
7.4.50.0060.01016.57
7.4.40.0100.01316.59
7.4.10.0060.01014.92
7.4.00.0090.00614.93
7.3.330.0060.00013.31
7.3.320.0000.00513.38
7.3.310.0000.00716.46
7.3.300.0030.00316.47
7.3.290.0060.01316.47
7.3.280.0070.01416.46
7.3.260.0100.00916.53
7.3.240.0100.01016.54
7.3.230.0160.00716.49
7.3.210.0090.01316.63
7.3.200.0060.01616.43
7.3.190.0110.00516.55
7.3.180.0030.01316.43
7.3.170.0150.00616.41
7.3.160.0120.00916.75
7.3.130.0100.00715.04
7.3.120.0080.00814.91
7.3.110.0090.00914.95
7.3.100.0070.01114.78
7.3.90.0070.00715.06
7.3.80.0030.01014.85
7.3.70.0070.00714.75
7.3.60.0000.01114.94
7.3.50.0030.00614.96
7.3.40.0070.00714.77
7.3.30.0000.01514.79
7.3.20.0050.00516.59
7.3.10.0060.01016.65
7.3.00.0070.00416.51
7.2.330.0180.00416.94
7.2.320.0090.01616.63
7.2.310.0100.00716.43
7.2.300.0060.01116.77
7.2.290.0040.02016.80
7.2.260.0040.01615.29
7.2.250.0130.00615.00
7.2.240.0040.01114.94
7.2.230.0030.01315.26
7.2.220.0030.01315.28
7.2.210.0140.00315.35
7.2.200.0040.01015.17
7.2.190.0060.00915.06
7.2.180.0060.00915.17
7.2.170.0030.00614.98
7.2.160.0000.01514.82
7.2.150.0030.00616.65
7.2.140.0030.01017.10
7.2.130.0030.01517.05
7.2.120.0060.00316.73
7.2.110.0090.00616.84
7.2.100.2830.00515.71
7.2.90.2730.00715.80
7.2.80.0470.00915.94
7.2.70.2330.00815.80
7.2.60.2300.00816.05
7.2.50.2440.01115.94
7.2.40.3020.00816.06
7.2.30.3650.00516.00
7.2.20.2440.00915.83
7.2.10.2570.01215.89
7.2.00.2180.01015.95
7.1.330.0070.00715.83
7.1.320.0100.00715.92
7.1.310.0030.01215.81
7.1.300.0070.00715.87
7.1.290.0000.00915.83
7.1.280.0030.00915.83
7.1.270.0030.00515.87
7.1.260.0070.00715.79
7.1.250.0070.00415.66
7.1.240.0030.00815.51
7.1.230.0060.00615.94
7.1.220.3370.00914.57
7.1.210.2950.00514.90
7.1.200.2970.00614.82
7.1.190.3500.00814.70
7.1.180.2450.00914.84
7.1.170.0170.00614.79
7.1.160.2890.00814.78
7.1.150.2780.00814.92
7.1.140.2350.00814.85
7.1.130.2230.00814.72
7.1.120.2260.00614.83
7.1.110.2440.01214.82
7.1.100.2690.00514.77
7.1.90.1980.00814.98
7.1.80.1810.00514.92
7.1.70.2100.00314.79
7.1.60.1990.00823.79
7.1.50.1850.01323.63
7.1.40.2040.01123.85
7.1.30.2040.00923.66
7.1.20.1810.00623.69
7.1.10.0070.01114.64
7.1.00.0100.00514.76
7.0.330.0060.00915.48
7.0.320.0090.00015.44
7.0.310.0000.01115.51
7.0.300.0050.00515.25
7.0.290.0040.01115.20
7.0.280.0100.00315.32
7.0.270.0000.01415.20
7.0.260.0110.00415.49
7.0.250.0070.00715.46
7.0.240.0060.00315.53
7.0.230.0070.00715.57
7.0.220.0070.00715.48
7.0.210.0090.00615.44
7.0.200.0000.01315.45
7.0.190.0000.01315.46
7.0.180.0030.00615.46
7.0.170.0060.00915.53
7.0.160.0030.00915.24
7.0.150.0040.01115.23
7.0.140.0030.00715.56
7.0.130.0060.00615.29
7.0.120.0030.01015.45
7.0.110.0090.00315.27
7.0.100.0130.00015.57
7.0.90.0040.00815.17
7.0.80.0070.00315.59
7.0.70.0000.01515.37
7.0.60.0030.01015.41
7.0.50.0030.00615.25
7.0.40.0150.00013.33
7.0.30.0030.01213.57
7.0.20.0030.00613.42
7.0.10.0130.00313.51
7.0.00.0060.00613.59
5.6.400.0040.01114.19
5.6.390.0090.00614.21
5.6.380.0060.01014.01
5.6.370.0070.00314.36
5.6.360.0040.00814.44
5.6.350.0030.00914.12
5.6.340.0030.00914.38
5.6.330.0100.00714.43
5.6.320.0060.00314.52
5.6.310.0040.00414.25
5.6.300.0030.00614.54
5.6.290.0100.00314.66
5.6.280.0040.00814.46
5.6.270.0060.00614.45
5.6.260.0000.01614.30
5.6.250.0030.00914.52
5.6.240.0090.00914.34
5.6.230.0080.00614.43
5.6.220.0040.01114.26
5.6.210.0070.00714.29
5.6.200.0030.00914.20
5.6.190.0030.00614.41
5.6.180.0040.01414.16
5.6.170.0070.00714.57
5.6.160.0030.00614.57
5.6.150.0090.00914.52
5.6.140.0040.00714.08
5.6.130.0100.00614.41
5.6.120.0070.00714.31
5.6.110.0080.00414.39
5.6.100.0030.00714.37
5.6.90.0030.01014.06
5.6.80.0030.01313.99
5.6.70.0040.01214.14
5.6.60.0040.00414.55
5.6.50.0060.00613.90
5.6.40.0000.01314.20
5.6.30.0060.00614.13
5.6.20.0000.01014.20
5.6.10.0080.00814.12
5.6.00.0000.01314.07

preferences:
56.52 ms | 400 KiB | 5 Q