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.1rc30.0120.00616.76
8.1rc20.0140.00516.83
8.1rc10.0140.00516.76
8.0.130.0100.00616.77
8.0.120.0130.00616.79
8.0.110.0150.00416.81
8.0.100.0140.00716.79
8.0.90.0150.00516.77
8.0.80.0150.00516.84
8.0.70.0150.00416.76
8.0.60.0170.00316.78
8.0.50.0140.00616.79
8.0.30.0160.00416.79
8.0.20.0160.00316.85
8.0.10.0120.00716.86
8.0.00.0040.00616.83
7.4.260.0080.00416.36
7.4.250.0170.00616.34
7.4.240.0180.00416.32
7.4.230.0180.00516.33
7.4.220.0160.00316.36
7.4.210.0160.00216.32
7.4.200.0140.00516.31
7.4.190.0160.00416.43
7.4.180.0140.00516.50
7.4.160.0140.00516.36
7.4.150.0130.00516.30
7.4.140.0140.00416.27
7.4.130.0140.00416.17
7.4.120.0110.00716.22
7.4.110.0120.00616.24
7.4.100.0130.00616.36
7.4.90.0130.00616.25
7.4.80.0140.00616.22
7.4.70.0150.00616.21
7.4.60.0150.00616.30
7.4.50.0120.00816.21
7.4.40.0140.00616.20
7.4.30.0120.00716.20
7.4.20.0140.00516.25
7.4.10.0140.00616.24
7.4.00.0140.00416.21
7.3.330.0090.00516.12
7.3.320.0140.00416.13
7.3.310.0110.00516.06
7.3.300.0140.00516.09
7.3.290.0110.00516.09
7.3.280.0120.00316.14
7.3.270.0110.00516.08
7.3.260.0110.00616.07
7.3.250.0100.00716.05
7.3.240.0150.00316.08
7.3.230.0140.00516.12
7.3.220.0140.00616.16
7.3.210.0140.00416.05
7.3.200.0130.00716.09
7.3.190.0140.00616.13
7.3.180.0140.00616.08
7.3.170.0120.00616.11
7.3.160.0110.00816.17
7.3.150.0120.00716.13
7.3.140.0130.00616.13
7.3.130.0130.00616.13
7.3.120.0130.00616.10
7.3.110.0130.00716.01
7.3.100.0140.00616.04
7.3.90.0110.00816.33
7.3.80.0130.00516.13
7.3.70.0110.00716.12
7.3.60.0130.00616.20
7.3.50.0140.00616.15
7.3.40.0110.00616.10
7.3.30.0120.00616.15
7.3.20.0280.00517.45
7.3.10.0130.00717.44
7.3.00.0160.00517.46
7.2.340.0130.00716.06
7.2.330.0150.00816.21
7.2.320.0180.00516.13
7.2.310.0140.00716.16
7.2.300.0150.00516.16
7.2.290.0160.00616.21
7.2.280.0160.00716.14
7.2.270.0180.00516.15
7.2.260.0150.00616.15
7.2.250.0140.00716.17
7.2.240.0150.00716.18
7.2.230.0160.00616.19
7.2.220.0130.00716.14
7.2.210.0140.00716.15
7.2.200.0170.00516.24
7.2.190.0140.00616.24
7.2.180.0120.00916.31
7.2.170.0120.00816.30
7.2.160.0130.00716.27
7.2.150.0160.00617.61
7.2.140.0170.00617.66
7.2.130.0160.00717.70
7.2.120.0150.00617.64
7.2.110.0150.00817.65
7.2.100.0150.00717.69
7.2.90.0240.00417.62
7.2.80.0150.00817.59
7.2.70.0200.00617.64
7.2.60.0170.00517.60
7.2.50.0170.00717.60
7.2.40.0160.00617.68
7.2.30.0140.00717.69
7.2.20.0140.00817.68
7.2.10.0150.00717.71
7.2.00.0170.00417.68

preferences:
13.42 ms | 451 KiB | 5 Q