3v4l.org

run code in 500+ PHP versions simultaneously
<?php abstract class Foo { // self-referential 'abstract' declaration const NAME = self::NAME; } class Fooling extends Foo { // Overrides definition from parent class // Without this declaration, an error will be triggered const NAME = 'Donald'; }

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.5.60.0040.00316.61
8.5.50.0060.00118.34
8.5.30.0110.00718.03
8.5.20.0080.00920.23
8.5.10.0100.00816.36
8.5.00.0150.00619.95
8.4.210.0120.00821.14
8.4.180.0150.00919.69
8.4.170.0120.01020.42
8.4.160.0130.00920.64
8.4.150.0040.00316.81
8.4.140.0140.00917.22
8.4.130.0070.00818.89
8.4.120.0100.01118.82
8.4.110.0150.00518.96
8.4.100.0050.00417.71
8.4.90.0050.00322.54
8.4.80.0120.00719.16
8.4.70.0120.00917.64
8.4.60.0090.00918.86
8.4.50.0120.00918.34
8.4.40.0110.00817.19
8.4.30.0030.00720.47
8.4.20.0200.00817.19
8.4.10.0250.01117.06
8.3.300.0100.01020.77
8.3.290.0110.00820.79
8.3.280.0130.00718.41
8.3.270.0130.00616.33
8.3.260.0100.01016.44
8.3.250.0100.00916.54
8.3.240.0090.01016.26
8.3.230.0100.00916.26
8.3.220.0120.00620.86
8.3.210.0030.00516.39
8.3.200.0110.00816.32
8.3.190.0080.00619.01
8.3.180.0060.00218.94
8.3.170.0070.00717.28
8.3.160.0150.00616.43
8.3.150.0200.00016.16
8.3.140.0160.00616.56
8.3.130.0170.00317.86
8.3.120.0150.00416.25
8.3.110.0140.00516.15
8.3.100.0140.00716.41
8.3.90.0150.00517.97
8.3.80.0160.00418.10
8.3.70.0160.00316.13
8.3.60.0190.00316.37
8.3.50.0200.00416.36
8.3.40.0190.00917.15
8.3.30.0170.00717.14
8.3.20.0140.01017.11
8.3.10.0260.00617.08
8.3.00.0120.00419.20
8.2.300.0130.00720.10
8.2.290.0060.00316.92
8.2.280.0160.00318.09
8.2.270.0110.00417.92
8.2.260.0280.00416.19
8.2.250.0260.00716.29
8.2.240.0330.00316.35
8.2.230.0190.00516.09
8.2.220.0240.00316.63
8.2.210.0290.00816.42
8.2.200.0200.01216.21
8.2.190.0170.00416.44
8.2.180.0210.00016.55
8.2.170.0170.00517.37
8.2.160.0310.00617.35
8.2.150.0270.01017.41
8.2.140.0220.00417.39
8.2.130.0240.00317.23
8.2.120.0260.00017.41
8.2.110.0240.00017.54
8.2.100.0140.01017.36
8.2.90.0330.00017.15
8.2.80.0200.01017.34
8.2.70.0250.00617.20
8.2.60.0230.00017.46
8.2.50.0300.00017.25
8.2.40.0250.01117.28
8.2.30.0320.00417.37
8.2.20.0240.01217.09
8.2.10.0200.00317.15
8.2.00.0300.00517.19
8.1.340.0120.00820.06
8.1.320.0110.01016.08

preferences:
59.75 ms | 844 KiB | 5 Q