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.3.60.0090.00918.43
8.3.50.0100.00616.29
8.3.40.0150.00418.67
8.3.30.0040.01118.68
8.3.20.0040.01124.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.180.0110.00725.92
8.2.170.0150.00618.95
8.2.160.0040.00922.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00821.11
8.2.110.0090.00022.24
8.2.100.0040.00717.91
8.2.90.0040.00417.75
8.2.80.0000.00818.73
8.2.70.0030.00618.05
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0040.00421.20
8.2.30.0030.00519.18
8.2.20.0030.00517.98
8.2.10.0050.00319.18
8.2.00.0030.00719.17
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0060.00323.92
8.1.230.0040.00717.77
8.1.220.0070.00017.74
8.1.210.0080.00018.77
8.1.200.0050.00517.35
8.1.190.0050.00317.10
8.1.180.0050.00318.10
8.1.170.0030.00618.54
8.1.160.0040.00418.63
8.1.150.0070.00018.67
8.1.140.0040.00418.84
8.1.130.0000.00719.98
8.1.120.0000.00717.35
8.1.110.0030.00617.22
8.1.100.0070.00017.31
8.1.90.0000.00817.26
8.1.80.0070.00317.20
8.1.70.0000.00817.30
8.1.60.0030.00617.52
8.1.50.0000.00817.50
8.1.40.0030.00517.32
8.1.30.0000.00817.55
8.1.20.0000.00917.58
8.1.10.0000.00717.54
8.1.00.0040.00417.41
8.0.300.0040.00420.12
8.0.290.0070.00016.75
8.0.280.0070.00018.42
8.0.270.0030.00316.66
8.0.260.0030.00318.29
8.0.250.0000.00716.91
8.0.240.0030.00316.77
8.0.230.0050.00316.77
8.0.220.0000.00716.73
8.0.210.0000.00716.65
8.0.200.0000.00716.86
8.0.190.0000.00816.76
8.0.180.0000.00716.84
8.0.170.0070.00316.83
8.0.160.0000.00816.71
8.0.150.0030.00316.59
8.0.140.0000.00816.67
8.0.130.0030.00313.20
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.330.0000.00515.55
7.4.320.0030.00316.47
7.4.300.0060.00316.41
7.4.290.0030.00316.40
7.4.280.0040.00416.43
7.4.270.0040.00416.45
7.4.260.0030.00313.32
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.330.0030.00616.26
7.3.320.0050.00013.07
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:
114.99 ms | 401 KiB | 5 Q