3v4l.org

run code in 300+ PHP versions simultaneously
<?php $marks1 = array(360,310,310,330,313,375,456,111,256); $marks2 = array(350,340,356,330,321); $marks3 = array(630,340,570,635,434,255,298); echo max($marks1); ?>

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.00916.38
8.3.50.0050.01221.82
8.3.40.0070.00718.69
8.3.30.0070.00719.09
8.3.20.0000.00820.39
8.3.10.0050.00320.33
8.3.00.0030.00619.09
8.2.180.0120.00618.16
8.2.170.0040.01122.96
8.2.160.0040.01120.39
8.2.150.0110.00424.18
8.2.140.0070.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00421.11
8.2.110.0030.00619.39
8.2.100.0070.00417.91
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0080.00018.05
8.2.50.0040.00418.07
8.2.40.0080.00018.09
8.2.30.0030.00519.36
8.2.20.0000.00817.68
8.2.10.0040.00417.90
8.2.00.0090.00017.55
8.1.280.0140.00325.92
8.1.270.0000.00921.91
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00422.25
8.1.230.0070.00718.93
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0050.00317.10
8.1.180.0000.00718.10
8.1.170.0000.00818.50
8.1.160.0070.00021.95
8.1.150.0070.00018.69
8.1.140.0000.00717.30
8.1.130.0030.00317.86
8.1.120.0070.00017.33
8.1.110.0030.00317.29
8.1.100.0040.00417.42
8.1.90.0040.00417.39
8.1.80.0070.00017.45
8.1.70.0070.00017.27
8.1.60.0030.00517.40
8.1.50.0000.00817.38
8.1.40.0070.00017.33
8.1.30.0060.00317.57
8.1.20.0000.00717.49
8.1.10.0040.00417.52
8.1.00.0050.00317.48
8.0.300.0080.00020.16
8.0.290.0080.00016.63
8.0.280.0000.00718.35
8.0.270.0040.00417.25
8.0.260.0030.00317.26
8.0.250.0040.00416.98
8.0.240.0080.00016.84
8.0.230.0050.00216.82
8.0.220.0030.00316.73
8.0.210.0000.00716.80
8.0.200.0030.00316.95
8.0.190.0040.00416.87
8.0.180.0040.00416.84
8.0.170.0040.00416.74
8.0.160.0000.00716.68
8.0.150.0030.00316.70
8.0.140.0030.00316.80
8.0.130.0050.00013.28
8.0.120.0040.00416.71
8.0.110.0040.00416.80
8.0.100.0040.00416.75
8.0.90.0030.00316.66
8.0.80.0140.00716.70
8.0.70.0050.00216.84
8.0.60.0040.00416.79
8.0.50.0050.00216.68
8.0.30.0050.01516.93
8.0.20.0090.01017.40
8.0.10.0000.00716.99
8.0.00.0100.01216.65
7.4.330.0000.00515.10
7.4.320.0000.00616.45
7.4.300.0000.00816.34
7.4.290.0030.00316.42
7.4.280.0070.00016.53
7.4.270.0040.00416.43
7.4.260.0030.00316.44
7.4.250.0000.00716.36
7.4.240.0030.00516.52
7.4.230.0000.00716.61
7.4.220.0140.01016.47
7.4.210.0130.00616.47
7.4.200.0070.00016.59
7.4.160.0030.01316.39
7.4.150.0060.01217.40
7.4.140.0100.01017.86
7.4.130.0050.01216.37
7.4.120.0040.01216.41
7.4.110.0160.00016.50
7.4.100.0120.00616.54
7.4.90.0090.00616.34
7.4.80.0180.00419.39
7.4.70.0170.00316.39
7.4.60.0100.00716.45
7.4.50.0040.00416.33
7.4.40.0060.01016.44
7.4.30.0120.00316.50
7.4.00.0070.01014.85
7.3.330.0050.00013.06
7.3.320.0000.00512.93
7.3.310.0000.00716.22
7.3.300.0030.00316.00
7.3.290.0090.00616.07
7.3.280.0080.00716.20
7.3.270.0120.01217.40
7.3.260.0120.01216.30
7.3.250.0080.01216.14
7.3.240.0100.01316.29
7.3.230.0070.01016.39
7.3.210.0070.01116.48
7.3.200.0060.01516.31
7.3.190.0130.00316.37
7.3.180.0160.00016.12
7.3.170.0100.00716.54
7.3.160.0060.00916.46
7.3.120.0070.01114.86
7.3.110.0060.01314.78
7.3.100.0000.01814.78
7.3.90.0080.00614.88
7.3.80.0060.00614.79
7.3.70.0030.01014.62
7.3.60.0040.01114.73
7.3.50.0040.01214.59
7.3.40.0040.00814.79
7.3.30.0070.00714.71
7.3.20.0070.00716.64
7.3.10.0060.00616.55
7.3.00.0040.00716.47
7.2.330.0100.00616.57
7.2.320.0150.00816.55
7.2.310.0070.01016.59
7.2.300.0160.00416.46
7.2.290.0100.01016.35
7.2.250.0030.01714.93
7.2.240.0100.01015.04
7.2.230.0030.01314.91
7.2.220.0040.01514.46
7.2.210.0100.00714.94
7.2.200.0120.00315.05
7.2.190.0060.01014.91
7.2.180.0000.01315.00
7.2.170.0000.01514.72
7.1.330.0060.01015.84
7.1.320.0030.01315.80
7.1.310.0030.01015.81
7.1.300.0060.00615.77
7.1.290.0040.00815.87
7.1.280.0140.00015.75
7.1.270.0100.00315.78
7.1.260.0040.01115.74
7.1.200.0040.00415.89
7.1.70.0000.00716.96
7.1.60.0100.01019.61
7.1.50.0240.01434.61
7.1.00.0030.07322.41
7.0.200.0040.00416.67
7.0.140.0000.07722.01
7.0.60.0070.06319.89
7.0.50.0070.07717.66
7.0.40.0170.07720.04
7.0.30.0300.07320.34
7.0.20.0330.04720.16
7.0.10.0030.05720.19
7.0.00.0030.08320.30
5.6.280.0030.07020.86
5.6.210.0030.08720.71
5.6.200.0100.07718.22
5.6.190.0070.04020.45
5.6.180.0270.05020.61
5.6.170.0300.07320.43
5.6.160.0170.06320.44
5.6.150.0130.03718.09
5.6.140.0070.04718.21
5.6.130.0070.03718.14
5.6.120.0070.08721.14
5.6.110.0070.08021.08
5.6.100.0030.08721.01
5.6.90.0000.08021.04
5.6.80.0070.06320.38
5.6.70.2900.03720.37
5.5.350.0270.07320.40
5.5.340.0000.04317.97
5.5.330.0070.08020.40
5.5.320.0370.07720.27
5.5.310.0230.06320.21
5.5.300.0100.08017.88
5.5.290.0100.06017.92
5.5.280.0030.07020.68
5.5.270.0070.04020.64
5.5.260.0100.08320.71
5.5.250.0100.07020.65
5.5.240.0200.03320.27
5.4.450.0270.04719.26
5.4.440.0200.04319.46
5.4.430.0400.05019.41
5.4.420.0330.05319.40
5.4.410.0400.04019.33
5.4.400.0200.03019.16
5.4.390.0270.04319.09
5.4.380.0430.04318.59
5.4.370.0400.04318.71
5.4.360.0270.05718.57
5.4.350.0300.05718.73
5.4.340.0170.06018.51
5.4.320.0050.04512.45
5.4.310.0070.04012.45
5.4.300.0120.03512.45
5.4.290.0090.03712.45
5.4.280.0060.03812.34
5.4.270.0080.04012.35
5.4.260.0070.04412.35
5.4.250.0080.03512.34
5.4.240.0080.03412.34
5.4.230.0060.04312.34
5.4.220.0070.03512.34
5.4.210.0050.03912.34
5.4.200.0130.03812.34
5.4.190.0100.04312.33
5.4.180.0060.03712.34
5.4.170.0050.03712.34
5.4.160.0070.04112.34
5.4.150.0080.03912.34
5.4.140.0090.03712.02
5.4.130.0080.04012.01
5.4.120.0060.04211.96
5.4.110.0040.04311.96
5.4.100.0100.03411.96
5.4.90.0090.03911.96
5.4.80.0080.04211.96
5.4.70.0090.03111.96
5.4.60.0070.03411.96
5.4.50.0040.03711.96
5.4.40.0050.03511.95
5.4.30.0050.03511.95
5.4.20.0080.03611.95
5.4.10.0060.03611.95
5.4.00.0060.04411.44
5.3.290.0090.03612.80
5.3.280.0070.03712.71
5.3.270.0060.03912.72
5.3.260.0090.03712.72
5.3.250.0090.03412.71
5.3.240.0040.04512.71
5.3.230.0090.04512.71
5.3.220.0090.04012.68
5.3.210.0080.03812.68
5.3.200.0090.04812.68
5.3.190.0050.04412.68
5.3.180.0110.04212.67
5.3.170.0100.03912.67
5.3.160.0080.04312.67
5.3.150.0080.04612.67
5.3.140.0100.03912.66
5.3.130.0080.03812.65
5.3.120.0050.05012.66
5.3.110.0070.04112.66
5.3.100.0090.04212.12
5.3.90.0070.04012.09
5.3.80.0070.03612.07
5.3.70.0040.03912.07
5.3.60.0060.03612.07
5.3.50.0070.03512.00
5.3.40.0110.04012.00
5.3.30.0060.03611.95
5.3.20.0060.04111.72
5.3.10.0040.04211.69
5.3.00.0100.03611.67
5.2.170.0070.0299.18
5.2.160.0080.0369.18
5.2.150.0080.0279.18
5.2.140.0030.0349.18
5.2.130.0060.0349.14
5.2.120.0060.0279.14
5.2.110.0080.0309.14
5.2.100.0080.0359.14
5.2.90.0070.0319.14
5.2.80.0090.0299.13
5.2.70.0040.0349.13
5.2.60.0040.0299.08
5.2.50.0080.0279.05
5.2.40.0080.0319.03
5.2.30.0090.0249.01
5.2.20.0030.0339.00
5.2.10.0040.0358.94
5.2.00.0070.0308.79
5.1.60.0060.0218.07
5.1.50.0060.0228.07
5.1.40.0050.0228.06
5.1.30.0060.0238.41
5.1.20.0060.0328.43
5.1.10.0030.0268.15
5.1.00.0030.0268.15
5.0.50.0040.0226.63
5.0.40.0040.0246.49
5.0.30.0060.0316.30
5.0.20.0040.0246.27
5.0.10.0050.0196.25
5.0.00.0030.0306.24
4.4.90.0060.0184.78
4.4.80.0060.0114.75
4.4.70.0010.0164.76
4.4.60.0020.0154.76
4.4.50.0030.0204.77
4.4.40.0020.0294.71
4.4.30.0060.0164.75
4.4.20.0040.0134.85
4.4.10.0050.0194.85
4.4.00.0030.0234.75
4.3.110.0050.0154.67
4.3.100.0010.0154.66
4.3.90.0050.0164.64
4.3.80.0040.0284.58
4.3.70.0030.0144.63
4.3.60.0040.0134.63
4.3.50.0050.0184.63
4.3.40.0050.0254.54
4.3.30.0030.0203.29
4.3.20.0000.0213.27
4.3.10.0040.0183.23
4.3.00.0000.02013.57

preferences:
45.83 ms | 400 KiB | 5 Q