3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function reduce(int $a, int $b, callable $reducer) : int { return $reducer($a, $b); } reduce(1, 2, function($a, $b, $c) { return "$a + $b + $c"; });

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.0150.00318.68
8.3.50.0140.00721.04
8.3.40.0090.00618.84
8.3.30.0030.01019.10
8.3.20.0040.00420.33
8.3.10.0040.00421.90
8.3.00.0040.00423.61
8.2.180.0170.00318.48
8.2.170.0170.00322.96
8.2.160.0130.00722.30
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0070.00417.50
8.2.110.0090.00020.95
8.2.100.0060.00617.63
8.2.90.0070.00019.09
8.2.80.0040.00417.97
8.2.70.0040.00417.61
8.2.60.0070.00018.04
8.2.50.0040.00418.07
8.2.40.0030.00621.09
8.2.30.0000.00819.79
8.2.20.0040.00417.66
8.2.10.0000.00818.11
8.2.00.0050.00217.93
8.1.280.0120.00325.92
8.1.270.0080.00020.38
8.1.260.0020.00526.35
8.1.250.0040.00428.09
8.1.240.0000.00823.88
8.1.230.0040.00717.66
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0080.00018.55
8.1.160.0000.00721.95
8.1.150.0050.00318.89
8.1.140.0080.00017.44
8.1.130.0030.00617.55
8.1.120.0040.00417.40
8.1.110.0000.00717.47
8.1.100.0000.00717.30
8.1.90.0040.00417.36
8.1.80.0030.00517.47
8.1.70.0000.00817.45
8.1.60.0040.00417.56
8.1.50.0050.00317.50
8.1.40.0040.00417.39
8.1.30.0080.00017.41
8.1.20.0000.00817.55
8.1.10.0070.00017.60
8.1.00.0070.00017.52
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.40
8.0.270.0060.00317.09
8.0.260.0060.00317.24
8.0.250.0030.00316.93
8.0.240.0030.00316.99
8.0.230.0050.00316.83
8.0.220.0030.00316.91
8.0.210.0070.00016.79
8.0.200.0030.00317.07
8.0.190.0040.00417.05
8.0.180.0050.00217.00
8.0.170.0000.00716.88
8.0.160.0050.00316.85
8.0.150.0030.00416.92
8.0.140.0030.00316.82
8.0.130.0060.00013.38
8.0.120.0000.00716.82
8.0.110.0000.00716.88
8.0.100.0030.00316.92
8.0.90.0000.00817.03
8.0.80.0030.01316.97
8.0.70.0070.00016.84
8.0.60.0030.00516.75
8.0.50.0040.00416.85
8.0.30.0130.00717.11
8.0.20.0080.01017.40
8.0.10.0080.00016.83
8.0.00.0130.00916.72
7.4.330.0020.00215.15
7.4.320.0060.00016.44
7.4.300.0070.00016.65
7.4.290.0000.00716.64
7.4.280.0000.00716.52
7.4.270.0000.00616.53
7.4.260.0000.00816.40
7.4.250.0000.00716.58
7.4.240.0050.00216.64
7.4.230.0000.00716.50
7.4.220.0040.01816.60
7.4.210.0090.00616.47
7.4.200.0000.00716.54
7.4.160.0100.00616.50
7.4.150.0150.00317.40
7.4.140.0130.00617.86
7.4.130.0070.01216.43
7.4.120.0070.01016.57
7.4.110.0130.00316.42
7.4.100.0120.00916.60
7.4.90.0070.01016.58
7.4.80.0090.00919.39
7.4.70.0030.01316.45
7.4.60.0100.00616.59
7.4.50.0000.00816.34
7.4.40.0150.00316.46
7.4.30.0120.01016.48
7.4.00.0060.00915.08
7.3.330.0000.00613.18
7.3.320.0030.00313.30
7.3.310.0000.00716.21
7.3.300.0000.00616.21
7.3.290.0080.00716.26
7.3.280.0090.00816.36
7.3.270.0100.00717.40
7.3.260.0150.00416.29
7.3.250.0120.00616.42
7.3.240.0110.00616.61
7.3.230.0100.01016.41
7.3.210.0090.00916.50
7.3.200.0070.01016.36
7.3.190.0080.00816.40
7.3.180.0090.01216.65
7.3.170.0130.00916.61
7.3.160.0030.01216.43
7.2.330.0140.01116.68
7.2.320.0090.01316.64
7.2.310.0110.00716.44
7.2.300.0120.00816.53
7.2.290.0070.01016.69
7.2.80.0060.00616.47
7.2.60.0060.00916.77
7.2.00.0070.01319.07
7.1.200.0090.00315.84
7.1.100.0030.01317.91
7.1.70.0000.00717.08
7.1.60.0090.01619.42
7.1.50.0030.02116.79
7.1.00.0100.07022.32
7.0.200.0040.00416.50
7.0.60.0070.03719.91
7.0.50.0130.08017.88
7.0.40.0100.04720.18
7.0.30.0300.08320.19
7.0.20.0370.07020.05
7.0.10.0070.08020.19
7.0.00.0070.04320.23
5.6.280.0030.03720.78
5.6.210.0000.04720.63
5.6.200.0100.07318.18
5.6.190.0070.08320.57
5.6.180.0300.08320.58
5.6.170.0330.05020.45
5.6.160.0000.09020.55
5.6.150.0000.06318.19
5.6.140.0130.07718.12
5.6.130.0100.04318.15
5.6.120.0070.05021.13
5.6.110.0130.08021.12
5.6.100.0070.09020.99
5.6.90.0070.08021.13
5.6.80.0100.07020.53
5.6.70.4300.04320.51
5.5.350.0100.04720.40
5.5.340.0030.05017.99
5.5.330.0100.05320.35
5.5.320.0530.06720.35
5.5.310.0170.07720.51
5.5.300.0000.04318.07
5.5.290.0070.07718.02
5.5.280.0000.04720.77
5.5.270.0270.07020.85
5.5.260.0030.08020.77
5.5.250.0070.07320.79
5.5.240.0270.07320.28
5.4.450.0730.06019.62
5.4.440.0570.06019.62
5.4.430.0670.04719.61
5.4.420.0600.05019.33
5.4.410.0670.05019.21
5.4.400.0670.05018.86
5.4.390.0630.05319.29
5.4.380.0500.05319.16
5.4.370.0900.05718.87
5.4.360.0630.05718.84
5.4.350.0730.07719.28
5.4.340.0830.04719.28
5.4.320.0600.06019.17
5.4.310.0700.05319.16
5.4.300.0730.07319.31
5.4.290.0630.07318.84
5.4.280.0930.04719.15
5.4.270.0600.06719.37
5.4.260.0530.05319.29
5.4.250.0630.05719.05
5.4.240.0630.04719.29
5.4.230.0630.06018.87
5.4.220.0600.06019.22
5.4.210.0700.04319.23
5.4.200.0600.04716.82
5.4.190.0530.06019.32
5.4.180.0570.05718.92
5.4.170.0600.05719.12
5.4.160.0630.05319.04
5.4.150.0670.04719.08
5.4.140.0630.05016.60
5.4.130.0570.05716.44
5.4.120.0570.05016.38
5.4.110.0730.05316.55
5.4.100.0700.04316.59
5.4.90.0670.05016.48
5.4.80.0630.04716.38
5.4.70.0600.04716.47
5.4.60.0700.04716.24
5.4.50.0600.05016.46
5.4.40.0600.05716.37
5.4.30.0370.05016.46
5.4.20.0330.05016.39
5.4.10.0370.05316.39
5.4.00.0230.05015.79
5.3.290.0170.05714.57
5.3.280.0170.05014.50
5.3.270.0130.05314.66
5.3.260.0230.04714.52
5.3.250.0100.06014.61
5.3.240.0100.05714.69
5.3.230.0030.05714.50
5.3.220.0130.05014.55
5.3.210.0130.06014.59
5.3.200.0130.05014.48
5.3.190.0130.05314.54
5.3.180.0070.05714.57
5.3.170.0270.04314.57
5.3.160.0130.05014.79
5.3.150.0100.05314.59
5.3.140.0070.05714.78
5.3.130.0130.05014.41
5.3.120.0100.05714.55
5.3.110.0130.05014.77
5.3.100.0130.05714.09
5.3.90.0100.05313.96
5.3.80.0100.05014.07
5.3.70.0070.05314.02
5.3.60.0170.04313.91
5.3.50.0300.03314.00
5.3.40.0000.06713.96
5.3.30.0600.05314.13
5.3.20.0130.04313.60
5.3.10.0370.04313.88
5.3.00.0030.06313.78
5.2.170.0070.04311.29
5.2.160.0070.04011.06
5.2.150.0170.03311.16
5.2.140.0500.03311.29
5.2.130.0100.03711.00
5.2.120.0030.04711.00
5.2.110.0070.04311.00
5.2.100.0130.03710.96
5.2.90.0100.04311.01
5.2.80.0100.05011.02
5.2.70.0130.03311.02
5.2.60.0100.04311.26
5.2.50.0330.04310.97
5.2.40.0130.04010.99
5.2.30.0170.04311.19
5.2.20.0200.03011.05
5.2.10.0130.04010.73
5.2.00.0070.04010.81
5.1.60.0070.04010.06
5.1.50.0130.0309.89
5.1.40.0130.02710.13
5.1.30.0200.03710.39
5.1.20.0030.04010.32
5.1.10.0030.04010.22
5.1.00.0030.0439.96
5.0.50.0070.0338.45
5.0.40.0030.0278.29
5.0.30.0100.0378.30
5.0.20.0000.0338.24
5.0.10.0030.0308.15
5.0.00.0030.0478.04
4.4.90.0070.0205.81
4.4.80.0030.0205.77
4.4.70.0100.0175.75
4.4.60.0070.0205.75
4.4.50.0070.0205.78
4.4.40.0070.0335.85
4.4.30.0030.0235.88
4.4.20.0000.0275.82
4.4.10.0030.0205.89
4.4.00.0100.0335.87
4.3.110.0030.0235.76
4.3.100.0100.0205.75
4.3.90.0030.0235.70
4.3.80.0070.0335.70
4.3.70.0070.0175.75
4.3.60.0000.0235.73
4.3.50.0030.0235.70
4.3.40.0070.0305.71
4.3.30.0100.0174.51
4.3.20.0030.0234.50
4.3.10.0030.0234.54
4.3.00.0030.02310.29

preferences:
57.06 ms | 401 KiB | 5 Q