3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [4, 3, 5, 7, 210], [4, 9, 5, 7, 210], [4, 9, 25, 7, 210], ]; var_export( array_map( fn($row) => $row + [array_key_last($row) => array_product($row) / array_pop($row)], $array ) );

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.5.20.0120.00719.99
8.5.10.0090.00916.51
8.5.00.0110.01019.87
8.4.170.0080.01324.00
8.4.160.0120.00923.94
8.4.150.0020.00014.05
8.4.140.0110.01017.62
8.4.130.0140.00617.74
8.4.120.0120.00820.20
8.4.110.0110.01018.93
8.4.100.0070.00318.79
8.4.90.0130.00718.66
8.4.80.0060.00218.73
8.4.70.0120.00717.83
8.4.60.0040.00718.57
8.4.50.0110.00818.63
8.4.40.0130.00717.80
8.4.30.0130.00618.78
8.4.20.0110.00819.73
8.4.10.0000.00919.39
8.3.290.0120.00918.39
8.3.280.0070.01418.39
8.3.270.0110.00816.68
8.3.260.0160.00416.69
8.3.250.0100.00919.13
8.3.240.0130.00716.54
8.3.230.0090.00916.55
8.3.220.0040.00419.04
8.3.210.0070.00118.32
8.3.200.0050.00416.48
8.3.190.0080.00717.20
8.3.180.0110.00617.24
8.3.170.0120.00618.92
8.3.160.0180.00017.15
8.3.150.0000.01816.99
8.3.140.0030.00617.29
8.3.130.0080.00018.49
8.3.120.0060.00318.82
8.3.110.0030.00620.94
8.3.100.0050.00318.43
8.3.90.0110.00726.77
8.3.80.0040.00717.97
8.3.70.0110.00718.30
8.3.60.0120.00318.66
8.3.50.0070.01116.54
8.3.40.0040.01123.73
8.3.30.0110.00722.96
8.3.20.0210.00022.96
8.3.10.0110.01422.96
8.3.00.0090.00922.96
8.2.300.0120.01117.95
8.2.290.0100.00320.51
8.2.280.0070.00718.30
8.2.270.0060.01218.95
8.2.260.0030.00718.59
8.2.250.0030.00616.56
8.2.240.0060.00317.04
8.2.230.0070.00322.58
8.2.220.0030.00624.06
8.2.210.0110.00426.77
8.2.200.0030.00616.38
8.2.190.0090.00616.58
8.2.180.0000.01518.41
8.2.170.0070.01022.96
8.2.160.0110.00722.96
8.2.150.0100.00722.96
8.2.140.0090.00622.96
8.2.130.0000.01522.96
8.2.120.0070.01022.96
8.2.110.0090.00622.96
8.2.100.0090.00622.96
8.2.90.0100.00622.96
8.2.80.0060.00922.96
8.2.70.0070.01022.96
8.2.60.0150.00022.96
8.2.50.0100.00722.96
8.2.40.0090.00622.96
8.2.30.0170.00022.96
8.2.20.0070.00722.96
8.2.10.0060.00922.96
8.2.00.0120.00322.96
8.1.340.0100.00917.79
8.1.330.0120.00621.82
8.1.320.0120.00815.97
8.1.310.0120.00618.36
8.1.300.0030.00617.93
8.1.290.0000.00930.84
8.1.280.0140.00725.92
8.1.270.0070.00722.96
8.1.260.0040.01122.96
8.1.250.0090.00622.96
8.1.240.0120.00322.96
8.1.230.0000.01522.96
8.1.220.0060.00922.96
8.1.210.0070.00722.96
8.1.200.0090.00622.96
8.1.190.0040.01122.96
8.1.180.0070.00722.96
8.1.170.0140.00022.96
8.1.160.0040.01122.96
8.1.150.0120.00322.96
8.1.140.0080.00822.96
8.1.130.0150.00022.96
8.1.120.0070.00722.96
8.1.110.0130.00322.96
8.1.100.0090.00922.96
8.1.90.0150.00322.96
8.1.80.0070.01122.96
8.1.70.0100.00622.96
8.1.60.0120.00322.96
8.1.50.0070.01122.96
8.1.40.0060.01222.96
8.1.30.0090.00922.96
8.1.20.0030.01422.96
8.1.10.0130.00322.96
8.1.00.0080.00822.96

preferences:
40.43 ms | 403 KiB | 5 Q