3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace NS; use function NS\foo; use const NS\BAR; function foo() { echo BAR; } const BAR = 3; foo();

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.0070.01318.20
8.3.50.0130.00316.59
8.3.40.0140.00018.83
8.3.30.0090.00618.59
8.3.20.0100.00723.54
8.3.10.0040.00420.16
8.3.00.0000.00821.70
8.2.180.0150.00617.89
8.2.170.0080.00822.96
8.2.160.0100.00320.52
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00721.05
8.2.110.0090.00021.18
8.2.100.0090.00317.90
8.2.90.0070.00019.23
8.2.80.0000.00817.97
8.2.70.0030.00517.38
8.2.60.0030.00517.93
8.2.50.0030.00618.07
8.2.40.0050.00218.21
8.2.30.0040.00419.42
8.2.20.0040.00418.02
8.2.10.0080.00019.18
8.2.00.0060.00319.07
8.1.280.0140.00025.92
8.1.270.0050.00321.88
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0030.00622.34
8.1.230.0080.00417.60
8.1.220.0040.00417.74
8.1.210.0060.00618.77
8.1.200.0060.00317.23
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0090.00018.59
8.1.160.0040.00418.86
8.1.150.0050.00318.78
8.1.140.0000.00720.79
8.1.130.0000.00720.25
8.1.120.0040.00417.40
8.1.110.0070.00017.38
8.1.100.0000.00717.39
8.1.90.0080.00017.41
8.1.80.0030.00717.28
8.1.70.0070.00017.24
8.1.60.0040.00417.54
8.1.50.0030.00517.45
8.1.40.0000.00817.45
8.1.30.0050.00317.64
8.1.20.0040.00417.47
8.1.10.0040.00417.43
8.1.00.0030.00917.26
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00718.38
8.0.270.0030.00317.84
8.0.260.0000.00719.93
8.0.250.0030.00316.84
8.0.240.0000.00816.80
8.0.230.0050.00316.80
8.0.220.0030.00316.81
8.0.210.0030.00316.84
8.0.200.0030.00316.79
8.0.190.0000.00716.81
8.0.180.0040.00416.84
8.0.170.0060.00316.83
8.0.160.0000.00816.94
8.0.150.0000.00716.87
8.0.140.0000.00716.82
8.0.130.0060.00013.21
8.0.120.0060.00316.81
8.0.110.0070.00016.61
8.0.100.0000.00716.64
8.0.90.0040.00416.80
8.0.80.0070.01216.78
8.0.70.0050.00216.88
8.0.60.0000.00716.75
8.0.50.0040.00416.79
8.0.30.0080.00816.86
8.0.20.0000.01917.30
8.0.10.0040.00416.81
8.0.00.0120.00616.83
7.4.330.0020.00216.71
7.4.320.0000.00616.34
7.4.300.0070.00016.44
7.4.290.0050.00216.44
7.4.280.0070.00016.40
7.4.270.0000.00816.42
7.4.260.0000.00513.18
7.4.250.0040.00416.39
7.4.240.0050.00216.55
7.4.230.0000.00716.62
7.4.220.0030.00316.43
7.4.210.0070.00816.47
7.4.200.0070.00016.32
7.4.130.0140.00916.42
7.4.120.0040.01316.62
7.4.110.0030.01316.50
7.4.100.0120.00616.46
7.4.90.0180.00416.50
7.4.80.0090.01519.39
7.4.70.0030.01316.25
7.4.60.0030.01216.34
7.4.50.0070.01116.14
7.4.40.0040.01216.42
7.4.20.0080.01216.33
7.4.10.0030.01716.29
7.4.00.0160.00316.38
7.3.330.0070.00316.26
7.3.320.0060.00013.29
7.3.310.0030.00316.26
7.3.300.0040.00416.24
7.3.290.0040.00916.19
7.3.260.0030.01516.40
7.3.240.0080.00916.41
7.3.230.0090.01216.30
7.3.210.0120.00616.45
7.3.200.0080.01216.35
7.3.190.0170.00316.37
7.3.180.0060.00916.45
7.3.170.0100.00916.29
7.3.160.0140.00416.20
7.3.130.0070.01316.16
7.3.120.0030.01416.48
7.3.110.0030.01316.02
7.3.100.0030.01816.40
7.3.90.0090.01216.31
7.3.80.0070.01016.42
7.3.70.0120.00916.33
7.3.60.0080.01216.32
7.3.50.0100.01016.29
7.3.40.0090.00916.40
7.3.30.0060.00916.30
7.3.20.0100.00716.34
7.3.10.0130.01016.30
7.3.00.0130.01016.29
7.2.330.0140.01016.48
7.2.320.0040.01716.32
7.2.310.0170.00416.55
7.2.300.0080.00816.58
7.2.290.0060.00916.63
7.2.260.0070.01316.33
7.2.250.0120.00616.60
7.2.240.0160.00616.67
7.2.230.0030.01716.66
7.2.220.0100.00716.48
7.2.210.0160.00616.43
7.2.200.0120.00616.52
7.2.190.0090.01316.33
7.2.180.0100.01016.46
7.2.170.0090.00816.56
7.2.160.0100.00716.59
7.2.150.0060.01616.41
7.2.140.0130.00616.61
7.2.130.0070.01316.33
7.2.120.0070.01016.53
7.2.110.0110.01116.54
7.2.100.0120.00616.54
7.2.90.0140.00716.42
7.2.80.0100.01016.86
7.2.70.0090.01416.67
7.2.60.0130.01316.34
7.2.50.0110.00616.58
7.2.40.0030.02016.66
7.2.30.0160.00616.60
7.2.20.0060.01216.58
7.2.10.0030.01316.61
7.2.00.0030.02016.68

preferences:
58.66 ms | 401 KiB | 5 Q