3v4l.org

run code in 300+ PHP versions simultaneously
<?php function makecoffee($types = array("cappuccino"), $coffeeMaker = NULL) { $device = is_null($coffeeMaker) ? "hands" : $coffeeMaker; return "Making a cup of ".join(", ", $types)." with $device.\n"; } echo makecoffee(); echo makecoffee(array("cappuccino", "lavazza"), "teapot"); ?>

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.0120.00316.58
8.3.60.0070.00718.56
8.3.50.0140.00921.99
8.3.40.0070.01018.87
8.3.30.0030.01020.29
8.3.20.0040.00418.79
8.3.10.0060.00321.05
8.3.00.0040.00423.65
8.2.180.0070.01116.50
8.2.170.0070.01422.96
8.2.160.0110.00420.55
8.2.150.0070.00024.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00019.76
8.2.110.0000.00922.30
8.2.100.0090.00317.91
8.2.90.0000.00719.17
8.2.80.0080.00019.40
8.2.70.0030.00517.38
8.2.60.0050.00317.93
8.2.50.0080.00018.07
8.2.40.0040.00419.94
8.2.30.0000.00719.39
8.2.20.0000.00717.70
8.2.10.0040.00417.70
8.2.00.0030.00517.60
8.1.280.0070.00725.92
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.50
8.1.230.0030.00820.94
8.1.220.0090.00018.77
8.1.210.0000.00818.88
8.1.200.0060.00317.23
8.1.190.0040.00417.52
8.1.180.0030.00518.10
8.1.170.0030.00618.49
8.1.160.0040.00418.84
8.1.150.0030.00618.54
8.1.140.0000.00717.38
8.1.130.0030.00317.89
8.1.120.0030.00317.38
8.1.110.0000.00817.46
8.1.100.0060.00317.37
8.1.90.0000.00717.50
8.1.80.0030.00317.45
8.1.70.0030.00317.42
8.1.60.0000.00817.63
8.1.50.0000.00817.37
8.1.40.0040.00417.59
8.1.30.0030.00517.53
8.1.20.0030.00617.61
8.1.10.0000.00717.57
8.1.00.0080.00017.46
8.0.300.0050.00319.88
8.0.290.0040.00417.18
8.0.280.0050.00318.52
8.0.270.0000.00717.21
8.0.260.0000.00818.37
8.0.250.0050.00217.01
8.0.240.0000.00816.87
8.0.230.0070.00016.98
8.0.220.0030.00316.86
8.0.210.0030.00316.81
8.0.200.0060.00016.98
8.0.190.0070.00016.94
8.0.180.0040.00416.93
8.0.170.0050.00216.83
8.0.160.0070.00016.88
8.0.150.0000.00816.75
8.0.140.0040.00416.77
8.0.130.0000.00513.37
8.0.120.0030.00616.88
8.0.110.0080.00016.96
8.0.100.0050.00316.86
8.0.90.0000.00716.85
8.0.80.0130.01016.82
8.0.70.0040.00416.88
8.0.60.0050.00216.80
8.0.50.0050.00216.79
8.0.30.0030.01616.97
8.0.20.0120.00817.40
8.0.10.0000.00716.80
8.0.00.0080.00916.71
7.4.330.0050.00016.84
7.4.320.0100.00016.50
7.4.300.0040.00416.45
7.4.290.0070.00016.61
7.4.280.0030.00316.59
7.4.270.0030.00316.52
7.4.260.0050.00013.40
7.4.250.0080.00016.34
7.4.240.0070.00016.54
7.4.230.0000.00716.63
7.4.220.0110.00716.62
7.4.210.0090.00816.57
7.4.200.0030.00316.49
7.4.190.0050.00216.58
7.4.160.0090.00616.37
7.4.150.0000.01717.40
7.4.140.0180.00217.86
7.4.130.0080.01316.60
7.4.120.0090.01016.58
7.4.110.0140.00616.50
7.4.100.0150.00616.46
7.4.90.0090.01216.38
7.4.80.0100.00719.39
7.4.70.0090.01216.40
7.4.60.0110.00716.18
7.4.50.0070.00716.30
7.4.40.0150.00619.73
7.4.30.0110.01316.61
7.4.20.0080.02016.52
7.4.10.0200.00916.51
7.4.00.0090.00915.13
7.3.330.0000.00513.38
7.3.320.0060.00013.12
7.3.310.0070.00016.32
7.3.300.0070.00016.30
7.3.290.0070.01416.30
7.3.280.0080.00816.32
7.3.270.0070.01417.40
7.3.260.0130.00718.24
7.3.250.0110.00816.48
7.3.240.0100.00616.42
7.3.230.0090.00916.55
7.3.210.0130.00716.33
7.3.200.0110.00616.49
7.3.190.0160.00516.53
7.3.180.0090.01116.33
7.3.170.0150.01016.34
7.3.160.0130.01016.66
7.3.150.0270.00316.32
7.3.140.0270.00616.54
7.3.130.0140.01816.22
7.3.120.0130.01015.17
7.3.110.0130.00915.23
7.3.100.0160.00515.36
7.3.90.0120.00815.21
7.3.80.0110.01015.15
7.3.70.0150.00515.29
7.3.60.0120.00815.18
7.3.50.0090.00715.06
7.3.40.0100.00815.23
7.3.30.0070.01115.04
7.3.20.0110.00716.09
7.3.10.0090.00816.05
7.3.00.0100.01016.02
7.2.330.0070.01016.52
7.2.320.0040.01416.46
7.2.310.0110.00816.33
7.2.300.0160.00816.76
7.2.290.0210.00616.69
7.2.280.0100.02016.69
7.2.270.0150.01516.36
7.2.260.0190.01116.68
7.2.250.0140.00915.43
7.2.240.0120.01115.43
7.2.230.0100.01115.41
7.2.220.0110.00815.20
7.2.210.0140.00715.42
7.2.200.0140.00715.37
7.2.190.0110.00715.27
7.2.180.0100.01015.28
7.2.170.0080.00915.26
7.2.160.0130.00815.61
7.2.150.0130.00915.85
7.2.140.0110.01115.87
7.2.130.0150.01015.78
7.2.120.0120.01015.72
7.2.110.0090.01115.83
7.2.100.0100.01015.66
7.2.90.0190.00415.83
7.2.80.0160.00615.77
7.2.70.0150.00815.75
7.2.60.0110.00716.56
7.2.50.0230.00516.66
7.2.40.0110.00916.71
7.2.30.0160.01016.61
7.2.20.0090.01216.68
7.2.10.0120.01016.64
7.2.00.0120.00716.66
7.1.330.0100.00615.22
7.1.320.0060.01015.29
7.1.310.0070.01015.30
7.1.300.0090.00615.21
7.1.290.0060.01115.30
7.1.280.0050.00815.22
7.1.270.0100.00815.17
7.1.260.0080.00915.29
7.1.250.0160.00714.69
7.1.240.0170.00914.83
7.1.230.0200.00014.74
7.1.220.0080.01014.71
7.1.210.0030.01714.74
7.1.200.0080.00714.92
7.1.190.0080.01315.46
7.1.180.0120.00715.59
7.1.170.0100.00815.62
7.1.160.0150.00615.52
7.1.150.0130.01015.57
7.1.140.0110.00915.67
7.1.130.0150.00615.76
7.1.120.0130.00715.67
7.1.110.0090.00915.78
7.1.100.0100.00815.69
7.1.90.0160.00415.63
7.1.80.0130.01015.62
7.1.70.0100.00616.07
7.1.60.0120.01116.87
7.1.50.0120.00715.50
7.1.40.0100.00914.71
7.1.30.0080.01014.79
7.1.20.0130.00514.71
7.1.10.0160.00615.61
7.1.00.0090.01717.38
7.0.330.0100.00814.29
7.0.320.0060.01314.36
7.0.310.0120.00914.17
7.0.300.0130.00515.36
7.0.290.0120.00815.29
7.0.280.0110.00815.13
7.0.270.0120.00815.30
7.0.260.0120.00715.34
7.0.250.0100.00715.34
7.0.240.0120.00615.33
7.0.230.0090.01115.16
7.0.220.0090.01115.35
7.0.210.0080.01215.39
7.0.200.0090.00615.77
7.0.190.0110.01214.37
7.0.180.0120.00814.33
7.0.170.0110.00714.26
7.0.160.0120.00614.28
7.0.150.0110.00815.41
7.0.140.0120.02617.58
7.0.130.0120.00714.26
7.0.120.0070.02416.91
7.0.110.0080.03116.98
7.0.100.0070.02116.97
7.0.90.0080.02617.05
7.0.80.0090.02517.00
7.0.70.0130.02116.89
7.0.60.0150.03516.81
7.0.50.0140.02416.84
7.0.40.0090.02716.23
7.0.30.0140.02916.16
7.0.20.0110.02016.21
7.0.10.0080.04116.18
7.0.00.0130.03116.19
5.6.400.0110.01615.18
5.6.390.0120.01015.24
5.6.380.0160.00515.13
5.6.370.0120.00915.15
5.6.360.0110.00914.96
5.6.350.0170.00715.09
5.6.340.0110.01015.11
5.6.330.0100.01015.17
5.6.320.0100.01015.08
5.6.310.0130.01015.23
5.6.300.0100.01315.16
5.6.290.0110.00715.26
5.6.280.0110.02817.00
5.6.270.0070.03117.03
5.6.260.0080.03217.15
5.6.250.0100.03017.09
5.6.240.0110.03016.96
5.6.230.0090.02317.09
5.6.220.0140.02917.01
5.6.210.0080.03216.95
5.6.200.0150.02316.92
5.6.190.0120.03516.86
5.6.180.0140.03116.85
5.6.170.0160.01616.97
5.6.160.0070.02216.95
5.6.150.0070.02216.96
5.6.140.0070.02517.05
5.6.130.0120.02217.05
5.6.120.0110.01916.90
5.6.110.0120.03016.92
5.6.100.0080.01917.01
5.6.90.0080.03216.91
5.6.80.0110.03216.81
5.6.70.0080.03416.81
5.6.60.0120.02416.71
5.6.50.0090.02116.84
5.6.40.0050.02016.58
5.6.30.0090.03516.78
5.6.20.0150.03016.57
5.6.10.0090.01716.83
5.6.00.0140.02416.70
5.5.380.0120.02515.88
5.5.370.0130.02415.79
5.5.360.0110.03315.86
5.5.350.0150.02915.95
5.5.340.0130.02816.01
5.5.330.0130.03515.98
5.5.320.0140.02816.23
5.5.310.0140.03315.89
5.5.300.0100.02316.07
5.5.290.0150.02116.05
5.5.280.0090.03116.09
5.5.270.0110.03516.21
5.5.260.0110.02715.99
5.5.250.0140.02915.92
5.5.240.0090.02115.84
5.5.230.0140.03115.81
5.5.220.0100.01815.79
5.5.210.0140.03015.82
5.5.200.0110.02315.80
5.5.190.0140.02715.72
5.5.180.0120.02415.71
5.5.170.0230.00215.00
5.5.160.0090.01915.85
5.5.150.0110.02915.70
5.5.140.0130.02315.64
5.5.130.0150.02215.86
5.5.120.0160.02215.80
5.5.110.0130.02315.73
5.5.100.0120.03115.76
5.5.90.0110.03215.71
5.5.80.0110.02315.68
5.5.70.0110.02015.79
5.5.60.0090.03615.71
5.5.50.0100.02215.82
5.5.40.0160.01615.68
5.5.30.0140.02415.76
5.5.20.0110.01715.72
5.5.10.0150.02015.77
5.5.00.0060.03515.72
5.4.450.0110.01614.93
5.4.440.0100.03015.02
5.4.430.0110.02814.93
5.4.420.0090.03014.91
5.4.410.0090.01614.96
5.4.400.0090.03114.78
5.4.390.0120.02814.87
5.4.380.0100.02914.79
5.4.370.0120.02414.92
5.4.360.0120.03014.77
5.4.350.0110.02814.79
5.4.340.0070.01814.82
5.4.330.0140.00512.74
5.4.320.0080.02914.81
5.4.310.0080.01814.83
5.4.300.0090.01414.79
5.4.290.0070.01914.79
5.4.280.0140.01314.85
5.4.270.0100.02014.74
5.4.260.0100.03114.79
5.4.250.0110.01814.78
5.4.240.0050.02414.77
5.4.230.0090.02914.82
5.4.220.0100.02914.81
5.4.210.0100.03314.82
5.4.200.0110.02514.94
5.4.190.0090.02914.73
5.4.180.0070.03214.85
5.4.170.0080.01714.82
5.4.160.0120.02514.82
5.4.150.0140.01514.83
5.4.140.0110.02913.95
5.4.130.0120.02613.96
5.4.120.0100.01413.95
5.4.110.0110.02714.00
5.4.100.0070.01813.93
5.4.90.0120.02413.91
5.4.80.0160.02713.90
5.4.70.0090.02713.90
5.4.60.0060.01613.84
5.4.50.0160.02213.89
5.4.40.0130.01313.93
5.4.30.0100.03213.93
5.4.20.0090.02913.97
5.4.10.0110.02713.93
5.4.00.0100.02913.75
5.3.290.0090.01613.46
5.3.280.0090.02013.45
5.3.270.0100.01613.45
5.3.260.0130.02813.47
5.3.250.0090.01613.49
5.3.240.0120.02013.43
5.3.230.0090.03113.41
5.3.220.0070.02513.44
5.3.210.0110.01313.39
5.3.200.0130.01213.42
5.3.190.0110.02913.40
5.3.180.0120.02013.47
5.3.170.0020.03113.53
5.3.160.0110.02713.44
5.3.150.0080.03313.56
5.3.140.0090.02613.44
5.3.130.0120.03113.40
5.3.120.0120.03213.34
5.3.110.0090.01913.45
5.3.100.0070.03013.29
5.3.90.0160.02713.31
5.3.80.0100.02913.19
5.3.70.0090.03013.18
5.3.60.0090.03013.24
5.3.50.0080.02013.19
5.3.40.0090.03213.18
5.3.30.0110.02813.22
5.3.20.0100.01613.16
5.3.10.0070.01913.05
5.3.00.0120.02013.07

preferences:
152.11 ms | 401 KiB | 5 Q