3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [5, 7, 11, 67, 4, 12, 15]; $min = 10; echo array_reduce($array, fn($carry, $item) => $carry + ($item > $min), 0);

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.4.120.0130.00820.64
8.4.110.0130.00818.95
8.4.100.0120.00817.81
8.4.90.0150.00617.57
8.4.80.0120.00622.30
8.4.70.0040.00517.66
8.4.60.0140.00718.75
8.4.50.0100.00918.50
8.4.40.0000.00819.52
8.4.30.0130.00618.57
8.4.20.0140.00718.95
8.4.10.0090.00019.20
8.3.250.0140.00618.78
8.3.240.0050.00316.75
8.3.230.0080.00716.75
8.3.220.0060.00218.93
8.3.210.0070.00816.85
8.3.200.0050.00416.74
8.3.190.0040.01017.20
8.3.180.0130.00716.59
8.3.170.0110.00719.11
8.3.160.0030.00618.49
8.3.150.0120.00616.96
8.3.140.0090.00618.79
8.3.130.0040.01118.66
8.3.120.0100.01018.60
8.3.110.0040.00416.30
8.3.100.0030.00620.27
8.3.90.0080.00018.41
8.3.80.0090.00018.46
8.3.70.0070.01116.38
8.3.60.0070.01418.39
8.3.50.0070.01221.99
8.3.40.0100.00718.68
8.3.30.0060.00918.78
8.3.20.0040.00421.94
8.3.10.0030.00622.09
8.3.00.0000.00822.45
8.2.290.0130.00520.21
8.2.280.0100.00718.31
8.2.270.0090.00919.13
8.2.260.0030.00517.04
8.2.250.0090.00916.70
8.2.240.0060.00317.18
8.2.230.0030.00620.94
8.2.220.0110.00724.06
8.2.210.0040.00426.77
8.2.200.0090.00016.25
8.2.190.0180.00316.58
8.2.180.0150.00018.24
8.2.170.0120.00322.96
8.2.160.0070.00722.07
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0070.00026.16
8.2.110.0060.00320.77
8.2.100.0040.00817.71
8.2.90.0000.00720.55
8.2.80.0000.00820.20
8.2.70.0040.00417.93
8.2.60.0000.00817.99
8.2.50.0080.00018.10
8.2.40.0040.00421.21
8.2.30.0040.00419.15
8.2.20.0000.00717.96
8.2.10.0040.00419.18
8.2.00.0030.00619.34
8.1.330.0110.00821.89
8.1.320.0090.01015.94
8.1.310.0140.00418.40
8.1.300.0080.00017.76
8.1.290.0030.00618.88
8.1.280.0140.00025.92
8.1.270.0040.00420.54
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0080.00022.10
8.1.230.0040.00820.93
8.1.220.0060.00317.78
8.1.210.0040.00419.04
8.1.200.0030.00617.36
8.1.190.0060.00317.23
8.1.180.0090.00318.10
8.1.170.0040.00418.65
8.1.160.0000.00918.89
8.1.150.0080.00018.89
8.1.140.0050.00320.88
8.1.130.0050.00217.44
8.1.120.0030.00717.37
8.1.110.0040.00417.47
8.1.100.0000.00817.34
8.1.90.0080.00017.35
8.1.80.0000.00717.54
8.1.70.0000.00717.36
8.1.60.0050.00317.63
8.1.50.0040.00417.43
8.1.40.0060.00317.42
8.1.30.0060.00317.62
8.1.20.0040.00417.54
8.1.10.0060.00317.57
8.1.00.0060.00317.45
8.0.300.0000.00920.04
8.0.290.0040.00416.88
8.0.280.0040.00418.34
8.0.270.0030.00317.16
8.0.260.0000.00716.82
8.0.250.0070.00016.93
8.0.240.0060.00317.01
8.0.230.0040.00416.98
8.0.220.0000.00716.95
8.0.210.0090.00016.95
8.0.200.0030.00317.04
8.0.190.0000.00716.98
8.0.180.0040.00416.97
8.0.170.0050.00316.98
8.0.160.0000.00716.84
8.0.150.0060.00316.78
8.0.140.0040.00416.83
8.0.130.0030.00313.36
8.0.120.0040.00416.91
8.0.110.0000.00716.77
8.0.100.0040.00416.94
8.0.90.0000.00716.98
8.0.80.0070.00716.94
8.0.70.0030.00516.96
8.0.60.0040.00416.91
8.0.50.0050.00317.00
8.0.30.0060.01017.11
8.0.20.0120.00817.16
8.0.10.0000.00717.14
8.0.00.0070.01316.75
7.4.330.0060.00016.67
7.4.320.0030.00316.62
7.4.300.0000.00716.54
7.4.290.0070.00016.47
7.4.280.0070.00016.39
7.4.270.0030.00316.59
7.4.260.0000.00613.11
7.4.250.0000.00816.41
7.4.240.0020.00516.49
7.4.230.0070.00016.33
7.4.220.0050.00216.50
7.4.210.0070.00916.65
7.4.200.0000.00716.70
7.4.130.0100.01316.38
7.4.120.0130.00316.53
7.4.110.0070.01016.45
7.4.100.0100.00716.56
7.4.90.0090.00916.65
7.4.80.0140.01019.39
7.4.70.0070.01016.52
7.4.60.0030.01416.47
7.4.50.0100.00616.33
7.4.40.0050.01116.26
7.4.10.0060.00914.79
7.4.00.0020.01615.06
7.3.330.0030.00316.05
7.3.320.0030.00313.07
7.3.310.0030.00316.04
7.3.300.0030.00316.06
7.3.290.0000.00716.15
7.3.260.0110.00816.31
7.3.240.0100.00616.17
7.3.230.0090.00916.11
7.3.210.0130.00316.32
7.3.200.0070.01016.25
7.3.190.0100.00716.16
7.3.180.0100.00616.42
7.3.170.0150.00616.44
7.3.160.0060.01116.40
7.3.130.0000.01914.54
7.3.120.0000.01714.71
7.3.110.0090.00914.65
7.3.100.0130.00014.90
7.3.90.0040.01214.89
7.3.80.0100.00714.60
7.3.70.0050.00814.52
7.3.60.0090.00414.79
7.3.50.0060.00814.66
7.3.40.0070.00614.64
7.3.30.0070.00514.40
7.3.20.0040.01016.62
7.3.10.0060.00916.42
7.3.00.0050.00716.48
7.2.330.0120.00616.46
7.2.320.0090.00616.32
7.2.310.0120.00916.25
7.2.300.0080.00816.33
7.2.290.0090.01216.45
7.2.260.0070.00714.88
7.2.250.0000.01714.98
7.2.240.0030.01314.75
7.2.230.0100.00314.43
7.2.220.0000.01014.80
7.2.210.0110.00614.57
7.2.200.0050.00714.66
7.2.190.0070.00514.72
7.2.180.0050.00914.70
7.2.170.0030.01114.71
7.2.160.0060.00714.64
7.2.150.0070.00616.51
7.2.140.0050.00716.64
7.2.130.0100.00516.78
7.2.120.0060.00816.72
7.2.110.0030.01116.62
7.2.100.0080.00616.61
7.2.90.0050.01016.78
7.2.80.0070.00516.89
7.2.70.0040.01116.59
7.2.60.0060.00816.54
7.2.50.0080.00616.67
7.2.40.0060.00816.82
7.2.30.0050.00916.71
7.2.20.0070.00816.72
7.2.10.0070.00616.67
7.2.00.0030.01216.80
7.1.330.0060.00915.69
7.1.320.0030.01015.54
7.1.310.0110.00315.46
7.1.300.0020.01015.53
7.1.290.0080.00515.51
7.1.280.0070.00515.58
7.1.270.0050.00815.43
7.1.260.0060.00915.62
7.1.250.0050.00715.57
7.1.240.0060.00615.69
7.1.230.0060.00915.61
7.1.220.0040.01415.66
7.1.210.0110.00715.64
7.1.200.0040.01115.63
7.1.190.0090.00615.57
7.1.180.0090.00915.59
7.1.170.0070.00715.81
7.1.160.0040.01115.50
7.1.150.0120.00315.68
7.1.140.0090.00615.82
7.1.130.0040.01115.57
7.1.120.0070.00715.35
7.1.110.0030.01015.63
7.1.100.0060.00615.73
7.1.90.0090.00615.72
7.1.80.0040.00715.54
7.1.70.0030.00915.55
7.1.60.0040.01115.55
7.1.50.0070.00715.57
7.1.40.0040.01015.80
7.1.30.0030.01015.51
7.1.20.0030.01015.49
7.1.10.0070.00315.51
7.1.00.0060.00315.57

preferences:
29.46 ms | 403 KiB | 5 Q