3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stats=[ ['statname'=>'foo', 'totalStatPower'=>1], ['statname'=>'bar', 'totalStatPower'=>2], ['statname'=>'foo', 'totalStatPower'=>3], ]; $totals = array_reduce( $stats, function( $a, $b ) { $a[ $b['statname'] ] += $b['totalStatPower']; return $a; }, [] ); var_dump( $totals );

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.0120.00918.40
8.3.50.0080.01122.11
8.3.40.0080.00818.82
8.3.30.0080.00519.04
8.3.20.0040.00420.18
8.3.10.0080.00022.09
8.3.00.0080.00022.50
8.2.180.0110.00716.75
8.2.170.0040.01522.96
8.2.160.0070.01020.57
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0030.01026.16
8.2.120.0000.00817.75
8.2.110.0070.00322.20
8.2.100.0090.00318.03
8.2.90.0040.00417.94
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0080.00018.05
8.2.50.0040.00418.07
8.2.40.0050.00318.16
8.2.30.0050.00318.00
8.2.20.0040.00417.84
8.2.10.0080.00019.59
8.2.00.0040.00417.86
8.1.280.0190.00625.92
8.1.270.0030.00522.20
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00422.59
8.1.230.0040.00720.97
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00817.55
8.1.180.0040.00418.10
8.1.170.0080.00018.64
8.1.160.0050.00221.89
8.1.150.0000.00718.60
8.1.140.0040.00417.41
8.1.130.0000.00717.82
8.1.120.0040.00417.54
8.1.110.0040.00417.46
8.1.100.0000.00817.34
8.1.90.0000.00717.45
8.1.80.0080.00017.38
8.1.70.0000.00717.32
8.1.60.0000.00817.59
8.1.50.0000.00817.57
8.1.40.0030.00517.54
8.1.30.0070.00017.65
8.1.20.0000.00817.61
8.1.10.0040.00417.49
8.1.00.0040.00417.49
8.0.300.0060.00319.98
8.0.290.0000.00717.16
8.0.280.0050.00318.32
8.0.270.0050.00317.04
8.0.260.0000.00716.73
8.0.250.0030.00316.86
8.0.240.0080.00016.88
8.0.230.0040.00416.95
8.0.220.0000.00716.85
8.0.210.0030.00316.91
8.0.200.0000.00617.03
8.0.190.0000.00716.90
8.0.180.0070.00016.87
8.0.170.0050.00216.90
8.0.160.0040.00416.88
8.0.150.0060.00316.96
8.0.140.0030.00316.90
8.0.130.0060.00013.39
8.0.120.0080.00016.96
8.0.110.0000.00716.93
8.0.100.0040.00416.92
8.0.90.0050.00316.88
8.0.80.0060.01316.98
8.0.70.0040.00417.06
8.0.60.0030.00316.89
8.0.50.0040.00416.76
8.0.30.0150.00617.03
8.0.20.0110.00717.40
8.0.10.0040.00417.10
8.0.00.0080.01116.81
7.4.330.0030.00515.00
7.4.320.0030.00316.50
7.4.300.0000.00916.61
7.4.290.0000.00716.59
7.4.280.0030.00316.59
7.4.270.0040.00216.51
7.4.260.0070.00016.46
7.4.250.0000.00716.45
7.4.240.0040.00316.56
7.4.230.0000.00716.58
7.4.220.0070.01416.39
7.4.210.0040.01016.61
7.4.200.0070.00016.62
7.4.190.0000.00716.45
7.4.160.0080.00816.39
7.4.150.0160.00317.40
7.4.140.0130.00817.86
7.4.130.0080.01316.49
7.4.120.0100.00816.46
7.4.110.0110.00716.43
7.4.100.0130.01016.44
7.4.90.0120.00616.34
7.4.80.0150.00419.39
7.4.70.0080.00916.50
7.4.60.0060.01016.39
7.4.50.0000.00816.66
7.4.40.0060.01222.77
7.4.30.0080.00816.51
7.4.00.0070.01015.01
7.3.330.0000.00513.35
7.3.320.0000.00513.38
7.3.310.0070.00016.39
7.3.300.0030.00316.32
7.3.290.0060.00916.32
7.3.280.0100.00816.40
7.3.270.0140.00717.40
7.3.260.0180.00316.20
7.3.250.0130.00616.47
7.3.240.0030.01516.40
7.3.230.0080.00816.40
7.3.210.0150.00316.38
7.3.200.0090.01019.39
7.3.190.0090.00916.52
7.3.180.0110.00816.54
7.3.170.0080.00816.52
7.3.160.0100.01016.46
7.3.120.0030.01314.96
7.3.110.0120.00614.81
7.3.100.0040.00414.48
7.3.90.0060.00914.72
7.3.80.0150.00014.90
7.3.70.0030.00915.00
7.3.60.0110.00014.80
7.3.50.0030.00614.47
7.3.40.0090.00614.86
7.3.30.0040.00414.86
7.3.20.0110.00416.67
7.3.10.0040.01216.43
7.3.00.0070.01016.62
7.2.330.0030.01416.46
7.2.320.0100.01316.61
7.2.310.0120.01216.68
7.2.300.0060.01616.68
7.2.290.0100.01116.73
7.2.240.0060.01315.07
7.2.230.0120.00314.78
7.2.220.0030.01014.85
7.2.210.0090.00314.98
7.2.200.0080.00514.88
7.2.190.0040.01215.23
7.2.180.0040.00814.95
7.2.170.0000.01815.05
7.2.160.0110.00315.25
7.2.150.0040.01116.80
7.2.140.0030.00616.92
7.2.130.0000.01616.95
7.2.120.0080.00816.99
7.2.110.0070.00716.72
7.2.100.0040.01116.88
7.2.90.0090.00616.94
7.2.80.0080.00416.91
7.2.70.0030.00617.04
7.2.60.0090.00616.61
7.2.50.0070.00716.87
7.2.40.0090.00917.12
7.2.30.0030.01516.90
7.2.20.0090.00617.14
7.2.10.0060.00916.79
7.2.00.0050.00818.08
7.1.330.0080.00815.87
7.1.320.0030.00615.66
7.1.310.0070.00715.74
7.1.300.0090.00615.96
7.1.290.0000.01215.80
7.1.280.0070.01015.91
7.1.270.0060.00615.71
7.1.260.0090.00615.93
7.1.250.0070.01015.79
7.1.100.0870.00716.25
7.1.70.0030.00517.02
7.1.60.0030.02019.82
7.1.50.0070.01416.71
7.1.00.0000.08022.29
7.0.200.0030.00916.79
7.0.140.0070.07022.01
7.0.60.0270.07321.72
7.0.50.0070.08317.87
7.0.40.0070.07320.23
7.0.30.0230.06320.12
7.0.20.0270.05020.30
7.0.10.0070.04020.08
7.0.00.0130.08020.15
5.6.280.0130.06320.87
5.6.210.0070.05020.53
5.6.200.0100.08018.21
5.6.190.0100.08020.61
5.6.180.0200.04020.67
5.6.170.0170.05720.59
5.6.160.0030.08020.47
5.6.150.0070.08318.12
5.6.140.0030.08718.10
5.6.130.0070.07718.17
5.6.120.0100.04020.99
5.6.110.0100.03721.11
5.6.100.0130.06721.03
5.6.90.0070.08321.12
5.6.80.0000.04720.40
5.5.350.3630.03720.41
5.5.340.0070.05018.04
5.5.330.0100.05320.30
5.5.320.0270.06020.42
5.5.310.0230.05320.27
5.5.300.0000.04717.97
5.5.290.0030.04017.96
5.5.280.0030.08720.96
5.5.270.0200.07320.86
5.5.260.0030.04020.97
5.5.250.0100.05320.61
5.5.240.0270.06720.24
5.4.450.0530.06719.41
5.4.440.0500.05019.17
5.4.430.0600.06719.32
5.4.420.0600.06319.27
5.4.410.0530.06719.36
5.4.400.0730.02319.00
5.4.390.0530.02318.89
5.4.380.0600.06019.13
5.4.370.0530.06719.09
5.4.360.0500.06718.95
5.4.350.0400.04019.22
5.4.340.0500.06318.86
5.4.320.0630.04719.13
5.4.310.0400.04318.98
5.4.300.0570.06318.84
5.4.290.0470.03319.24
5.4.280.0470.05318.97
5.4.270.0470.04719.24
5.4.260.0570.06019.25
5.4.250.0500.05319.22
5.4.240.0530.06319.18
5.4.230.0500.04718.97
5.4.220.0530.05018.99
5.4.210.0500.06719.18
5.4.200.0630.05719.05
5.4.190.0530.04718.82
5.4.180.0530.06018.99
5.4.170.0500.05719.07
5.4.160.0530.04019.11
5.4.150.0570.05719.28
5.4.140.0500.05016.41
5.4.130.0400.03716.28
5.4.120.0400.04716.39
5.4.110.0430.04716.37
5.4.100.0500.06316.55
5.4.90.0500.06316.35
5.4.80.0470.06716.43
5.4.70.0400.04316.49
5.4.60.0470.04316.43
5.4.50.0600.05716.53
5.4.40.0500.04016.33
5.4.30.0430.03716.16
5.4.20.0470.05316.27
5.4.10.0470.05016.50
5.4.00.0430.03315.89
5.3.290.0430.06314.60
5.3.280.0530.06314.53
5.3.270.0370.04314.46
5.3.260.0430.04714.56
5.3.250.0430.04314.45
5.3.240.0400.03014.70
5.3.230.0400.06014.43
5.3.220.0430.06714.51
5.3.210.0430.06714.41
5.3.200.0400.04314.51
5.3.190.0570.06014.41
5.3.180.0470.05314.41
5.3.170.0470.03314.66
5.3.160.0470.06314.65
5.3.150.0470.07014.47
5.3.140.0430.05014.51
5.3.130.0430.07014.41
5.3.120.0500.05714.60
5.3.110.0400.05714.43
5.3.100.0400.07313.95
5.3.90.0430.06013.97
5.3.80.0400.07013.79
5.3.70.0500.05713.96
5.3.60.0400.03013.94
5.3.50.0300.05313.82
5.3.40.0400.04713.93
5.3.30.0430.04013.86
5.3.20.0430.05713.46
5.3.10.0370.04313.60
5.3.00.0430.06013.49
5.2.170.0400.05013.13
5.2.160.0270.03713.13
5.2.150.0300.03013.13
5.2.140.0330.03313.13
5.2.130.0270.03013.13
5.2.120.0370.04013.13
5.2.110.0330.02313.13
5.2.100.0330.05013.13
5.2.90.0300.03313.13
5.2.80.0300.02713.13
5.2.70.0400.04313.13
5.2.60.0400.03013.13
5.2.50.0230.05713.13
5.2.40.0170.04013.13
5.2.30.0370.03013.13
5.2.20.0300.05713.13
5.2.10.0370.02713.13
5.2.00.0300.02713.13
5.1.60.0330.02713.13
5.1.50.0300.02713.13
5.1.40.0400.04313.13
5.1.30.0300.02713.13
5.1.20.0370.05013.13
5.1.10.0300.02713.13
5.1.00.0270.02713.13
5.0.50.0200.04013.13
5.0.40.0200.02713.13
5.0.30.0200.06013.13
5.0.20.0170.03313.13
5.0.10.0200.04013.13
5.0.00.0170.03313.13
4.4.90.0170.03713.13
4.4.80.0200.02013.13
4.4.70.0200.02013.13
4.4.60.0170.01713.13
4.4.50.0200.03013.13
4.4.40.0170.05013.13
4.4.30.0200.02313.13
4.4.20.0200.01713.13
4.4.10.0200.02313.13
4.4.00.0130.04013.13
4.3.110.0200.03013.13
4.3.100.0270.01313.13
4.3.90.0170.03713.13
4.3.80.0270.02013.13
4.3.70.0170.03313.13
4.3.60.0170.03313.13
4.3.50.0170.03313.13
4.3.40.0130.04713.13
4.3.30.0070.04013.13
4.3.20.0100.03713.13
4.3.10.0170.03013.13
4.3.00.0170.02713.13

preferences:
43.48 ms | 401 KiB | 5 Q