3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { class T {} } namespace { class Test { public function first(string $str) : Closure { return function() use ($str) : int { return strlen($str); }; } public function second(): self { return $self; } } $t = new Test; echo ($t->second()->first("hello"))(); }

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.0120.00918.40
8.3.60.0160.00018.31
8.3.50.0290.00921.95
8.3.40.0160.00618.91
8.3.30.0000.01618.67
8.3.20.0060.00320.25
8.3.10.0070.01123.52
8.3.00.0030.01523.71
8.2.180.0170.00718.54
8.2.170.0150.00722.96
8.2.160.0110.00420.53
8.2.150.0190.00024.18
8.2.140.0110.00724.66
8.2.130.0000.00920.98
8.2.120.0150.00426.35
8.2.110.0030.00622.13
8.2.100.0080.00318.04
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0050.00317.93
8.2.50.0060.00318.07
8.2.40.0040.00422.34
8.2.30.0020.00520.58
8.2.20.0030.00617.74
8.2.10.0040.00418.00
8.2.00.0000.00818.02
8.1.280.0120.00325.92
8.1.270.0030.00621.98
8.1.260.0040.00428.09
8.1.250.0030.00628.09
8.1.240.0070.01023.98
8.1.230.0040.00819.09
8.1.220.0000.00817.74
8.1.210.0000.01218.77
8.1.200.0070.00317.22
8.1.190.0040.00417.10
8.1.180.0060.00318.10
8.1.170.0050.00318.30
8.1.160.0000.00720.75
8.1.150.0050.00318.84
8.1.140.0000.00819.52
8.1.130.0000.00717.63
8.1.120.0000.00717.30
8.1.110.0000.00717.34
8.1.100.0000.00817.41
8.1.90.0040.00417.32
8.1.80.0080.00017.40
8.1.70.0040.00417.35
8.1.60.0040.00417.58
8.1.50.0050.00317.52
8.1.40.0030.00517.41
8.1.30.0000.00817.70
8.1.20.0040.00417.63
8.1.10.0030.00617.45
8.1.00.0000.00817.48
8.0.300.0070.00018.77
8.0.290.0000.00816.75
8.0.280.0000.00718.41
8.0.270.0000.00817.16
8.0.260.0000.00717.21
8.0.250.0050.00316.86
8.0.240.0070.00016.92
8.0.230.0050.00316.94
8.0.220.0040.00416.93
8.0.210.0040.00416.85
8.0.200.0000.00717.02
8.0.190.0060.00316.84
8.0.180.0040.00416.90
8.0.170.0050.00216.94
8.0.160.0040.00416.94
8.0.150.0040.00416.87
8.0.140.0040.00416.72
8.0.130.0040.00413.29
8.0.120.0000.00716.79
8.0.110.0000.00716.74
8.0.100.0040.00416.83
8.0.90.0030.00616.90
8.0.80.0000.01616.88
8.0.70.0000.00816.81
8.0.60.0040.00416.79
8.0.50.0040.00416.71
8.0.30.0110.00517.14
8.0.20.0110.00717.40
8.0.10.0000.00816.84
8.0.00.0090.01116.79
7.4.330.0000.00516.84
7.4.320.0020.00516.46
7.4.300.0060.00016.52
7.4.290.0000.00816.51
7.4.280.0040.00416.51
7.4.270.0070.00016.58
7.4.260.0000.00716.39
7.4.250.0040.00416.54
7.4.240.0020.00616.56
7.4.230.0040.00416.69
7.4.220.0060.00916.59
7.4.210.0160.00316.43
7.4.200.0000.00816.36
7.4.160.0060.01016.41
7.4.150.0170.00017.40
7.4.140.0120.00917.86
7.4.130.0100.00816.47
7.4.120.0100.00716.54
7.4.110.0140.01116.50
7.4.100.0100.00716.50
7.4.90.0070.01016.45
7.4.80.0030.01319.39
7.4.70.0090.00616.53
7.4.60.0120.00516.62
7.4.50.0000.01516.42
7.4.40.0150.00016.58
7.4.30.0090.01216.59
7.4.00.0080.00614.91
7.3.330.0000.00613.38
7.3.320.0030.00313.34
7.3.310.0000.00616.22
7.3.300.0000.00716.22
7.3.290.0050.01016.31
7.3.280.0050.01216.36
7.3.270.0090.00917.40
7.3.260.0060.01616.61
7.3.250.0110.00816.41
7.3.240.0110.00616.58
7.3.230.0030.01416.54
7.3.210.0070.01716.42
7.3.200.0000.01616.35
7.3.190.0100.01316.36
7.3.180.0090.00616.32
7.3.170.0140.00716.63
7.3.160.0060.01016.51
7.2.330.0090.00916.58
7.2.320.0090.01516.55
7.2.310.0080.00816.72
7.2.300.0030.01316.67
7.2.290.0100.00716.28
7.2.60.0070.00716.82
7.2.00.0150.00219.18
7.1.200.0090.00015.74
7.1.100.0030.01417.79
7.1.70.0000.01416.96
7.1.60.0100.01319.52
7.1.50.0000.01116.84
7.1.00.0030.07722.36
7.0.200.0040.00416.68
7.0.60.0100.08319.92
7.0.50.0030.04017.84
7.0.40.0100.07320.13
7.0.30.0070.05020.09
7.0.20.0230.07720.21
7.0.10.0030.08720.15
7.0.00.0030.06020.19
5.6.280.0030.04321.07
5.6.210.0070.05320.47
5.6.200.0130.04318.19
5.6.190.0100.08320.48
5.6.180.0170.04020.46
5.6.170.0300.06020.41
5.6.160.0230.07720.62
5.6.150.0170.04018.19
5.6.140.0100.04718.16
5.6.130.0130.07718.13
5.6.120.0000.04721.13
5.6.110.0070.04320.98
5.6.100.0100.08021.00
5.6.90.0170.07721.03
5.6.80.0130.07720.38
5.5.350.0270.06320.44
5.5.340.0000.06717.95
5.5.330.0070.04020.37
5.5.320.0230.03720.20
5.5.310.0400.07320.30
5.5.300.0100.03017.94
5.5.290.0130.03717.97
5.5.280.0130.06320.89
5.5.270.0070.03720.75
5.5.260.0070.03720.87
5.5.250.0070.08320.69
5.5.240.0300.05320.12

preferences:
61.51 ms | 401 KiB | 5 Q