3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* * ExampleException.php * */ namespace app\exception; class ExampleException extends \Exception { public function __construct($message = null) { var_dump($message); var_dump(get_class($this)); var_dump(json_encode($this)); //if i extend exception the following line results in infinite loop var_dump($this); die; } } throw new \app\exception\ExampleException('why it do like that');

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.70.0110.00716.63
8.3.60.0030.01516.50
8.3.50.0060.00916.62
8.3.40.0000.01418.85
8.3.30.0110.00418.58
8.3.20.0040.00422.28
8.3.10.0040.00422.05
8.3.00.0050.00322.46
8.2.180.0060.01318.09
8.2.170.0150.00022.96
8.2.160.0100.00720.39
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0000.00826.16
8.2.120.0060.00319.41
8.2.110.0090.00320.52
8.2.100.0070.00417.72
8.2.90.0050.00317.75
8.2.80.0050.00318.61
8.2.70.0030.00517.63
8.2.60.0000.00817.63
8.2.50.0060.00317.63
8.2.40.0000.00719.40
8.2.30.0040.00419.14
8.2.20.0080.00018.06
8.2.10.0050.00319.23
8.2.00.0070.00019.04
8.1.280.0070.00725.92
8.1.270.0040.00420.63
8.1.260.0030.00526.35
8.1.250.0100.00728.09
8.1.240.0060.00322.14
8.1.230.0080.00320.81
8.1.220.0060.00318.40
8.1.210.0000.00818.77
8.1.200.0080.00017.23
8.1.190.0060.00317.10
8.1.180.0040.00418.10
8.1.170.0050.00318.44
8.1.160.0040.00418.75
8.1.150.0080.00018.66
8.1.140.0000.00720.88
8.1.130.0030.00320.07
8.1.120.0070.00017.27
8.1.110.0000.00717.30
8.1.100.0000.00717.33
8.1.90.0060.00617.25
8.1.80.0090.00217.26
8.1.70.0070.00417.26
8.1.60.0060.00717.45
8.1.50.0070.00517.45
8.1.40.0020.01117.42
8.1.30.0060.00717.51
8.1.20.0090.00417.62
8.1.10.0070.00617.44
8.1.00.0090.00417.41
8.0.300.0000.00719.91
8.0.290.0080.00016.75
8.0.280.0050.00218.26
8.0.270.0030.00317.14
8.0.260.0000.00620.24
8.0.250.0040.00416.86
8.0.240.0000.00716.82
8.0.230.0050.00316.94
8.0.220.0070.00416.82
8.0.210.0070.00316.83
8.0.200.0080.00216.88
8.0.190.0040.00716.90
8.0.180.0050.00616.86
8.0.170.0070.00516.84
8.0.160.0100.00116.78
8.0.150.0030.00816.81
8.0.140.0090.00216.72
8.0.130.0070.00315.03
8.0.120.0100.00116.88
8.0.110.0040.00716.88
8.0.100.0040.00716.82
8.0.90.0060.00516.91
8.0.80.0080.00916.84
8.0.70.0060.00616.79
8.0.60.0070.00416.86
8.0.50.0060.00516.79
8.0.30.0110.00617.00
8.0.20.0120.00616.98
8.0.10.0050.00616.81
8.0.00.0100.00516.84
7.4.330.0000.00616.71
7.4.320.0030.00316.37
7.4.300.0070.00316.47
7.4.290.0060.00416.42
7.4.280.0060.00316.45
7.4.270.0070.00216.52
7.4.260.0080.00314.81
7.4.250.0000.00716.41
7.4.240.0040.00516.50
7.4.230.0070.00416.33
7.4.220.0060.00316.42
7.4.210.0040.01116.51
7.4.200.0060.00516.36
7.4.190.0110.00416.56
7.4.180.0140.00016.59
7.4.160.0090.00516.49
7.4.150.0040.00916.43
7.4.140.0110.00317.15
7.4.130.0100.00816.37
7.4.120.0080.00816.45
7.4.110.0030.01216.33
7.4.100.0070.00916.44
7.4.90.0100.00616.40
7.4.80.0090.00817.90
7.4.70.0090.00616.55
7.4.60.0100.00516.49
7.4.50.0050.01116.18
7.4.40.0080.00716.47
7.4.30.0100.00316.41
7.4.20.0090.00416.29
7.4.10.0090.00615.49
7.4.00.0090.00715.12
7.3.330.0100.00116.14
7.3.320.0060.00514.66
7.3.310.0050.00516.19
7.3.300.0070.00316.25
7.3.290.0100.00416.32
7.3.280.0120.00316.32
7.3.270.0090.00516.25
7.3.260.0100.00916.38
7.3.250.0080.00616.39
7.3.240.0090.00816.33
7.3.230.0100.00616.21
7.3.220.0120.00316.21
7.3.210.0100.00616.19
7.3.200.0090.00716.17
7.3.190.0060.01316.34
7.3.180.0100.00616.41
7.3.170.0090.00716.38
7.3.160.0070.00916.17
7.3.150.0140.00016.24
7.3.140.0030.00316.26
7.3.130.0070.00515.51
7.3.120.0070.00915.15
7.3.110.0090.00714.98
7.3.100.0040.00915.04
7.3.90.0070.00814.86
7.3.80.0060.00914.82
7.3.70.0070.00814.86
7.3.60.0080.00814.83
7.3.50.0090.00614.83
7.3.40.0080.00614.85
7.3.30.0070.00914.73
7.3.20.0070.01015.95
7.3.10.0100.00715.94
7.3.00.0070.00815.87
7.2.340.0100.00316.20
7.2.330.0080.00816.47
7.2.320.0110.00616.49
7.2.310.0100.00616.43
7.2.300.0100.00616.54
7.2.290.0120.00516.46
7.2.280.0130.00316.21
7.2.270.0100.00316.16
7.2.260.0080.00815.72
7.2.250.0090.00815.39
7.2.240.0070.01015.38
7.2.230.0090.00615.35
7.2.220.0080.00715.10
7.2.210.0070.00815.02
7.2.200.0070.00915.08
7.2.190.0090.00715.05
7.2.180.0080.00715.05
7.2.170.0080.00815.11
7.2.160.0100.00715.07
7.2.150.0080.00916.19
7.2.140.0110.00916.17
7.2.130.0080.00916.16
7.2.120.0100.00816.20
7.2.110.0110.00616.22
7.2.100.0070.01016.18
7.2.90.0100.00616.21
7.2.80.0070.01016.13
7.2.70.0080.00816.18
7.2.60.0070.00916.16
7.2.50.0080.01016.15
7.2.40.0090.00816.28
7.2.30.0080.00916.21
7.2.20.0100.00616.19
7.2.10.0070.01016.24
7.2.00.0080.01016.17
7.1.330.0050.00916.16
7.1.320.0070.00815.11
7.1.310.0080.00715.17
7.1.300.0110.00615.12
7.1.290.0100.00515.05
7.1.280.0120.00715.04
7.1.270.0080.00715.12
7.1.260.0070.00915.10
7.1.250.0070.00815.02
7.1.240.0090.00716.30
7.1.230.0040.00716.24
7.1.220.0050.00716.12
7.1.210.0070.00816.26
7.1.200.0080.00616.29
7.1.190.0100.00516.25
7.1.180.0080.00716.21
7.1.170.0040.00916.28
7.1.160.0040.00916.28
7.1.150.0090.00416.24
7.1.140.0130.00216.27
7.1.130.0070.00816.08
7.1.120.0070.00716.28
7.1.110.0120.00216.33
7.1.100.0070.00516.25
7.1.90.0060.00616.18
7.1.80.0030.00916.24
7.1.70.0050.00915.95
7.1.60.0060.00816.25
7.1.50.0080.00616.27
7.1.40.0110.00416.24
7.1.30.0080.00616.21
7.1.20.0090.00516.11
7.1.10.0070.00616.30
7.1.00.0070.00716.29

preferences:
51.57 ms | 400 KiB | 5 Q