3v4l.org

run code in 300+ PHP versions simultaneously
<?php function add(int $a, int $b): int { return $a + $b; } $c = Closure::fromCallable('add'); $r = new ReflectionFunction($c); echo $r; $c = fn(...$args) => add(...$args); $r = new ReflectionFunction($c); echo $r;

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.0090.00618.18
8.3.50.0120.00616.46
8.3.40.0060.00918.57
8.3.30.0120.00318.61
8.3.20.0060.00320.78
8.3.10.0050.00223.60
8.3.00.0070.00018.61
8.2.180.0070.01118.13
8.2.170.0140.00022.96
8.2.160.0040.01122.00
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00720.86
8.2.110.0030.00622.27
8.2.100.0070.00719.57
8.2.90.0040.00417.88
8.2.80.0080.00318.73
8.2.70.0040.00417.50
8.2.60.0060.00318.02
8.2.50.0050.00318.07
8.2.40.0060.00318.34
8.2.30.0000.00719.37
8.2.20.0000.00718.13
8.2.10.0000.00719.25
8.2.00.0040.00419.25
8.1.280.0040.01125.92
8.1.270.0000.00820.68
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0090.00022.11
8.1.230.0030.00717.70
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0000.00817.35
8.1.180.0060.00318.10
8.1.170.0050.00518.64
8.1.160.0000.00718.83
8.1.150.0030.00518.90
8.1.140.0040.00418.80
8.1.130.0000.00720.27
8.1.120.0030.00317.40
8.1.110.0030.00517.35
8.1.100.0040.00417.40
8.1.90.0030.00517.38
8.1.80.0030.00517.39
8.1.70.0030.00317.46
8.1.60.0050.00517.47
8.1.50.0040.00417.54
8.1.40.0090.00017.42
8.1.30.0050.00317.67
8.1.20.0040.00417.67
8.1.10.0000.00817.55
8.1.00.0000.00817.52
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0070.00018.54
8.0.270.0040.00418.06
8.0.260.0000.00620.13
8.0.250.0030.00516.94
8.0.240.0000.00716.97
8.0.230.0000.00716.80
8.0.220.0000.00716.72
8.0.210.0000.00716.71
8.0.200.0070.00016.95
8.0.190.0000.00716.94
8.0.180.0000.00816.93
8.0.170.0030.00616.89
8.0.160.0040.00416.95
8.0.150.0000.00716.88
8.0.140.0030.00516.78
8.0.130.0060.00013.26
8.0.120.0000.00816.76
8.0.110.0070.00016.77
8.0.100.0070.00016.85
8.0.90.0000.00916.96
8.0.80.0100.00916.88
8.0.70.0040.00416.72
8.0.60.0050.00316.72
8.0.50.0000.00716.67
8.0.30.0100.00717.22
8.0.20.0090.01117.03
8.0.10.0030.00317.13
8.0.00.0090.01116.76
7.4.330.0020.00215.55
7.4.320.0030.00316.61
7.4.300.0000.00616.39
7.4.290.0000.00716.63
7.4.280.0060.00316.48
7.4.270.0030.00316.54
7.4.260.0030.00313.24
7.4.250.0050.00216.48
7.4.240.0050.00216.60
7.4.230.0030.00516.63
7.4.220.0030.00416.60
7.4.210.0090.00816.52
7.4.200.0070.00016.50
7.4.130.0080.01316.48
7.4.120.0080.01516.55
7.4.110.0070.01016.36
7.4.100.0140.00816.20
7.4.90.0040.01416.55
7.4.80.0150.00619.39
7.4.70.0060.00916.48
7.4.60.0120.00916.45
7.4.50.0050.00516.56
7.4.40.0130.00316.44
7.4.20.0150.00016.62
7.4.10.0100.01016.46
7.4.00.0160.00616.64
7.3.330.0040.00416.18
7.3.320.0000.00512.96
7.3.310.0030.00316.10
7.3.300.0000.00716.19
7.3.290.0060.00916.18
7.3.280.0070.01016.14
7.3.260.0030.01316.18
7.3.240.0090.00916.38
7.3.230.0080.00816.18
7.3.210.0070.01016.13
7.3.200.0030.01316.20
7.3.190.0080.00816.41
7.3.180.0090.00616.08
7.3.170.0000.01616.23
7.3.160.0030.01216.31
7.3.140.0060.00916.40
7.3.130.0120.00816.24
7.3.120.0060.01516.39
7.3.110.0070.01116.27
7.3.100.0110.00516.05
7.3.90.0080.00816.17
7.3.80.0080.00816.20
7.3.70.0140.00016.07
7.3.60.0090.01216.10
7.3.50.0070.01416.05
7.3.40.0070.00716.16
7.3.30.0090.00616.20
7.3.20.0130.00716.23
7.3.10.0060.01316.17
7.3.00.0040.01116.28
7.2.330.0060.01216.48
7.2.320.0060.01616.44
7.2.310.0080.00916.07
7.2.300.0100.00716.30
7.2.290.0080.00816.42
7.2.270.0080.01416.50
7.2.260.0060.01616.27
7.2.250.0040.01216.07
7.2.240.0030.01216.22
7.2.230.0170.00416.60
7.2.220.0120.00916.19
7.2.210.0030.01216.36
7.2.200.0110.01216.14
7.2.190.0120.00916.23
7.2.180.0090.01216.32
7.2.170.0080.00816.30
7.2.160.0030.01416.06
7.2.150.0150.00616.44
7.2.140.0100.01016.19
7.2.130.0150.01316.27
7.2.120.0080.00916.45
7.2.110.0110.01116.18
7.2.100.0070.01016.41
7.2.90.0090.00916.29
7.2.80.0060.01216.27
7.2.70.0090.00616.17
7.2.60.0090.00616.23
7.2.50.0030.01316.39
7.2.40.0160.00016.48
7.2.30.0090.00916.47
7.2.20.0030.01316.20
7.2.10.0090.00616.36
7.2.00.0030.01316.35

preferences:
65.08 ms | 400 KiB | 5 Q