3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { const foo = 'foo'; public static $bar = 'bar'; } $foo = 'foo'; $bar = 'bar'; // class constant // static property echo constant("x::{$foo}"), "\n", x::${$bar};

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.0070.00716.75
8.3.50.0110.01021.15
8.3.40.0090.00618.73
8.3.30.0070.00718.74
8.3.20.0070.01020.15
8.3.10.0030.00520.53
8.3.00.0060.00321.73
8.2.180.0060.00816.50
8.2.170.0070.00722.96
8.2.160.0090.00619.23
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00522.08
8.2.120.0080.00026.35
8.2.110.0040.00420.29
8.2.100.0090.00317.78
8.2.90.0020.00520.59
8.2.80.0060.00317.97
8.2.70.0060.00317.80
8.2.60.0040.00718.16
8.2.50.0050.00318.10
8.2.40.0040.00421.98
8.2.30.0040.00419.11
8.2.20.0040.00418.04
8.2.10.0040.00417.97
8.2.00.0030.00517.70
8.1.280.0150.00625.92
8.1.270.0000.00723.83
8.1.260.0050.00228.09
8.1.250.0040.00428.09
8.1.240.0090.00022.04
8.1.230.0040.00822.23
8.1.220.0030.00617.76
8.1.210.0000.00818.85
8.1.200.0000.00817.35
8.1.190.0050.00317.23
8.1.180.0050.00318.10
8.1.170.0050.00318.59
8.1.160.0040.00422.13
8.1.150.0000.00818.87
8.1.140.0040.00419.42
8.1.130.0050.00317.64
8.1.120.0000.00717.41
8.1.110.0020.00517.35
8.1.100.0030.00317.46
8.1.90.0050.00317.34
8.1.80.0000.00817.40
8.1.70.0080.00017.42
8.1.60.0060.00617.48
8.1.50.0050.00317.50
8.1.40.0040.00417.43
8.1.30.0000.00817.48
8.1.20.0070.00017.59
8.1.10.0000.00717.38
8.1.00.0030.00617.39
8.0.300.0060.00319.99
8.0.290.0080.00016.63
8.0.280.0050.00318.34
8.0.270.0040.00417.16
8.0.260.0040.00417.47
8.0.250.0090.00016.96
8.0.240.0000.00816.86
8.0.230.0040.00416.86
8.0.220.0050.00316.88
8.0.210.0040.00416.83
8.0.200.0040.00416.87
8.0.190.0000.00916.81
8.0.180.0060.00316.87
8.0.170.0000.00716.93
8.0.160.0070.00016.85
8.0.150.0040.00416.78
8.0.140.0030.00416.86
8.0.130.0080.00013.28
8.0.120.0050.00216.89
8.0.110.0000.00716.93
8.0.100.0050.00516.93
8.0.90.0040.00416.77
8.0.80.0090.00616.86
8.0.70.0050.00516.79
8.0.60.0000.00816.84
8.0.50.0000.00716.70
8.0.30.0110.01017.10
8.0.20.0130.00617.40
8.0.10.0000.00716.97
8.0.00.0090.01516.55
7.4.330.0030.00315.08
7.4.320.0030.00316.45
7.4.300.0000.00616.47
7.4.290.0030.00316.52
7.4.280.0030.00416.57
7.4.270.0000.00616.40
7.4.260.0020.00516.32
7.4.250.0030.00316.48
7.4.240.0040.00416.54
7.4.230.0030.00316.62
7.4.220.0110.00816.36
7.4.210.0030.01216.46
7.4.200.0000.00716.32
7.4.160.0080.00816.35
7.4.150.0070.01017.40
7.4.140.0130.00717.86
7.4.130.0080.00916.62
7.4.120.0030.01416.50
7.4.110.0150.00416.55
7.4.100.0110.00616.30
7.4.90.0040.01416.58
7.4.80.0100.00719.39
7.4.70.0070.01016.27
7.4.60.0080.00816.59
7.4.50.0030.01216.21
7.4.40.0040.01216.30
7.4.30.0090.01216.43
7.4.00.0070.01015.05
7.3.330.0030.00513.15
7.3.320.0030.00313.11
7.3.310.0000.00716.16
7.3.300.0040.00416.14
7.3.290.0030.00316.15
7.3.280.0080.01116.26
7.3.270.0100.00717.40
7.3.260.0080.01316.40
7.3.250.0080.00916.34
7.3.240.0050.01516.37
7.3.230.0130.00316.39
7.3.210.0070.01016.35
7.3.200.0160.01016.37
7.3.190.0110.01116.25
7.3.180.0140.00416.22
7.3.170.0120.00616.35
7.3.160.0090.00916.51
7.2.330.0160.00316.66
7.2.320.0110.00616.53
7.2.310.0080.00816.61
7.2.300.0100.00716.33
7.2.290.0000.01616.61
7.2.00.0030.00919.09
7.1.100.0070.01018.09
7.1.70.0060.00317.07
7.1.60.0000.01117.13
7.1.00.0030.07722.45
7.0.200.0710.00714.88
7.0.110.2470.06720.17
7.0.100.0170.05720.21
7.0.90.0170.05320.17
7.0.80.0130.05020.28
7.0.70.0030.06320.22
7.0.60.0100.07320.16
7.0.50.0170.04720.18
7.0.40.0270.05320.22
7.0.30.0230.05720.34
7.0.20.0300.05020.28
7.0.10.0270.06020.33
7.0.00.0170.06320.16
5.6.260.0200.04321.04
5.6.250.0130.06321.05
5.6.240.0100.06021.10
5.6.230.0170.06720.92
5.6.220.0100.05321.01
5.6.210.0100.05320.92
5.6.200.0070.06020.82
5.6.190.0130.05320.79
5.6.180.0070.06021.00
5.6.170.0130.05020.82
5.6.160.0100.05321.01
5.6.150.0170.05020.88
5.6.140.0130.05020.86
5.6.130.0000.06720.93
5.6.120.0200.04720.99
5.6.110.0100.05720.98
5.6.100.0170.05020.78
5.6.90.0130.05020.84
5.6.80.0070.06020.41
5.6.70.0030.05720.38
5.6.60.0200.04320.38
5.6.50.0030.05720.38
5.6.40.0170.04720.38
5.6.30.0100.05320.16
5.6.20.0100.06020.38
5.6.10.0170.05020.18
5.6.00.0030.06320.34

preferences:
59.41 ms | 401 KiB | 5 Q