3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const FOOBAR = self::BAR; const BAR = 'FOO'; } echo Foo::FOOBAR;

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.40.0150.00018.59
8.3.30.0130.00319.10
8.3.20.0090.00020.29
8.3.10.0060.00322.09
8.3.00.0080.00022.42
8.2.170.0090.00622.96
8.2.160.0150.00019.21
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0080.00019.25
8.2.110.0050.00522.18
8.2.100.0060.00617.72
8.2.90.0080.00017.63
8.2.80.0030.00517.97
8.2.70.0050.00317.80
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0070.00020.55
8.2.30.0040.00417.91
8.2.20.0040.00417.49
8.2.10.0040.00417.66
8.2.00.0030.00517.61
8.1.270.0030.00622.09
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0030.00623.91
8.1.230.0040.00819.16
8.1.220.0060.00317.74
8.1.210.0000.00918.77
8.1.200.0060.00317.23
8.1.190.0040.00417.13
8.1.180.0030.00618.10
8.1.170.0030.00518.71
8.1.160.0070.00022.13
8.1.150.0050.00318.49
8.1.140.0000.00817.34
8.1.130.0070.00017.67
8.1.120.0080.00017.38
8.1.110.0040.00417.41
8.1.100.0040.00417.40
8.1.90.0000.00817.30
8.1.80.0040.00417.36
8.1.70.0030.00517.35
8.1.60.0040.00417.53
8.1.50.0040.00417.30
8.1.40.0040.00417.35
8.1.30.0030.00617.41
8.1.20.0040.00417.48
8.1.10.0000.00817.42
8.1.00.0040.00417.44
8.0.300.0040.00419.58
8.0.290.0030.00616.63
8.0.280.0000.00718.36
8.0.270.0030.00317.09
8.0.260.0040.00416.69
8.0.250.0000.00816.90
8.0.240.0000.00816.87
8.0.230.0030.00316.88
8.0.220.0030.00516.86
8.0.210.0040.00416.88
8.0.200.0000.00716.79
8.0.190.0040.00416.76
8.0.180.0040.00416.84
8.0.170.0030.00616.77
8.0.160.0030.00516.84
8.0.150.0000.00716.75
8.0.140.0030.00516.78
8.0.130.0050.00013.28
8.0.120.0000.00816.77
8.0.110.0040.00416.68
8.0.100.0070.00016.75
8.0.90.0030.00416.71
8.0.80.0100.00716.83
8.0.70.0060.00316.67
8.0.60.0100.00216.82
8.0.50.0040.00416.71
8.0.30.0090.01216.84
8.0.20.0070.01117.40
8.0.10.0030.00517.01
8.0.00.0110.00816.62
7.4.330.0000.00515.00
7.4.320.0000.00616.44
7.4.300.0040.00416.53
7.4.290.0070.00016.53
7.4.280.0050.00516.56
7.4.270.0000.00716.46
7.4.260.0070.00016.44
7.4.250.0000.00816.44
7.4.240.0020.00516.44
7.4.230.0000.00716.27
7.4.220.0050.01016.56
7.4.210.0110.00516.45
7.4.200.0120.00016.57
7.4.190.0000.00816.70
7.4.160.0040.01216.55
7.4.150.0170.01017.40
7.4.140.0100.01017.86
7.4.130.0100.01216.35
7.4.120.0070.00916.51
7.4.110.0060.01016.49
7.4.100.0070.01016.57
7.4.90.0050.01316.52
7.4.80.0100.00719.39
7.4.70.0130.00716.50
7.4.60.0030.01416.46
7.4.50.0090.00016.08
7.4.40.0110.00422.77
7.4.30.0100.00716.40
7.4.00.0070.00714.93
7.3.330.0060.00013.20
7.3.320.0030.00313.09
7.3.310.0000.00716.23
7.3.300.0040.00416.06
7.3.290.0080.00616.27
7.3.280.0070.01216.25
7.3.270.0160.00917.40
7.3.260.0090.00916.29
7.3.250.0110.01116.31
7.3.240.0080.00816.49
7.3.230.0120.00816.39
7.3.210.0080.00816.14
7.3.200.0060.00919.39
7.3.190.0090.00816.13
7.3.180.0120.00616.25
7.3.170.0130.00316.27
7.3.160.0130.00316.59
7.3.120.0130.00314.77
7.2.330.0100.00716.37
7.2.320.0070.01016.73
7.2.310.0140.00316.62
7.2.300.0190.00016.71
7.2.290.0030.01316.38
7.2.60.0090.00617.05
7.1.200.0060.00915.57
7.1.70.0090.00316.99
7.1.60.0070.01519.82
7.1.50.0030.01316.87
7.1.00.0000.07322.57
7.0.200.0120.00016.75
7.0.140.0000.07322.11
7.0.70.4330.04719.87
7.0.60.0130.05720.07
7.0.50.0100.07717.88
7.0.40.0030.05320.04
7.0.30.0230.05320.17
7.0.20.0370.04020.01
7.0.10.0230.03320.25
7.0.00.0100.05720.15
5.6.280.0000.07720.82
5.6.210.0200.06720.65
5.6.200.0070.07018.15
5.6.190.0130.08320.34
5.6.180.0270.06320.46
5.6.170.0200.08320.39
5.6.160.0130.07320.56
5.6.150.0070.06718.18
5.6.140.0100.03018.18
5.6.130.0000.08318.30
5.6.120.0170.06320.96
5.6.110.0100.08020.99
5.6.100.0100.05321.03
5.6.90.0200.08020.98
5.6.80.0100.05320.52
5.6.70.0270.07020.46
5.5.350.0070.06720.40
5.5.340.0100.05317.95
5.5.330.0070.08020.37
5.5.320.0070.05320.29
5.5.310.0200.04020.25
5.5.300.0070.07017.97
5.5.290.0070.08018.11
5.5.280.0070.09020.97
5.5.270.0100.06320.79
5.5.260.0000.08320.75
5.5.250.0000.07320.78
5.5.240.0000.05720.26
5.4.450.0430.07319.28
5.4.440.0430.07019.54
5.4.430.0530.06319.51
5.4.420.0400.03719.30
5.4.410.0330.05719.42
5.4.400.0400.04719.07
5.4.390.0330.06019.24
5.4.380.0500.06018.86
5.4.370.0430.03018.82
5.4.360.0370.03318.87
5.4.350.0330.05319.06
5.4.340.0300.04018.87
5.4.320.0470.04019.22
5.4.310.0470.04019.20
5.4.300.0330.04719.09
5.4.290.0530.06019.16
5.4.280.0430.06719.21
5.4.270.0430.07019.24
5.4.260.0300.04718.84
5.4.250.0330.05719.07
5.4.240.0370.05318.86
5.4.230.0300.05019.21
5.4.220.0330.03318.86
5.4.210.0270.04019.08
5.4.200.0230.04019.08
5.4.190.0330.03019.15
5.4.180.0270.03718.97
5.4.170.0370.03319.14
5.4.160.0330.03019.21
5.4.150.0400.03719.30
5.4.140.0270.03316.36
5.4.130.0300.03016.34
5.4.120.0330.03316.37
5.4.110.0330.05016.56
5.4.100.0230.03716.26
5.4.90.0330.03316.35
5.4.80.0230.03716.43
5.4.70.0300.03016.57
5.4.60.0330.03316.14
5.4.50.0230.03716.51
5.4.40.0370.02716.38
5.4.30.0270.03316.48
5.4.20.0330.03316.51
5.4.10.0270.03716.50
5.4.00.0300.03015.83
5.3.290.0270.04714.63
5.3.280.0300.03314.80
5.3.270.0400.03314.51
5.3.260.0270.03714.67
5.3.250.0230.04014.68
5.3.240.0300.04014.53
5.3.230.0300.03314.51
5.3.220.0270.03714.63
5.3.210.0300.03714.78
5.3.200.0270.03714.67
5.3.190.0300.03314.53
5.3.180.0300.03314.78
5.3.170.0330.03714.71
5.3.160.0300.04014.46
5.3.150.0230.04014.71
5.3.140.0270.03714.65
5.3.130.0300.03314.53
5.3.120.0370.04014.51
5.3.110.0270.03714.70
5.3.100.0200.04013.93
5.3.90.0370.06314.04
5.3.80.0300.04314.23
5.3.70.0370.04014.09
5.3.60.0330.05013.91
5.3.50.0330.04314.02
5.3.40.0470.06314.05
5.3.30.0430.06014.00
5.3.20.0400.05013.61
5.3.10.0530.05313.76
5.3.00.0370.06313.63
5.2.170.0300.04011.95
5.2.160.0400.03011.95
5.2.150.0370.04311.95
5.2.140.0400.04311.95
5.2.130.0370.05311.95
5.2.120.0570.02711.95
5.2.110.0200.04711.95
5.2.100.0300.04011.95
5.2.90.0370.05311.95
5.2.80.0500.04311.95
5.2.70.0400.05311.95
5.2.60.0230.04311.95
5.2.50.0330.05711.95
5.2.40.0270.06311.95
5.2.30.0270.06011.95
5.2.20.0330.04711.95
5.2.10.0300.03011.95
5.2.00.0270.02711.95
5.1.60.0230.04011.95
5.1.50.0270.03011.95
5.1.40.0270.05011.95
5.1.30.0330.03011.95
5.1.20.0300.02711.95
5.1.10.0200.03311.95
5.1.00.0230.04011.95
5.0.50.0170.04311.95
5.0.40.0130.03711.95
5.0.30.0230.05311.95
5.0.20.0130.03711.95
5.0.10.0170.03711.95
5.0.00.0170.04311.95
4.4.90.0130.03011.95
4.4.80.0130.01311.95
4.4.70.0200.03011.95
4.4.60.0200.02311.95
4.4.50.0170.01711.95
4.4.40.0200.02311.95
4.4.30.0230.02311.95
4.4.20.0130.03011.95
4.4.10.0230.02711.95
4.4.00.0200.03711.95
4.3.110.0100.01711.95
4.3.100.0100.02711.95
4.3.90.0130.03311.95
4.3.80.0200.04711.95
4.3.70.0100.02011.95
4.3.60.0200.02311.95
4.3.50.0300.02311.95
4.3.40.0130.03711.95
4.3.30.0070.03711.95
4.3.20.0070.03011.95
4.3.10.0070.03311.95
4.3.00.0130.02311.95

preferences:
35.95 ms | 400 KiB | 5 Q