3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { class Bar { function __invoke(): string { return "hello"; } } } namespace { use Foo\Bar; function f() { $bar = new Bar(); $bar(); } f(); }

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.70.0140.00418.30
8.3.60.0090.00618.55
8.3.50.0060.01218.09
8.3.40.0040.01118.74
8.3.30.0070.00718.42
8.3.20.0050.00321.78
8.3.10.0040.00421.72
8.3.00.0080.00020.52
8.2.190.0030.01016.58
8.2.180.0100.00318.31
8.2.170.0100.00722.96
8.2.160.0070.00720.34
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0090.00919.17
8.2.110.0040.01819.19
8.2.100.0040.00817.72
8.2.90.0060.00319.45
8.2.80.0000.00819.21
8.2.70.0040.00417.50
8.2.60.0000.00817.63
8.2.50.0060.00317.90
8.2.40.0000.00819.36
8.2.30.0030.00619.12
8.2.20.0000.00718.20
8.2.10.0040.00419.15
8.2.00.0000.00819.22
8.1.280.0110.00725.92
8.1.270.0000.00822.52
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00022.19
8.1.230.0120.00020.98
8.1.220.0050.00317.74
8.1.210.0040.00418.91
8.1.200.0060.00317.35
8.1.190.0060.00317.22
8.1.180.0040.00418.10
8.1.170.0080.00017.62
8.1.160.0060.00318.98
8.1.150.0050.00218.86
8.1.140.0040.00419.05
8.1.130.0000.00817.30
8.1.120.0030.00317.45
8.1.110.0000.00817.27
8.1.100.0050.00317.33
8.1.90.0030.00317.41
8.1.80.0050.00317.34
8.1.70.0040.00417.21
8.1.60.0030.00517.63
8.1.50.0000.00817.39
8.1.40.0030.00717.42
8.1.30.0040.00417.46
8.1.20.0040.00417.54
8.1.10.0000.00717.46
8.1.00.0030.00617.43
8.0.300.0040.00420.16
8.0.290.0000.00716.63
8.0.280.0070.00018.37
8.0.270.0020.00517.24
8.0.260.0040.00416.80
8.0.250.0030.00316.79
8.0.240.0000.00716.75
8.0.230.0000.00716.76
8.0.220.0070.00016.81
8.0.210.0030.00316.77
8.0.200.0020.00516.89
8.0.190.0030.00316.83
8.0.180.0040.00416.85
8.0.170.0080.00016.84
8.0.160.0000.00816.83
8.0.150.0000.00816.68
8.0.140.0040.00416.77
8.0.130.0000.00613.18
8.0.120.0070.00016.81
8.0.110.0000.00816.83
8.0.100.0050.00216.80
8.0.90.0090.00016.85
8.0.80.0110.00416.81
8.0.70.0000.00716.76
8.0.60.0060.00316.62
8.0.50.0000.00716.85
8.0.30.0120.01016.95
8.0.20.0110.00816.85
8.0.10.0000.00716.97
8.0.00.0090.00916.72
7.4.330.0040.00015.55
7.4.320.0000.00616.52
7.4.300.0000.00616.56
7.4.290.0050.00316.55
7.4.280.0040.00416.58
7.4.270.0070.00016.48
7.4.260.0000.00513.18
7.4.250.0050.00216.55
7.4.240.0010.00716.59
7.4.230.0070.00016.66
7.4.220.0000.00716.65
7.4.210.0070.00816.52
7.4.200.0030.00316.68
7.4.130.0100.00616.39
7.4.120.0100.00916.43
7.4.110.0120.00616.43
7.4.100.0090.00916.42
7.4.90.0100.00716.33
7.4.80.0140.00619.39
7.4.70.0090.00616.38
7.4.60.0120.00616.57
7.4.50.0100.00716.38
7.4.40.0030.01516.61
7.4.00.0040.01414.68
7.3.330.0040.00416.13
7.3.320.0000.00613.19
7.3.310.0040.00416.28
7.3.300.0000.00716.15
7.3.290.0040.00416.33
7.3.280.0090.00616.29
7.3.260.0100.01016.36
7.3.240.0110.00616.35
7.3.230.0040.01216.20
7.3.210.0070.01016.30
7.3.200.0130.00616.23
7.3.190.0130.00616.58
7.3.180.0090.00616.56
7.3.170.0090.00916.33
7.3.160.0070.01016.17
7.3.100.0030.00915.03
7.3.90.0090.00314.48
7.3.80.0030.00914.48
7.3.70.0040.01114.52
7.3.60.0080.00614.52
7.3.50.0140.00014.74
7.3.40.0130.00614.73
7.3.30.0070.00714.09
7.3.20.0060.00914.56
7.3.10.0000.01414.33
7.3.00.0110.00414.75
7.2.330.0140.00316.25
7.2.320.0170.00616.40
7.2.310.0100.00716.57
7.2.300.0100.01316.56
7.2.290.0120.00616.37
7.2.230.0000.01414.86
7.2.220.0030.01014.80
7.2.210.0070.00714.97
7.2.200.0050.00814.88
7.2.190.0000.01414.62
7.2.180.0060.00914.73
7.2.170.0100.01014.40
7.2.160.0030.01014.55
7.2.150.0090.00914.50
7.2.140.0030.01314.68
7.2.130.0060.00914.81
7.2.120.0000.02014.34
7.2.110.0030.01014.74
7.2.100.0100.01014.54
7.2.90.0060.00914.67
7.2.80.0060.00914.60
7.2.70.0100.01014.38
7.2.60.0120.00414.54
7.2.50.0100.00714.34
7.2.40.0090.00614.70
7.2.30.0110.00514.66
7.2.20.0150.00014.76
7.2.10.0030.01214.67
7.2.00.0090.00614.65
7.1.320.0030.01013.77
7.1.310.0060.00613.99
7.1.300.0110.00313.41
7.1.290.0110.00313.61
7.1.280.0090.00613.50
7.1.270.0110.00313.46
7.1.260.0040.01613.59
7.1.250.0060.01313.48

preferences:
46.81 ms | 401 KiB | 5 Q