3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C{ public const SOME_CONST="SOME_CONST_VAL"; public $some_not_const = "some_not_const"; function f(){ /*legal*/ return "blah blah {$this->some_not_const} blah blah"; /*illegal*/ return "blah blah {$this::SOME_CONST} blah blah"; } }

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.0.130.0090.00616.78
8.0.120.0130.00616.79
8.0.110.0140.00416.80
8.0.100.0140.00616.79
8.0.90.0140.00616.76
8.0.80.0150.00516.85
8.0.70.0140.00516.74
8.0.60.0170.00316.79
8.0.50.0140.00616.79
8.0.30.0150.00416.80
8.0.20.0160.00416.86
8.0.10.0130.00616.85
8.0.00.0040.00516.85
7.4.260.0080.00416.35
7.4.250.0160.00616.35
7.4.240.0170.00416.31
7.4.230.0170.00516.34
7.4.220.0150.00416.36
7.4.210.0160.00316.32
7.4.200.0140.00516.33
7.4.190.0160.00416.44
7.4.180.0140.00516.48
7.4.160.0140.00516.36
7.4.150.0130.00516.30
7.4.140.0140.00416.26
7.4.130.0140.00516.19
7.4.120.0120.00616.24
7.4.110.0120.00616.21
7.4.100.0130.00616.34
7.4.90.0140.00516.25
7.4.80.0130.00716.20
7.4.70.0150.00616.22
7.4.60.0150.00516.28
7.4.50.0130.00716.20
7.4.40.0140.00616.18
7.4.30.0120.00716.20
7.4.20.0140.00616.25
7.4.10.0140.00516.23
7.4.00.0140.00416.22
7.3.330.0100.00516.13
7.3.320.0140.00316.12
7.3.310.0110.00516.04
7.3.300.0130.00516.10
7.3.290.0110.00416.09
7.3.280.0130.00216.13
7.3.270.0110.00516.11
7.3.260.0110.00616.07
7.3.250.0110.00616.08
7.3.240.0140.00416.09
7.3.230.0130.00516.11
7.3.220.0130.00616.15
7.3.210.0130.00516.05
7.3.200.0110.00716.06
7.3.190.0130.00516.09
7.3.180.0140.00516.08
7.3.170.0130.00516.10
7.3.160.0110.00716.15
7.3.150.0110.00716.12
7.3.140.0130.00516.12
7.3.130.0130.00616.12
7.3.120.0130.00616.09
7.3.110.0130.00616.01
7.3.100.0150.00516.03
7.3.90.0120.00716.32
7.3.80.0130.00516.09
7.3.70.0110.00616.09
7.3.60.0130.00516.19
7.3.50.0140.00616.13
7.3.40.0110.00616.09
7.3.30.0110.00616.16
7.3.20.0260.00517.56
7.3.10.0140.00717.52
7.3.00.0160.00517.53
7.2.340.0130.00616.08
7.2.330.0150.00716.20
7.2.320.0170.00516.12
7.2.310.0140.00716.14
7.2.300.0150.00516.13
7.2.290.0150.00616.19
7.2.280.0150.00716.12
7.2.270.0170.00516.13
7.2.260.0150.00616.15
7.2.250.0140.00716.15
7.2.240.0150.00616.17
7.2.230.0150.00616.16
7.2.220.0140.00716.13
7.2.210.0140.00616.15
7.2.200.0160.00516.23
7.2.190.0140.00616.22
7.2.180.0120.00816.30
7.2.170.0120.00716.29
7.2.160.0120.00716.26
7.2.150.0160.00517.71
7.2.140.0170.00617.73
7.2.130.0160.00617.81
7.2.120.0160.00617.73
7.2.110.0150.00717.72
7.2.100.0150.00717.78
7.2.90.0220.00417.71
7.2.80.0150.00717.69
7.2.70.0190.00617.73
7.2.60.0170.00517.71
7.2.50.0160.00717.70
7.2.40.0160.00517.75
7.2.30.0150.00617.76
7.2.20.0140.00817.75
7.2.10.0150.00617.80
7.2.00.0170.00417.76

preferences:
146.75 ms | 1394 KiB | 7 Q