3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SampleClass { const MASS_Donkey_Bollocks = 1; public function __construct() { } } class AnotherClass { protected $sampleClass; public function __construct() { $this->sampleClass = new SampleClass(); } public function doSomething() { echo 'hello'; var_export($this->sampleClass::MASS_Donkey_Bollocks); echo 'hello2'; } }

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.0070.01418.16
8.3.50.0120.00618.05
8.3.40.0130.00618.57
8.3.30.0040.01118.59
8.3.20.0050.00220.29
8.3.10.0000.01020.20
8.3.00.0080.00021.73
8.2.180.0000.01418.00
8.2.170.0100.00722.96
8.2.160.0110.00422.20
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00521.11
8.2.120.0040.00426.35
8.2.110.0060.00320.82
8.2.100.0030.00817.80
8.2.90.0080.00018.81
8.2.80.0040.00417.97
8.2.70.0040.00417.13
8.2.60.0050.00317.78
8.2.50.0040.00718.09
8.2.40.0000.00720.45
8.2.30.0040.00419.32
8.2.20.0000.00817.57
8.2.10.0080.00017.93
8.2.00.0070.00017.83
8.1.270.0080.00022.11
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0060.00322.59
8.1.230.0040.00717.58
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00917.11
8.1.190.0060.00317.10
8.1.180.0040.00418.10
8.1.170.0090.00018.51
8.1.160.0060.00320.69
8.1.150.0070.00018.83
8.1.140.0030.00519.50
8.1.130.0000.00717.45
8.1.120.0030.00517.32
8.1.110.0070.00017.32
8.1.100.0020.00517.35
8.1.90.0000.00717.33
8.1.80.0000.00717.21
8.1.70.0050.00317.33
8.1.60.0030.00517.48
8.1.50.0030.00617.47
8.1.40.0000.00817.30
8.1.30.0050.00317.38
8.1.20.0040.00417.40
8.1.10.0000.00817.28
8.1.00.0040.00417.34
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0070.00018.36
8.0.270.0000.00717.18
8.0.260.0070.00017.18
8.0.250.0000.00616.86
8.0.240.0000.00716.80
8.0.230.0040.00416.68
8.0.220.0070.00016.65
8.0.210.0000.00716.74
8.0.200.0030.00316.82
8.0.190.0090.00316.72
8.0.180.0060.00316.62
8.0.170.0050.00316.68
8.0.160.0040.00416.80
8.0.150.0050.00216.73
8.0.140.0030.00616.69
8.0.130.0030.00313.21
8.0.120.0050.00516.70
8.0.110.0000.00716.75
8.0.100.0040.00516.64
8.0.90.0040.00416.65
8.0.80.0080.00816.70
8.0.70.0040.00416.76
8.0.60.0000.00716.63
8.0.50.0000.00716.83
8.0.30.0070.01216.99
8.0.20.0110.01017.40
8.0.10.0000.00816.79
8.0.00.0120.01016.57
7.4.330.0000.00616.85
7.4.320.0030.00316.39
7.4.300.0060.00016.52
7.4.290.0040.00416.39
7.4.280.0050.00316.47
7.4.270.0000.00916.36
7.4.260.0000.00716.45
7.4.250.0080.00016.29
7.4.240.0000.00716.39
7.4.230.0000.00716.55
7.4.220.0030.01416.32
7.4.210.0070.01116.39
7.4.200.0070.00016.19
7.4.160.0060.00916.32
7.4.150.0070.01117.40
7.4.140.0090.01117.86
7.4.130.0200.00016.46
7.4.120.0150.00516.20
7.4.110.0100.00716.48
7.4.100.0070.01416.39
7.4.90.0030.01716.43
7.4.80.0090.00919.39
7.4.70.0080.00816.38
7.4.60.0030.01316.25
7.4.50.0030.01216.08
7.4.40.0140.00316.26
7.4.30.0110.00816.38
7.4.00.0120.00014.91
7.3.330.0000.00613.18
7.3.320.0030.00313.14
7.3.310.0030.00416.18
7.3.300.0000.00716.06
7.3.290.0090.00716.17
7.3.280.0090.01016.13
7.3.270.0130.00317.40
7.3.260.0150.00316.44
7.3.240.0100.00816.21
7.3.230.0070.01116.39
7.3.210.0080.00816.48
7.3.200.0080.00816.48
7.3.190.0070.01016.39
7.3.180.0060.00916.18
7.3.170.0110.01016.25
7.3.160.0090.00616.36
7.2.330.0090.00816.36
7.2.320.0060.01216.35
7.2.310.0090.00916.18
7.2.300.0000.01716.52
7.2.290.0170.00616.30
7.2.60.0030.01316.70
7.2.00.0030.00819.27
7.1.200.0090.00615.58
7.1.100.0040.01218.09
7.1.70.0000.00816.81
7.1.60.0130.01319.27
7.1.50.0090.00916.73
7.1.00.0030.07722.36
7.0.200.0330.00714.96
7.0.60.0100.06021.59
7.0.50.0030.08317.87
7.0.40.0100.03720.20
7.0.30.0430.03320.10
7.0.20.0230.07320.07
7.0.10.0000.09020.12
7.0.00.0030.05320.07
5.6.280.0000.03320.90
5.6.210.0070.04720.52
5.6.200.0070.06018.27
5.6.190.0070.07020.55
5.6.180.0230.06020.57
5.6.170.0230.05320.51
5.6.160.0030.08720.50
5.6.150.0070.05318.27
5.6.140.0070.06018.28
5.6.130.0070.07718.28
5.6.120.0070.04320.99
5.6.110.0030.09321.04
5.6.100.0170.07320.98
5.6.90.0030.04321.10
5.6.80.0130.04020.39
5.5.350.0270.08020.33
5.5.340.0000.08317.99
5.5.330.0100.05320.41
5.5.320.0600.06320.38
5.5.310.0200.05020.41
5.5.300.0100.03317.97
5.5.290.0070.05317.98
5.5.280.0070.07320.66
5.5.270.0070.03720.88
5.5.260.0070.06720.68
5.5.250.0100.03320.62
5.5.240.0000.08720.19

preferences:
71.21 ms | 400 KiB | 5 Q