3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getRectangleData($width, $height) { $circumference = calculateCircumference($width, $height); $area = calculateArea($width, $height); return "Omkretsen är $circumference och aren är $area"; } function calculateCircumference($width, $height) { return ($width + $height) * 2; } function calculateArea($width, $height) { return $width * $height; } echo getRectangleData(10, 5);

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.70.0100.01016.25
8.3.60.0110.00718.56
8.3.50.0120.01121.92
8.3.40.0170.00318.84
8.3.30.0100.00319.09
8.3.20.0110.00720.07
8.3.10.0000.00723.66
8.3.00.0080.00019.26
8.2.180.0080.00816.32
8.2.170.0100.01022.96
8.2.160.0060.00922.17
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0090.00626.16
8.2.120.0050.00320.97
8.2.110.0060.00321.00
8.2.100.0090.00317.91
8.2.90.0000.00819.51
8.2.80.0050.00317.97
8.2.70.0000.00817.80
8.2.60.0040.00418.22
8.2.50.0080.00018.10
8.2.40.0030.00619.33
8.2.30.0040.00419.13
8.2.20.0000.00817.68
8.2.10.0050.00318.09
8.2.00.0030.00517.74
8.1.280.0070.01325.92
8.1.270.0040.00418.74
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0090.00022.19
8.1.230.0080.00422.66
8.1.220.0030.00517.74
8.1.210.0040.00419.04
8.1.200.0060.00317.36
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0000.00918.64
8.1.160.0070.00018.93
8.1.150.0000.00818.74
8.1.140.0030.00617.28
8.1.130.0000.00717.80
8.1.120.0040.00417.42
8.1.110.0020.00517.38
8.1.100.0000.00717.27
8.1.90.0070.00017.43
8.1.80.0070.00317.30
8.1.70.0000.00717.35
8.1.60.0050.00317.47
8.1.50.0000.00817.56
8.1.40.0000.00717.43
8.1.30.0060.00317.58
8.1.20.0070.00017.49
8.1.10.0070.00017.57
8.1.00.0040.00417.47
8.0.300.0040.00420.18
8.0.290.0000.00816.58
8.0.280.0030.00318.45
8.0.270.0040.00417.28
8.0.260.0030.00317.27
8.0.250.0030.00316.96
8.0.240.0000.00716.95
8.0.230.0040.00416.88
8.0.220.0030.00416.85
8.0.210.0070.00016.86
8.0.200.0000.00716.89
8.0.190.0080.00016.96
8.0.180.0040.00416.92
8.0.170.0050.00316.84
8.0.160.0030.00316.80
8.0.150.0050.00216.86
8.0.140.0040.00416.84
8.0.130.0030.00313.38
8.0.120.0100.00016.89
8.0.110.0000.00816.96
8.0.100.0040.00416.71
8.0.90.0040.00416.94
8.0.80.0070.00716.92
8.0.70.0070.00016.79
8.0.60.0000.00716.71
8.0.50.0070.00016.86
8.0.30.0140.00717.10
8.0.20.0090.01017.40
8.0.10.0000.00717.07
8.0.00.0130.00416.81
7.4.330.0020.00215.03
7.4.320.0000.00616.40
7.4.300.0060.00016.51
7.4.290.0000.00816.63
7.4.280.0080.00016.50
7.4.270.0040.00416.63
7.4.260.0030.00316.63
7.4.250.0000.00816.61
7.4.240.0020.00516.56
7.4.230.0000.00716.39
7.4.220.0090.00916.40
7.4.210.0060.01016.71
7.4.200.0040.00416.65
7.4.160.0090.00616.55
7.4.150.0090.00917.40
7.4.140.0100.01117.86
7.4.130.0100.00716.51
7.4.120.0060.01116.65
7.4.110.0140.01016.51
7.4.100.0070.01016.58
7.4.90.0110.00716.40
7.4.80.0160.00019.39
7.4.70.0080.00816.46
7.4.60.0120.00616.70
7.4.50.0080.00016.70
7.4.40.0170.01316.49
7.4.30.0100.00716.61
7.4.00.0070.00715.22
7.3.330.0000.00513.37
7.3.320.0000.00513.25
7.3.310.0030.00316.34
7.3.300.0070.00016.25
7.3.290.0070.01016.39
7.3.280.0060.01016.37
7.3.270.0090.01617.40
7.3.260.0070.01016.39
7.3.250.0130.00716.50
7.3.240.0090.00916.45
7.3.230.0140.01116.43
7.3.210.0160.00616.34
7.3.200.0080.00819.39
7.3.190.0090.00716.50
7.3.180.0110.00516.51
7.3.170.0090.01016.68
7.3.160.0090.00616.54
7.3.10.0090.00916.52
7.3.00.0090.00716.57
7.2.330.0000.01616.66
7.2.320.0130.00616.62
7.2.310.0000.01716.75
7.2.300.0160.00616.56
7.2.290.0150.00316.70
7.2.130.0080.00816.71
7.2.120.0050.00716.84
7.2.110.0080.00616.81
7.2.100.0070.00916.76
7.2.90.0070.00516.84
7.2.80.0080.00516.69
7.2.70.0060.00416.68
7.2.60.0080.00616.76
7.2.50.0100.00716.82
7.2.40.0090.00516.86
7.2.30.0050.00916.71
7.2.20.0100.00516.89
7.2.10.0040.00716.80
7.2.00.0090.00416.78
7.1.250.0070.00815.60
7.1.70.0030.01016.86
7.1.60.0110.01419.22
7.1.50.0100.01016.96
7.1.00.0000.08022.48
7.0.200.0000.01016.90
7.0.140.0030.07321.97
7.0.60.0030.04020.00
7.0.50.0070.06717.88
7.0.40.0130.03320.11
7.0.30.0400.04320.25
7.0.20.0100.04720.16
7.0.10.0100.08320.05
7.0.00.0170.04720.27
5.6.280.0000.07720.82
5.6.210.0100.06720.73
5.6.200.0030.08718.29
5.6.190.0070.08320.62
5.6.180.0100.06720.61
5.6.170.0230.08320.40
5.6.160.0100.08320.43
5.6.150.0100.05718.18
5.6.140.0100.05318.19
5.6.130.0070.08318.27
5.6.120.0030.04721.12
5.6.110.0030.08021.05
5.6.100.0130.06321.12
5.6.90.0070.05020.98
5.6.80.0100.07320.40
5.5.350.4200.04020.36
5.5.340.0070.04317.99
5.5.330.0030.05320.36
5.5.320.0200.04020.24
5.5.310.0200.04020.42
5.5.300.0130.06718.05
5.5.290.0200.06717.95
5.5.280.0070.06320.98
5.5.270.0070.05320.73
5.5.260.0030.06720.95
5.5.250.0100.06320.79
5.5.240.0170.07720.17
5.4.450.0630.05019.59
5.4.440.0130.05719.54
5.4.430.0200.05019.21
5.4.420.0200.05019.54
5.4.410.0130.05719.19
5.4.400.0070.06319.22
5.4.390.0200.05319.21
5.4.380.0330.05018.48
5.4.370.0230.06318.73
5.4.360.0200.05318.64
5.4.350.0270.05718.54
5.4.340.0370.04318.79
5.4.320.0270.06018.52
5.4.310.0230.05318.74
5.4.300.0330.04718.75
5.4.290.0300.07018.78
5.4.280.0170.08018.80
5.4.270.0270.07018.64
5.4.260.0330.06018.52
5.4.250.0300.07318.63
5.4.240.0300.06318.68
5.4.230.0270.07018.77
5.4.220.0300.06718.72
5.4.210.0130.06018.84
5.4.200.0100.06716.63
5.4.190.0470.05018.77
5.4.180.0400.06018.73
5.4.170.0430.04318.49
5.4.160.0270.04718.61
5.4.150.0400.05718.71
5.4.140.0300.07316.27
5.4.130.0170.05316.37
5.4.120.0300.04716.38
5.4.110.0230.05316.45
5.4.100.0300.05316.35
5.4.90.0230.04716.27
5.4.80.0330.06016.34
5.4.70.0230.05016.34
5.4.60.0200.05316.25
5.4.50.0270.04716.15
5.4.40.0170.05716.26
5.4.30.0230.05016.23
5.4.20.0170.06016.16
5.4.10.0100.06716.26
5.4.00.0330.05015.79
5.3.290.0300.06714.70
5.3.280.0270.05314.77
5.3.270.0300.07714.62
5.3.260.0130.06014.71
5.3.250.0330.06314.74
5.3.240.0200.08014.81
5.3.230.0300.07014.62
5.3.220.0270.07014.67
5.3.210.0300.06714.77
5.3.200.0230.07014.73
5.3.190.0200.05014.68
5.3.180.0170.05714.58
5.3.170.0230.06014.67
5.3.160.0270.04714.60
5.3.150.0230.05714.62
5.3.140.0270.04714.61
5.3.130.0200.05014.66
5.3.120.0170.07314.66
5.3.110.0200.05314.54
5.3.100.0200.04714.24
5.3.90.0130.05314.05
5.3.80.0170.05714.13
5.3.70.0200.04714.08
5.3.60.0100.06014.06
5.3.50.0170.05314.07
5.3.40.0130.05714.02
5.3.30.0170.06013.97
5.3.20.0200.04713.92
5.3.10.0170.04713.64
5.3.00.0200.05013.68
5.2.170.0170.04011.18
5.2.160.0130.04311.37
5.2.150.0170.04011.16
5.2.140.0270.05011.13
5.2.130.0170.04011.21
5.2.120.0170.04311.09
5.2.110.0100.04711.18
5.2.100.0170.04011.23
5.2.90.0000.05311.23
5.2.80.0100.04711.07
5.2.70.0200.04011.34
5.2.60.0230.03711.18
5.2.50.0100.04311.13
5.2.40.0130.04311.13
5.2.30.0170.03711.01
5.2.20.0200.04011.01
5.2.10.0030.04310.96
5.2.00.0030.04710.76
5.1.60.0170.0339.99
5.1.50.0070.04010.12
5.1.40.0130.03710.16
5.1.30.0170.03710.52
5.1.20.0170.03710.58
5.1.10.0130.04310.11
5.1.00.0200.03010.07
5.0.50.0030.0338.70
5.0.40.0070.0308.44
5.0.30.0030.0508.23
5.0.20.0070.0308.23
5.0.10.0030.0378.36
5.0.00.0100.0508.34
4.4.90.0030.0375.89
4.4.80.0130.0235.94
4.4.70.0130.0175.88
4.4.60.0030.0275.91
4.4.50.0030.0305.91
4.4.40.0070.0435.93
4.4.30.0100.0205.88
4.4.20.0100.0275.99
4.4.10.0000.0376.00
4.4.00.0070.0475.96
4.3.110.0070.0305.88
4.3.100.0100.0305.84
4.3.90.0070.0305.84
4.3.80.0170.0405.91
4.3.70.0100.0275.87
4.3.60.0000.0375.93
4.3.50.0100.0275.93
4.3.40.0030.0475.79
4.3.30.0070.0205.05
4.3.20.0070.0275.05
4.3.10.0000.0275.05
4.3.00.0000.0237.60

preferences:
56.03 ms | 401 KiB | 5 Q