3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { public const CONST_VARIABLE = 'constant variable'; public static $staticVal = 'my is stattic variable'; public static function showResult() { echo self::CONST_VARIABLE; echo self::$staticVal; } } TestClass::showResult();

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.0170.00318.31
8.3.50.0240.00721.14
8.3.40.0080.00818.67
8.3.30.0030.01020.17
8.3.20.0080.00020.39
8.3.10.0080.00021.09
8.3.00.0050.00223.53
8.2.180.0180.00016.38
8.2.170.0140.00422.96
8.2.160.0100.00320.29
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00421.18
8.2.110.0040.00419.09
8.2.100.0080.00317.91
8.2.90.0000.00819.22
8.2.80.0090.00017.97
8.2.70.0000.01017.63
8.2.60.0040.00417.90
8.2.50.0030.00618.07
8.2.40.0080.00018.22
8.2.30.0000.00719.30
8.2.20.0040.00417.55
8.2.10.0050.00217.61
8.2.00.0000.00817.66
8.1.280.0120.00625.92
8.1.270.0000.00723.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.42
8.1.230.0090.00520.89
8.1.220.0040.00418.77
8.1.210.0040.00418.84
8.1.200.0100.00017.10
8.1.190.0030.00617.39
8.1.180.0050.00318.10
8.1.170.0080.00018.66
8.1.160.0040.00418.67
8.1.150.0040.00418.37
8.1.140.0050.00217.23
8.1.130.0040.00417.81
8.1.120.0070.00017.37
8.1.110.0040.00417.30
8.1.100.0040.00417.23
8.1.90.0000.00717.30
8.1.80.0070.00017.23
8.1.70.0000.00717.28
8.1.60.0040.00417.40
8.1.50.0050.00217.34
8.1.40.0040.00417.41
8.1.30.0080.00017.54
8.1.20.0030.00517.63
8.1.10.0000.00717.53
8.1.00.0040.00417.42
8.0.300.0000.00719.87
8.0.290.0030.00417.18
8.0.280.0000.00718.34
8.0.270.0040.00417.16
8.0.260.0000.00716.79
8.0.250.0080.00016.88
8.0.240.0030.00516.89
8.0.230.0030.00316.75
8.0.220.0070.00016.70
8.0.210.0030.00516.71
8.0.200.0040.00416.89
8.0.190.0000.00816.92
8.0.180.0030.00516.84
8.0.170.0040.00416.84
8.0.160.0030.00316.94
8.0.150.0070.00016.78
8.0.140.0000.00716.58
8.0.130.0030.00313.14
8.0.120.0040.00416.67
8.0.110.0070.00016.75
8.0.100.0000.00716.69
8.0.90.0040.00416.76
8.0.80.0130.00316.75
8.0.70.0050.00216.75
8.0.60.0050.00316.72
8.0.50.0000.00716.65
8.0.30.0070.01317.19
8.0.20.0120.00617.40
8.0.10.0000.00716.83
8.0.00.0100.01016.76
7.4.330.0030.00316.80
7.4.320.0030.00316.48
7.4.300.0000.00616.43
7.4.290.0070.00016.54
7.4.280.0030.00316.51
7.4.270.0030.00316.57
7.4.260.0060.00013.21
7.4.250.0020.00516.34
7.4.240.0070.00016.51
7.4.230.0030.00316.26
7.4.220.0170.00616.61
7.4.210.0100.00416.54
7.4.200.0030.00316.33
7.4.190.0070.00016.53
7.4.160.0120.00316.42
7.4.150.0120.00617.40
7.4.140.0090.00817.86
7.4.130.0130.00816.49
7.4.120.0090.00816.44
7.4.110.0100.00716.71
7.4.100.0100.00716.39
7.4.90.0100.00716.48
7.4.80.0030.01519.39
7.4.70.0080.00816.41
7.4.60.0060.01216.38
7.4.50.0000.00716.38
7.4.40.0040.01122.77
7.4.30.0060.01016.45
7.3.330.0000.00513.30
7.3.320.0000.00513.15
7.3.310.0000.00816.15
7.3.300.0000.00716.16
7.3.290.0100.00716.31
7.3.280.0050.01316.28
7.3.270.0030.01317.40
7.3.260.0140.00818.24
7.3.250.0140.00616.38
7.3.240.0060.01016.19
7.3.230.0060.00916.55
7.3.210.0060.01016.45
7.3.200.0030.01819.39
7.3.190.0040.01316.14
7.3.180.0060.00916.54
7.3.170.0080.00816.48
7.3.160.0140.00316.54
7.2.330.0060.01316.56
7.2.320.0060.01216.40
7.2.310.0040.01716.68
7.2.300.0100.00716.76
7.2.290.0080.01016.64
7.1.00.0030.03722.54
5.4.220.0060.03712.39
5.4.210.0130.04112.39
5.4.200.0150.04312.39
5.4.190.0110.04012.38
5.4.180.0150.04212.38
5.4.170.0160.03812.39
5.4.160.0130.04112.38
5.4.150.0130.04212.38
5.4.140.0140.03812.07
5.4.130.0110.04212.05
5.4.120.0140.03712.02
5.4.110.0130.04012.02
5.4.100.0120.04112.02
5.4.90.0120.04312.02
5.4.80.0100.04212.02
5.4.70.0120.03912.01
5.4.60.0090.04312.01
5.4.50.0090.04412.01
5.4.40.0100.04212.00
5.4.30.0120.03911.99
5.4.20.0110.04011.99
5.4.10.0120.04111.99
5.4.00.0130.03811.48
5.3.270.0140.04312.73
5.3.260.0140.04212.72
5.3.250.0120.04112.72
5.3.240.0120.04512.72
5.3.230.0120.04712.71
5.3.220.0230.06412.68
5.3.210.0140.04512.68
5.3.200.0140.04312.68
5.3.190.0110.05312.68
5.3.180.0140.03912.67
5.3.170.0130.04312.67
5.3.160.0140.04112.67
5.3.150.0140.04312.67
5.3.140.0110.04312.66
5.3.130.0130.04912.66
5.3.120.0110.04712.66
5.3.110.0140.04112.66
5.3.100.0150.03912.12
5.3.90.0140.03812.09
5.3.80.0120.04212.08
5.3.70.0110.04312.08
5.3.60.0160.04212.07
5.3.50.0160.04512.01
5.3.40.0100.04612.01
5.3.30.0170.03611.97
5.3.20.0140.04011.75
5.3.10.0130.04011.71
5.3.00.0120.04011.70

preferences:
60.1 ms | 401 KiB | 5 Q