3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Model { public static $table = 'table'; public static function getTable() { return static::$table; // self:: / static:: } } class User extends Model { public static $table = 'users'; } echo User::getTable(); // 'table'

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.0120.00316.63
8.3.50.0060.00816.08
8.3.40.0070.01118.54
8.3.30.0090.00618.46
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.180.0100.01025.92
8.2.170.0120.00618.94
8.2.160.0090.00622.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00021.01
8.2.110.0000.00922.44
8.2.100.0120.00017.49
8.2.90.0040.00417.70
8.2.80.0060.00317.97
8.2.70.0050.00317.49
8.2.60.0100.00018.05
8.2.50.0100.00018.05
8.2.40.0090.00018.09
8.2.30.0000.00717.94
8.2.20.0000.00717.86
8.2.10.0070.00019.06
8.2.00.0040.00419.16
8.1.280.0080.00825.92
8.1.270.0070.00023.99
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00322.20
8.1.230.0070.00422.75
8.1.220.0070.00017.79
8.1.210.0000.00818.77
8.1.200.0040.00417.10
8.1.190.0060.00317.10
8.1.180.0030.00518.10
8.1.170.0040.00418.50
8.1.160.0000.00718.92
8.1.150.0040.00418.62
8.1.140.0000.00718.74
8.1.130.0030.00320.02
8.1.120.0050.00317.30
8.1.110.0040.00417.22
8.1.100.0040.00417.31
8.1.90.0000.00717.30
8.1.80.0090.00017.34
8.1.70.0000.00717.29
8.1.60.0000.00817.52
8.1.50.0030.00617.49
8.1.40.0090.00017.46
8.1.30.0050.00317.59
8.1.20.0040.00417.47
8.1.10.0090.00317.56
8.1.00.0040.00417.52
8.0.300.0070.00019.63
8.0.290.0080.00316.75
8.0.280.0030.00318.34
8.0.270.0070.00017.91
8.0.260.0030.00318.49
8.0.250.0070.00016.91
8.0.240.0000.00816.95
8.0.230.0070.00016.82
8.0.220.0000.00716.84
8.0.210.0000.00816.79
8.0.200.0000.00716.86
8.0.190.0040.00416.80
8.0.180.0050.00216.85
8.0.170.0040.00416.72
8.0.160.0040.00416.78
8.0.150.0040.00416.73
8.0.140.0000.00816.73
8.0.130.0030.00313.16
8.0.120.0030.00616.77
8.0.110.0080.00016.79
8.0.100.0080.00016.64
8.0.90.0070.00016.68
8.0.80.0070.01116.73
8.0.70.0040.00416.64
8.0.60.0040.00416.66
8.0.50.0070.00016.66
8.0.30.0070.01416.67
8.0.20.0100.01016.81
8.0.10.0070.00716.81
8.0.00.0000.01316.82
7.4.330.0030.00315.55
7.4.320.0000.00616.45
7.4.300.0000.00616.57
7.4.290.0040.00416.36
7.4.280.0040.00416.43
7.4.270.0000.00716.48
7.4.260.0000.00513.14
7.4.250.0020.00516.47
7.4.240.0030.00316.45
7.4.230.0020.00516.55
7.4.220.0040.00316.33
7.4.210.0060.00916.54
7.4.200.0040.00416.27
7.4.160.0090.01016.59
7.4.150.0070.00716.45
7.4.140.0070.00716.34
7.4.130.0130.00016.49
7.4.120.0100.00316.35
7.4.110.0070.00716.56
7.4.100.0040.01216.42
7.4.90.0030.01216.32
7.4.80.0040.00816.49
7.4.70.0070.00716.42
7.4.60.0060.00616.25
7.4.50.0070.00716.41
7.4.40.0030.01016.41
7.4.30.0110.00316.54
7.4.20.0030.01216.50
7.4.10.0030.01016.44
7.4.00.0000.01416.57
7.3.330.0000.00916.17
7.3.320.0030.00313.29
7.3.310.0040.00416.33
7.3.300.0030.00316.39
7.3.290.0110.00716.29
7.3.280.0060.01316.26
7.3.270.0100.00316.20
7.3.260.0130.00016.21
7.3.250.0090.00416.20
7.3.240.0030.01016.35
7.3.230.0030.00916.33
7.3.220.0030.01016.14
7.3.210.0060.00616.19
7.3.200.0030.01016.30
7.3.190.0070.00716.14
7.3.180.0040.00916.22
7.3.170.0070.00716.23
7.3.160.0000.01316.16
7.3.150.0030.01016.20
7.3.140.0100.00316.14
7.3.130.0060.00616.25
7.3.120.0080.00816.21
7.3.110.0040.01516.17
7.3.100.0040.01516.11
7.3.90.0030.01016.40
7.3.80.0070.00716.20
7.3.70.0000.01316.18
7.3.60.0060.00616.30
7.3.50.0070.00716.38
7.3.40.0080.00516.31
7.3.30.0070.00716.34
7.3.20.0070.00716.34
7.3.10.0090.00416.32
7.3.00.0100.00316.25

preferences:
66.71 ms | 401 KiB | 5 Q