3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T { public static int $sp = 1; public static function sm(): int { return 2; } // public const C = 3; } var_dump(T::$sp); var_dump(T::sm()); // var_dump(T::C);

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.0000.00816.92
8.1rc20.0040.00416.93
8.1rc10.0040.00416.84
8.0.120.0000.00816.64
8.0.110.0040.00416.61
8.0.100.0070.00016.75
8.0.90.0070.00016.63
8.0.80.0090.00616.79
8.0.70.0000.00716.59
8.0.60.0040.00416.80
8.0.50.0040.00416.71
8.0.30.0120.00916.74
8.0.20.0180.00616.74
8.0.10.0270.00016.87
8.0.00.0150.00716.84
7.4.250.0030.00316.35
7.4.240.0030.00416.52
7.4.230.0000.00716.27
7.4.220.0020.00516.49
7.4.210.0070.00716.39
7.4.200.0000.00716.24
7.4.160.0110.00916.62
7.4.150.0150.00716.44
7.4.140.0150.01016.35
7.4.130.0130.00716.37
7.4.120.0150.00816.46
7.4.110.0180.00916.48
7.4.100.0180.00816.51
7.4.90.0140.00716.28
7.4.80.0090.00916.38
7.4.70.0120.01116.42
7.4.60.0190.00416.44
7.4.50.0110.01016.47
7.4.40.0120.01016.41
7.4.30.0130.00716.48
7.4.20.0170.00516.47
7.4.10.0100.01216.48
7.4.00.0070.01016.48
7.3.310.0000.00716.23
7.3.300.0040.00416.04
7.3.290.0080.00816.21
7.3.280.0120.00816.20
7.3.270.0140.00916.16
7.3.260.0160.00716.15
7.3.250.0130.00816.15
7.3.240.0120.01016.16
7.3.230.0160.01016.13
7.3.220.0100.01016.11
7.3.210.0100.01416.11
7.3.200.0110.01416.14
7.3.190.0140.00716.04
7.3.180.0110.01016.06
7.3.170.0150.00716.17
7.3.160.0160.00816.11
7.3.150.0110.01016.13
7.3.140.0150.01016.04
7.3.130.0120.01316.08
7.3.120.0170.00616.09
7.3.110.0170.00716.06
7.3.100.0140.01316.00
7.3.90.0190.00716.35
7.3.80.0120.01216.11
7.3.70.0160.01016.18
7.3.60.0190.00616.20
7.3.50.0200.00916.21
7.3.40.0160.00616.23
7.3.30.0130.01016.20
7.3.20.0140.01216.25
7.3.10.0160.00816.11
7.3.00.0180.01016.24

preferences:
32.06 ms | 455 KiB | 5 Q