3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo extends \Exception { public function __construct() { parent::__construct('foo', 0); $this->code = new \stdClass(); } } $e = new Foo(); var_dump($e->getCode());

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.4.120.0060.00224.33
8.4.110.0120.00621.57
8.4.100.0030.00720.64
8.4.90.0140.00618.65
8.4.80.0050.00518.95
8.4.70.0100.01017.84
8.4.60.0190.00718.84
8.4.50.0050.00418.70
8.4.40.0040.00417.90
8.4.30.0150.00320.26
8.4.20.0030.01619.33
8.4.10.0100.01017.68
8.3.250.0120.00618.88
8.3.240.0070.01117.16
8.3.230.0090.01116.62
8.3.220.0050.00618.79
8.3.210.0070.00716.63
8.3.200.0050.00416.57
8.3.190.0100.00817.14
8.3.180.0110.00717.12
8.3.170.0180.00022.80
8.3.160.0090.00017.07
8.3.150.0100.01017.30
8.3.140.0080.00016.75
8.3.130.0060.00318.41
8.3.120.0060.00319.16
8.3.110.0200.00016.62
8.3.100.0090.00024.06
8.3.90.0070.00326.77
8.3.80.0040.00716.75
8.3.70.0070.01116.75
8.3.60.0140.00016.50
8.3.50.0090.01218.05
8.3.40.0040.01120.47
8.3.30.0070.01118.56
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0120.00420.28
8.2.280.0100.00918.53
8.2.270.0120.00617.35
8.2.260.0110.00716.38
8.2.250.0060.00318.55
8.2.240.0060.00917.14
8.2.230.0060.00320.94
8.2.220.0090.00937.54
8.2.210.0140.00726.77
8.2.200.0030.00618.16
8.2.190.0110.00716.58
8.2.180.0120.00325.92
8.2.170.0090.01219.01
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00421.05
8.2.110.0050.00522.12
8.2.100.0100.00417.66
8.2.90.0000.00917.75
8.2.80.0030.00517.97
8.2.70.0100.00017.50
8.2.60.0090.00017.50
8.2.50.0050.00317.98
8.2.40.0040.00417.72
8.2.30.0040.00418.00
8.2.20.0070.00020.54
8.2.10.0070.00017.54
8.2.00.0040.00419.12
8.1.330.0110.00821.85
8.1.320.0100.01016.04
8.1.310.0050.00316.61
8.1.300.0080.00020.20
8.1.290.0090.00018.88
8.1.280.0100.01025.92
8.1.270.0000.00824.01
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00323.96
8.1.230.0040.00820.88
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0060.00317.62
8.1.160.0000.00818.82
8.1.150.0000.00718.61
8.1.140.0000.00717.39
8.1.130.0030.00318.74
8.1.120.0030.00517.41
8.1.110.0040.00417.30
8.1.100.0070.00017.25
8.1.90.0030.00617.45
8.1.80.0080.00317.45
8.1.70.0040.00417.32
8.1.60.0040.00417.54
8.1.50.0000.00917.41
8.1.40.0000.00817.41
8.1.30.0040.00417.70
8.1.20.0030.00617.71
8.1.10.0080.00417.46
8.1.00.0080.00317.46
8.0.300.0050.00219.68
8.0.290.0040.00416.61
8.0.280.0050.00320.16
8.0.270.0070.00016.76
8.0.260.0030.00318.33
8.0.250.0000.00716.87
8.0.240.0000.00616.76
8.0.230.0030.00316.76
8.0.220.0030.00316.77
8.0.210.0050.00316.81
8.0.200.0000.00716.90
8.0.190.0030.00516.79
8.0.180.0030.00616.82
8.0.170.0030.00516.83
8.0.160.0000.00816.87
8.0.150.0000.00716.80
8.0.140.0090.00316.59
8.0.130.0000.01016.80
8.0.120.0030.00716.68
8.0.110.0090.00016.79
8.0.100.0060.00616.64
8.0.90.0030.00616.84
8.0.80.0030.00716.76
8.0.70.0040.00716.75
8.0.60.0060.00316.81
8.0.50.0070.00316.75
8.0.30.0070.00316.78
8.0.20.0030.00616.78
8.0.10.0060.00617.01
7.4.330.0020.00215.55
7.4.320.0050.00216.46
7.4.300.0060.00016.59
7.4.290.0000.01016.57
7.4.280.0090.00016.39
7.4.270.0070.00316.55
7.4.260.0020.00616.61
7.4.250.0080.00316.46
7.4.240.0030.00616.43
7.4.230.0030.00616.57
7.4.220.0070.00316.39
7.4.210.0030.00516.39
7.4.200.0090.00515.82
7.4.190.0090.00316.52
7.4.180.0050.00516.46
7.4.160.0060.00316.61
7.4.150.0050.00316.49
7.4.140.0050.00516.44
7.4.130.0050.00315.63
7.4.120.0000.00715.53
7.4.110.0070.00016.26
7.4.100.0000.00916.30
7.4.90.0060.00316.51
7.4.80.0050.00516.19
7.4.70.0000.00716.22
7.4.60.0040.00416.45
7.4.50.0040.00316.14
7.4.40.0000.00716.29
7.4.30.0040.00416.27
7.4.20.0060.00616.25
7.4.10.0060.00616.27
7.4.00.0000.00816.33

preferences:
28.86 ms | 403 KiB | 5 Q