3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { function myFunction() {} const MY_CONSTANT = 0; } namespace B { use function A\myFunction; use const A\MY_CONSTANT; var_dump( myFunction::class, MY_CONSTANT::class ); }

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.1.100.0000.00717.43
8.1.90.0000.00717.36
8.1.80.0090.00317.41
8.1.70.0030.00317.38
8.1.60.0000.00917.50
8.1.50.0000.00817.33
8.1.40.0070.00017.33
8.1.30.0050.00317.55
8.1.20.0050.00217.59
8.1.10.0060.00317.44
8.1.00.0000.00817.20
8.0.230.0030.00316.87
8.0.220.0070.00016.69
8.0.210.0040.00416.74
8.0.200.0000.00816.80
8.0.190.0080.00016.91
8.0.180.0000.00716.89
8.0.170.0000.00916.72
8.0.160.0040.00416.80
8.0.150.0030.00416.81
8.0.140.0030.00316.70
8.0.130.0000.00513.28
8.0.120.0050.00216.83
8.0.110.0000.00716.92
8.0.100.0040.00416.67
8.0.90.0030.00316.77
8.0.80.0090.00816.74
8.0.70.0000.00716.71
8.0.60.0040.00416.76
8.0.50.0040.00416.76
8.0.30.0060.01017.07
8.0.20.0080.01216.86
8.0.10.0030.00516.82
8.0.00.0020.01516.61
7.4.300.0030.00316.37
7.4.290.0030.00316.48
7.4.280.0040.00416.32
7.4.270.0030.00316.43
7.4.260.0050.00013.09
7.4.250.0060.00316.46
7.4.240.0050.00216.42
7.4.230.0000.00716.28
7.4.220.0020.00516.52
7.4.210.0080.01116.41
7.4.200.0070.00016.49
7.4.130.0070.00816.26
7.4.120.0150.00216.29
7.4.110.0080.00916.39
7.4.100.0090.00716.30
7.4.90.0100.00716.38
7.4.80.0030.01316.28
7.4.70.0110.00716.36
7.4.60.0100.00616.23
7.4.50.0070.00916.41
7.4.40.0090.01016.31
7.4.30.0130.00716.23
7.4.20.0100.00816.03
7.4.10.0130.00416.27
7.4.00.0130.00316.11
7.3.330.0030.00316.33
7.3.320.0030.00313.07
7.3.310.0000.00816.30
7.3.300.0030.00316.11
7.3.290.0090.00916.20
7.3.260.0120.00616.26
7.3.250.0130.00416.29
7.3.240.0080.00816.21
7.3.230.0070.00916.36
7.3.220.0090.00916.24
7.3.210.0110.00516.20
7.3.200.0060.01016.31
7.3.190.0090.00816.13
7.3.180.0120.00516.36
7.3.170.0120.00416.22
7.3.160.0070.00916.16
7.3.150.0100.00616.43
7.3.140.0080.00816.23
7.3.130.0110.00716.38
7.3.120.0090.00716.32
7.3.110.0080.00816.23
7.3.100.0120.00816.35
7.3.90.0100.00716.34
7.3.80.0080.01016.31
7.3.70.0050.01316.22
7.3.60.0110.00716.18
7.3.50.0110.00816.20
7.3.40.0100.00516.31
7.3.30.0090.00716.34
7.3.20.0090.00916.42
7.3.10.0170.01116.38
7.3.00.0120.00516.22
7.2.340.0060.01016.39
7.2.330.0120.00516.43
7.2.320.0090.01816.23
7.2.310.0050.01216.59
7.2.300.0020.01516.27
7.2.290.0110.00916.30
7.2.280.0110.00616.52
7.2.270.0110.00716.39
7.2.260.0070.01016.41
7.2.250.0050.01316.31
7.2.240.0100.00616.24
7.2.230.0130.01516.26
7.2.220.0100.00616.43
7.2.210.0110.00716.46
7.2.200.0070.01216.26
7.2.190.0050.01216.33
7.2.180.0070.01016.37
7.2.170.0090.00916.46
7.2.160.0100.00616.43
7.2.150.0080.01116.53
7.2.140.0060.01416.38
7.2.130.0080.01016.44
7.2.120.0110.00616.47
7.2.110.0120.00716.35
7.2.100.0140.00816.39
7.2.90.0090.01016.35
7.2.80.0140.00416.37
7.2.70.0080.01116.44
7.2.60.0070.01216.50
7.2.50.0140.00516.35
7.2.40.0120.00616.51
7.2.30.0060.01616.45
7.2.20.0110.00716.28
7.2.10.0090.01016.36
7.2.00.0040.01616.42

preferences:
23.69 ms | 411 KiB | 12 Q