3v4l.org

run code in 300+ PHP versions simultaneously
<?php eval('namespace Foo { class Bar { const Baz = 42; } }'); const MyFoo = Foo\Bar::Baz; var_dump(MyFoo);

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.0130.00618.49
8.3.50.0140.00416.48
8.3.40.0110.00418.53
8.3.30.0070.00718.51
8.3.20.0040.00420.46
8.3.10.0040.00423.56
8.3.00.0080.00023.71
8.2.180.0120.00618.17
8.2.170.0120.00322.96
8.2.160.0070.00720.35
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00420.52
8.2.120.0070.00026.35
8.2.110.0100.00019.33
8.2.100.0120.00317.72
8.2.90.0070.00019.38
8.2.80.0000.00817.97
8.2.70.0030.00517.80
8.2.60.0000.00818.09
8.2.50.0040.00418.10
8.2.40.0060.00319.40
8.2.30.0000.00719.22
8.2.20.0040.00418.00
8.2.10.0030.00519.14
8.2.00.0030.00517.94
8.1.280.0060.00925.92
8.1.270.0040.00418.75
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.78
8.1.230.0040.00820.95
8.1.220.0000.00817.74
8.1.210.0030.00618.86
8.1.200.0030.00617.22
8.1.190.0030.00619.01
8.1.180.0050.00318.10
8.1.170.0000.00918.49
8.1.160.0030.00318.84
8.1.150.0070.00018.80
8.1.140.0070.00018.83
8.1.130.0080.00020.14
8.1.120.0000.00717.37
8.1.110.0060.00317.41
8.1.100.0050.00517.41
8.1.90.0040.00417.41
8.1.80.0040.00417.40
8.1.70.0030.00317.38
8.1.60.0090.00017.54
8.1.50.0000.00717.50
8.1.40.0000.00717.51
8.1.30.0070.00017.52
8.1.20.0040.00417.50
8.1.10.0000.00817.33
8.1.00.0000.00717.36
8.0.300.0070.00020.07
8.0.290.0040.00416.75
8.0.280.0040.00418.36
8.0.270.0000.00717.26
8.0.260.0060.00018.42
8.0.250.0030.00316.90
8.0.240.0000.00616.99
8.0.230.0030.00316.88
8.0.220.0040.00416.79
8.0.210.0070.00016.96
8.0.200.0060.00017.00
8.0.190.0080.00016.86
8.0.180.0060.00316.92
8.0.170.0030.00616.88
8.0.160.0050.00316.90
8.0.150.0070.00016.91
8.0.140.0070.00016.83
8.0.130.0050.00313.31
8.0.120.0060.00316.79
8.0.110.0000.00716.95
8.0.100.0040.00416.72
8.0.90.0030.00316.74
8.0.80.0090.00716.87
8.0.70.0000.00716.77
8.0.60.0000.00716.93
8.0.50.0000.00716.73
8.0.30.0130.00316.95
8.0.20.0080.01017.40
8.0.10.0080.00016.91
8.0.00.0090.01016.62
7.4.330.0040.00015.55
7.4.320.0000.00616.51
7.4.300.0000.00716.54
7.4.290.0040.00816.61
7.4.280.0060.00316.51
7.4.270.0000.00716.50
7.4.260.0040.00416.61
7.4.250.0030.00316.47
7.4.240.0030.00316.55
7.4.230.0030.00316.43
7.4.220.0070.00016.39
7.4.210.0050.01016.60
7.4.200.0000.00816.50
7.4.160.0070.01016.42
7.4.140.0110.00917.86
7.4.130.0110.00816.54
7.4.120.0070.01116.49
7.4.110.0140.01116.45
7.4.100.0100.00716.39
7.4.90.0060.00916.45
7.4.80.0090.01219.39
7.4.70.0070.01116.40
7.4.60.0090.00916.35
7.4.50.0060.01016.46
7.4.40.0130.01016.42
7.4.00.0100.00314.49
7.3.330.0020.00213.24
7.3.320.0000.00513.24
7.3.310.0000.00716.30
7.3.300.0060.00016.16
7.3.290.0030.00316.12
7.3.280.0120.00616.25
7.3.260.0110.00716.34
7.3.240.0090.00916.43
7.3.230.0030.01716.36
7.3.210.0100.00716.34
7.3.200.0110.00816.33
7.3.190.0160.00316.57
7.3.180.0100.01016.24
7.3.170.0030.01616.38
7.3.160.0120.00916.46
7.3.10.0500.01014.52
7.3.00.0590.01014.72
7.2.330.0080.01616.55
7.2.320.0080.01116.68
7.2.310.0030.01316.85
7.2.300.0100.01016.48
7.2.290.0000.01616.38
7.2.130.0630.00615.07
7.2.120.0480.01315.21
7.2.110.0480.00615.05
7.2.100.0400.00314.88
7.2.90.0600.00414.75
7.2.80.0520.01314.98
7.2.70.0430.00714.75
7.2.60.0430.01014.84
7.2.50.0390.00314.89
7.2.40.0900.00714.87
7.2.30.0480.01014.93
7.2.20.0500.00714.81
7.2.10.0340.00414.66
7.2.00.0370.00615.02
7.1.250.0600.00313.60

preferences:
68.24 ms | 400 KiB | 5 Q