3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public const BAR = 42; } $x = new Foo; var_dump( $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.0140.00018.39
8.3.50.0070.01121.99
8.3.40.0140.00318.71
8.3.30.0100.00719.05
8.3.20.0080.00020.34
8.3.10.0040.00423.65
8.3.00.0040.00420.68
8.2.180.0170.00318.29
8.2.170.0070.00722.96
8.2.160.0100.00322.12
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00419.36
8.2.110.0080.00320.48
8.2.100.0000.01117.79
8.2.90.0040.00418.03
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0040.00417.80
8.2.50.0030.00518.07
8.2.40.0030.00519.53
8.2.30.0000.00717.97
8.2.20.0040.00417.68
8.2.10.0040.00417.56
8.2.00.0040.00417.54
8.1.280.0100.00325.92
8.1.270.0040.00423.85
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.06
8.1.230.0080.00420.95
8.1.220.0080.00017.74
8.1.210.0060.00618.77
8.1.200.0060.00317.13
8.1.190.0040.00417.53
8.1.180.0050.00318.10
8.1.170.0050.00318.64
8.1.160.0080.00022.07
8.1.150.0040.00418.60
8.1.140.0080.00017.38
8.1.130.0000.00817.73
8.1.120.0000.00817.51
8.1.110.0040.00417.35
8.1.100.0070.00017.38
8.1.90.0040.00417.35
8.1.80.0040.00417.49
8.1.70.0000.00717.44
8.1.60.0030.00617.55
8.1.50.0040.00417.44
8.1.40.0040.00417.45
8.1.30.0030.00617.52
8.1.20.0050.00317.64
8.1.10.0000.00717.50
8.1.00.0030.00517.52
8.0.300.0000.00720.00
8.0.290.0030.00317.28
8.0.280.0070.00018.49
8.0.270.0000.00717.18
8.0.260.0000.00616.83
8.0.250.0070.00016.86
8.0.240.0040.00416.92
8.0.230.0030.00416.96
8.0.220.0030.00316.86
8.0.210.0030.00316.87
8.0.200.0030.00316.93
8.0.190.0000.00716.87
8.0.180.0030.00316.88
8.0.170.0040.00416.91
8.0.160.0040.00416.75
8.0.150.0040.00416.80
8.0.140.0050.00316.79
8.0.130.0000.00513.28
8.0.120.0000.00716.84
8.0.110.0070.00016.79
8.0.100.0000.00816.73
8.0.90.0000.00716.93
8.0.80.0130.00316.84
8.0.70.0070.00016.80
8.0.60.0040.00417.00
8.0.50.0050.00216.88
8.0.30.0110.01016.85
8.0.20.0130.01017.41
8.0.10.0000.00716.88
8.0.00.0150.00616.77
7.4.330.0000.00615.14
7.4.320.0030.00316.50
7.4.300.0060.00016.49
7.4.290.0000.00716.53
7.4.280.0060.00016.54
7.4.270.0070.00016.51
7.4.260.0030.00316.60
7.4.250.0000.00816.57
7.4.240.0020.00516.54
7.4.230.0040.00416.71
7.4.220.0130.00616.64
7.4.210.0060.00716.50
7.4.200.0030.00316.62
7.4.190.0000.00716.68
7.4.160.0070.01016.62
7.4.150.0150.00317.40
7.4.140.0120.00717.86
7.4.130.0120.00616.58
7.4.120.0080.00916.38
7.4.110.0080.00816.34
7.4.100.0120.00416.51
7.4.90.0150.00316.48
7.4.80.0130.00316.34
7.4.70.0070.01016.48
7.4.60.0070.01016.48
7.4.50.0030.00516.11
7.4.40.0030.01322.77
7.4.30.0070.01016.51
7.3.330.0030.00313.36
7.3.320.0000.00513.09
7.3.310.0030.00516.34
7.3.300.0030.00316.26
7.3.290.0130.00016.32
7.3.280.0070.01116.25
7.3.270.0070.01017.40
7.3.260.0100.00716.28
7.3.250.0100.00716.46
7.3.240.0120.00616.29
7.3.230.0140.00316.39
7.3.210.0100.00716.60
7.3.200.0160.00319.39
7.3.190.0030.01316.37
7.3.180.0060.00916.52
7.3.170.0030.01316.47
7.3.160.0090.00616.35
7.2.330.0120.00916.22
7.2.320.0090.00616.32
7.2.310.0070.01316.35
7.2.300.0000.02216.67
7.2.290.0100.00616.65
7.1.00.0000.08022.28
5.4.200.0040.03912.39
5.4.190.0390.08212.38
5.4.180.0150.04712.38
5.4.170.0250.05712.38
5.4.160.0430.08712.37
5.4.150.0320.09612.37
5.4.140.0170.04512.06
5.4.130.0230.04112.04
5.4.120.0470.07412.01
5.4.110.0150.04412.00
5.4.100.0380.08512.01
5.4.90.0160.04312.01
5.4.80.0400.08112.01
5.4.70.0240.06712.00
5.4.60.0300.06312.00
5.4.50.0260.09212.00
5.4.40.0390.07911.99
5.4.30.0360.08311.98
5.4.20.0180.03911.98
5.4.10.0260.09211.99
5.4.00.0320.08411.48
5.3.270.0370.08512.73
5.3.260.0170.05212.72
5.3.250.0220.05112.72
5.3.240.0380.08512.72
5.3.230.0390.08812.71
5.3.220.0110.04912.68
5.3.210.0160.04512.68
5.3.200.0170.04112.68
5.3.190.0190.07112.68
5.3.180.0120.04712.67
5.3.170.0160.04512.66
5.3.160.0160.04412.67
5.3.150.0180.04112.68
5.3.140.0160.04512.66
5.3.130.0360.08612.66
5.3.120.0160.04412.65
5.3.110.0160.04712.66
5.3.100.0170.04712.12
5.3.90.0140.04512.08
5.3.80.0170.04512.07
5.3.70.0120.04712.07
5.3.60.0130.04612.06
5.3.50.0290.06512.00
5.3.40.0160.04412.00
5.3.30.0200.03811.96
5.3.20.0170.04011.75
5.3.10.0160.04011.70
5.3.00.0260.09111.68

preferences:
41.43 ms | 401 KiB | 5 Q