3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { function __toString(): string { return 'instance of C'; } } class D extends C { function __toString() /* should `: string` be implicit? */ { return 'instance of D'; } }

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.20.0150.00617.52
8.4.10.0080.01119.43
8.3.150.0110.00716.40
8.3.140.0140.00417.20
8.3.130.0040.00418.60
8.3.120.0040.00419.11
8.3.110.0040.00420.94
8.3.100.0100.00016.63
8.3.90.0040.00426.77
8.3.80.0060.00318.43
8.3.70.0110.00716.50
8.3.60.0160.00618.18
8.3.50.0220.00923.45
8.3.40.0090.00518.95
8.3.30.0110.00318.46
8.3.20.0070.00021.81
8.3.10.0030.00622.10
8.3.00.0000.00723.66
8.2.260.0120.00618.04
8.2.250.0110.00716.39
8.2.240.0030.00616.85
8.2.230.0000.01022.58
8.2.220.0100.01024.06
8.2.210.0180.00026.77
8.2.200.0030.00618.17
8.2.190.0060.00916.58
8.2.180.0070.00716.63
8.2.170.0100.01022.96
8.2.160.0140.00020.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00426.16
8.2.110.0060.00320.35
8.2.100.0060.00320.27
8.1.310.0070.01018.16
8.1.300.0060.00317.42
8.1.290.0110.00018.88
8.1.280.0070.01125.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00621.98
8.1.230.0090.00020.39
8.0.100.0030.00516.72
7.4.230.0040.00416.27
7.4.50.0170.00316.49
7.4.40.0100.00916.20
7.4.30.0100.00816.38
7.4.20.0090.00916.42
7.4.10.0070.01216.41
7.4.00.0040.01316.33
7.3.170.0080.01416.42
7.3.160.0070.01216.13
7.3.150.0110.00916.32
7.3.140.0090.00816.27
7.3.130.0110.00716.18
7.3.120.0120.00616.27
7.3.110.0090.01116.25
7.3.100.0050.01116.38
7.3.90.0130.00516.26
7.3.80.0070.01116.25
7.3.70.0090.00916.18
7.3.60.0090.00716.15
7.3.50.0070.01016.14
7.3.40.0080.00916.13
7.3.30.0080.00916.26
7.3.20.0200.01016.22
7.3.10.0050.01216.15
7.3.00.0100.01016.31
7.2.290.0090.01016.19
7.2.280.0090.01016.28
7.2.270.0090.00916.27
7.2.260.0100.00716.19
7.2.250.0070.01316.35
7.2.240.0060.01116.33
7.2.230.0110.00816.37
7.2.220.0070.01316.44
7.2.210.0100.00816.34
7.2.200.0070.01316.35
7.2.190.0060.01116.31
7.2.180.0090.00816.37
7.2.170.0110.00816.37
7.2.160.0120.00916.25
7.2.150.0090.01016.39
7.2.140.0120.00616.43
7.2.130.0090.01016.29
7.2.120.0100.00816.51
7.2.110.0090.00816.41
7.2.100.0090.01116.29
7.2.90.0100.01016.42
7.2.80.0070.01116.39
7.2.70.0090.01016.48
7.2.60.0120.00516.40
7.2.50.0120.00616.38
7.2.40.0110.00716.48
7.2.30.0120.00616.40
7.2.20.0100.00816.42
7.2.10.0140.01016.23
7.2.00.0120.00516.31

preferences:
49.17 ms | 403 KiB | 5 Q