3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { function a() { printf("%s\n", __FUNCTION__); } function b() { printf("%s\n", __FUNCTION__); } function c() { printf("%s\n", __FUNCTION__); } } namespace Bar { final class Util { public static function a() { printf("%s\n", __METHOD__); } public static function b() { printf("%s\n", __METHOD__); } public static function c() { printf("%s\n", __METHOD__); } } } namespace Baz { use function Foo\{a, b, c}; use Bar\Util; a(); b(); c(); Util::a(); Util::b(); Util::c(); }

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.0110.00418.43
8.3.50.0100.00616.39
8.3.40.0040.01118.61
8.3.30.0080.00818.48
8.3.20.0000.00818.99
8.3.10.0000.00721.77
8.3.00.0040.00423.47
8.2.180.0060.00925.92
8.2.170.0110.00418.70
8.2.160.0170.00322.96
8.2.150.0040.00425.66
8.2.140.0100.00324.66
8.2.130.0050.00320.47
8.2.120.0040.00426.35
8.2.110.0070.00321.03
8.2.100.0080.00417.47
8.2.90.0090.00017.72
8.2.80.0030.00617.97
8.2.70.0080.00017.80
8.2.60.0000.00817.91
8.2.50.0040.00418.10
8.2.40.0040.00419.22
8.2.30.0040.00419.18
8.2.20.0000.00717.94
8.2.10.0040.00419.44
8.2.00.0040.00419.37
8.1.280.0130.01025.92
8.1.270.0070.00024.66
8.1.260.0030.00526.35
8.1.250.0030.00628.09
8.1.240.0040.00423.98
8.1.230.0090.00321.01
8.1.220.0030.00617.74
8.1.210.0040.00419.76
8.1.200.0130.00017.10
8.1.190.0040.00416.98
8.1.180.0000.00818.10
8.1.170.0080.00018.73
8.1.160.0040.00418.82
8.1.150.0040.00418.76
8.1.140.0000.00817.80
8.1.130.0000.00718.85
8.1.120.0000.00817.27
8.1.110.0080.00017.34
8.1.100.0040.00417.35
8.1.90.0060.00317.32
8.1.80.0070.00017.33
8.1.70.0040.00417.22
8.1.60.0040.00417.42
8.1.50.0050.00317.44
8.1.40.0080.00017.44
8.1.30.0030.00617.55
8.1.20.0040.00417.46
8.1.10.0040.00417.43
8.1.00.0000.00717.36
8.0.300.0040.00421.86
8.0.290.0030.00616.63
8.0.280.0000.00718.31
8.0.270.0000.00717.20
8.0.260.0030.00317.20
8.0.250.0000.00716.86
8.0.240.0030.00316.96
8.0.230.0070.00016.78
8.0.220.0030.00316.85
8.0.210.0080.00016.78
8.0.200.0060.00016.82
8.0.190.0090.00016.85
8.0.180.0080.00016.82
8.0.170.0000.00916.72
8.0.160.0050.00316.83
8.0.150.0040.00416.68
8.0.140.0070.00016.72
8.0.130.0000.00513.15
8.0.120.0040.00416.69
8.0.110.0000.00716.77
8.0.100.0000.00816.76
8.0.90.0040.00416.62
8.0.80.0120.00516.74
8.0.70.0000.00716.56
8.0.60.0070.00016.64
8.0.50.0070.00016.77
8.0.30.0080.01017.00
8.0.20.0120.00717.40
8.0.10.0020.00516.78
8.0.00.0090.00916.78
7.4.330.0000.00515.55
7.4.320.0000.00616.38
7.4.300.0000.00716.41
7.4.290.0000.00716.44
7.4.280.0040.00416.36
7.4.270.0090.00016.38
7.4.260.0000.00716.50
7.4.250.0050.00216.47
7.4.240.0000.00716.45
7.4.230.0040.00416.23
7.4.220.0000.00816.60
7.4.210.0070.01016.48
7.4.200.0040.00316.32
7.4.160.0090.00716.43
7.4.140.0090.00917.86
7.4.130.0130.00316.45
7.4.120.0100.00816.37
7.4.110.0100.00716.46
7.4.100.0090.00916.40
7.4.90.0170.00616.30
7.4.80.0040.01419.39
7.4.70.0110.00616.44
7.4.60.0150.00016.20
7.4.50.0070.00716.02
7.4.40.0090.01216.46
7.4.00.0100.00314.61
7.3.330.0060.00013.12
7.3.320.0000.00713.27
7.3.310.0000.00716.19
7.3.300.0070.00016.16
7.3.290.0030.00316.20
7.3.280.0140.00016.42
7.3.260.0110.00616.21
7.3.240.0130.00616.36
7.3.230.0070.01016.29
7.3.210.0100.01316.35
7.3.200.0130.00316.37
7.3.190.0120.00916.11
7.3.180.0060.01316.32
7.3.170.0070.01016.24
7.3.160.0120.00316.33
7.3.10.0060.00916.07
7.3.00.0070.00316.43
7.2.330.0030.01716.44
7.2.320.0120.00616.58
7.2.310.0110.00716.35
7.2.300.0060.01116.20
7.2.290.0100.01116.24
7.2.130.0110.01116.68
7.2.120.0100.00616.11
7.2.110.0000.01116.29
7.2.100.0060.00616.68
7.2.90.0030.00916.78
7.2.80.0570.00315.44
7.2.70.0360.01115.64
7.2.60.0540.01015.86
7.2.50.0510.00615.68
7.2.40.0570.01015.39
7.2.30.0590.01015.55
7.2.20.0470.00715.66
7.2.10.0540.00915.61
7.2.00.0530.00715.73
7.1.250.0120.00615.26
7.1.200.0040.00715.71
7.1.190.1140.00013.55
7.1.180.0930.01013.32
7.1.170.0940.01013.33
7.1.160.0610.01613.43
7.1.150.0710.00613.25
7.1.140.1010.01013.56
7.1.130.1180.00313.37
7.1.120.0920.00313.66
7.1.110.1000.01013.58
7.1.100.0810.01013.57
7.1.90.1230.00913.48
7.1.80.0230.00013.70
7.1.70.0230.01213.65
7.1.60.0990.01531.98
7.1.50.0340.01931.71
7.1.40.0710.01731.66
7.1.30.0370.01531.54
7.1.20.1170.01731.47
7.1.10.0180.00813.41
7.1.00.0130.00413.18

preferences:
32.89 ms | 400 KiB | 5 Q