3v4l.org

run code in 300+ PHP versions simultaneously
<?php function tambah_dan_kurang($a=1,$b=2, $tambah = 0, $kurang = 0) { $tambah = $a + $b; $kurang = $b-1; } tambah_dan_kurang(1,2, $tambahx, $kurangx); echo $tambahx; echo $kurangx; ?>

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.0040.01118.40
8.3.60.0090.01218.55
8.3.50.0140.00521.90
8.3.40.0070.00718.56
8.3.30.0140.00019.13
8.3.20.0070.00020.21
8.3.10.0040.00423.48
8.3.00.0040.00419.02
8.2.180.0090.00616.50
8.2.170.0060.01122.96
8.2.160.0120.00820.27
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00420.88
8.2.110.0090.00020.93
8.2.100.0030.00917.91
8.2.90.0040.00417.63
8.2.80.0040.00418.73
8.2.70.0000.00818.03
8.2.60.0030.00617.97
8.2.50.0000.00719.32
8.2.40.0080.00219.26
8.2.30.0000.00719.24
8.2.20.0000.00717.63
8.2.10.0070.00018.06
8.2.00.0050.00317.62
8.1.280.0090.00625.92
8.1.270.0060.00324.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00717.36
8.1.230.0110.00019.48
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.36
8.1.190.0040.00418.88
8.1.180.0000.00718.88
8.1.170.0030.00618.65
8.1.160.0030.00619.06
8.1.150.0050.00218.77
8.1.140.0040.00417.43
8.1.130.0000.00717.81
8.1.120.0080.00017.32
8.1.110.0030.00517.42
8.1.100.0050.00317.36
8.1.90.0090.00017.32
8.1.80.0040.00417.41
8.1.70.0000.00717.32
8.1.60.0000.00817.61
8.1.50.0000.00817.54
8.1.40.0000.00817.53
8.1.30.0030.00517.64
8.1.20.0060.00317.68
8.1.10.0070.00017.55
8.1.00.0000.00717.34
8.0.300.0000.00818.77
8.0.290.0080.00016.72
8.0.280.0080.00018.43
8.0.270.0000.00717.29
8.0.260.0060.00017.30
8.0.250.0030.00516.95
8.0.240.0060.00017.06
8.0.230.0030.00316.95
8.0.220.0070.00016.88
8.0.210.0040.00416.87
8.0.200.0000.00616.91
8.0.190.0040.00416.93
8.0.180.0050.00216.91
8.0.170.0060.00316.92
8.0.160.0030.00516.91
8.0.150.0070.00016.87
8.0.140.0000.00716.76
8.0.130.0060.00013.27
8.0.120.0000.00816.91
8.0.110.0070.00016.88
8.0.100.0040.00416.88
8.0.90.0000.00816.69
8.0.80.0130.00316.92
8.0.70.0000.00816.91
8.0.60.0040.00416.75
8.0.50.0040.00416.77
8.0.30.0100.00617.06
8.0.20.0140.00517.40
8.0.10.0030.00516.81
8.0.00.0080.01016.58
7.4.330.0000.00515.03
7.4.320.0030.00316.59
7.4.300.0070.00016.39
7.4.290.0070.00016.53
7.4.280.0070.00016.41
7.4.270.0030.00316.53
7.4.260.0040.00416.48
7.4.250.0030.00616.57
7.4.240.0040.00316.54
7.4.230.0030.00316.68
7.4.220.0160.01016.60
7.4.210.0120.00316.54
7.4.200.0070.00016.40
7.4.160.0090.00616.43
7.4.150.0130.01317.40
7.4.140.0100.00817.86
7.4.130.0080.01016.52
7.4.120.0060.01216.54
7.4.110.0140.00416.55
7.4.100.0100.01016.39
7.4.90.0120.00616.73
7.4.80.0070.01119.39
7.4.70.0060.01316.69
7.4.60.0130.00316.33
7.4.50.0000.00416.63
7.4.40.0070.01016.46
7.4.30.0060.01016.60
7.4.00.0060.00615.09
7.3.330.0000.00613.32
7.3.320.0050.00013.35
7.3.310.0000.00716.27
7.3.300.0030.00316.23
7.3.290.0040.01116.33
7.3.280.0070.01216.33
7.3.270.0130.00417.40
7.3.260.0130.00316.41
7.3.250.0090.00816.47
7.3.240.0180.00416.52
7.3.230.0160.00616.63
7.3.210.0070.01016.55
7.3.200.0190.00319.39
7.3.190.0000.01516.53
7.3.180.0070.00716.71
7.3.170.0090.00916.50
7.3.160.0100.00716.68
7.2.330.0100.00716.62
7.2.320.0070.01116.63
7.2.310.0100.00716.66
7.2.300.0090.01516.45
7.2.290.0130.01016.59
7.2.00.0000.01118.68
7.1.100.0040.00418.10
7.1.70.0080.01216.79
7.1.60.0070.01319.22
7.1.50.0030.01716.89
7.1.00.0070.07322.41
7.0.200.0060.00616.63
7.0.140.0000.05722.02
7.0.60.0000.04320.00
7.0.50.0100.07017.85
7.0.40.0130.08020.09
7.0.30.0330.07720.24
7.0.20.0130.05320.12
7.0.10.0130.08020.07
7.0.00.0070.05320.23
5.6.280.0000.07720.78
5.6.210.0070.04020.77
5.6.200.0030.08018.27
5.6.190.0030.08020.61
5.6.180.0430.06720.53
5.6.170.0330.07320.45
5.6.160.0070.03720.54
5.6.150.0070.03718.14
5.6.140.0070.05018.18
5.6.130.0100.03718.29
5.6.120.0030.08321.05
5.6.110.0030.04721.00
5.6.100.0000.05321.14
5.6.90.0100.08020.99
5.6.80.0130.05720.38
5.5.350.0170.05020.32
5.5.340.0070.06018.03
5.5.330.0100.07320.28
5.5.320.0470.06020.27
5.5.310.0200.04320.51
5.5.300.0130.07317.93
5.5.290.0030.08017.95
5.5.280.0030.08720.67
5.5.270.0030.09020.88
5.5.260.0130.08320.80
5.5.250.0070.08020.61
5.5.240.0000.08020.37
5.4.450.0570.06719.59
5.4.440.0600.04719.58
5.4.430.0070.05719.47
5.4.420.0470.05319.59
5.4.410.0700.05319.52
5.4.400.0670.04319.30
5.4.390.0970.04718.62
5.4.380.1070.05318.59
5.4.370.1000.06018.84
5.4.360.1000.04318.50
5.4.350.1000.06018.75
5.4.340.0930.05018.59
5.4.320.0930.06018.61
5.4.310.0900.06318.74
5.4.300.0900.05318.78
5.4.290.1230.04318.80
5.4.280.1200.04718.79
5.4.270.1130.05318.71
5.4.260.1000.05718.72
5.4.250.0970.05318.59
5.4.240.0900.05718.78
5.4.230.1000.05318.46
5.4.220.0900.05718.49
5.4.210.1030.04018.77
5.4.200.1070.04716.76
5.4.190.0830.05718.59
5.4.180.0900.05718.51
5.4.170.0030.00018.45
5.4.160.1400.06018.76
5.4.150.1100.05318.76
5.4.140.1000.05716.33
5.4.130.0930.05316.25
5.4.120.1130.05016.29
5.4.110.1100.04716.44
5.4.100.0870.05316.44
5.4.90.1000.04716.29
5.4.80.1070.04316.26
5.4.70.1170.05016.18
5.4.60.1230.04316.41
5.4.50.1230.04316.19
5.4.40.1230.07016.31
5.4.30.1100.06316.41
5.4.20.1170.04716.22
5.4.10.1300.05016.40
5.4.00.1130.04715.75
5.3.290.1270.06314.78
5.3.280.1230.06714.69
5.3.270.1070.07314.72
5.3.260.1100.06014.81
5.3.250.1130.04714.71
5.3.240.1230.05314.77
5.3.230.1130.05714.73
5.3.220.1370.05014.61
5.3.210.1130.06014.61
5.3.200.1230.05014.67
5.3.190.1170.04714.61
5.3.180.1130.05014.73
5.3.170.1130.05014.66
5.3.160.1130.05714.56
5.3.150.1070.05014.54
5.3.140.1100.05314.71
5.3.130.1130.06314.57
5.3.120.1070.06014.53
5.3.110.1030.06714.76
5.3.100.1070.05314.02
5.3.90.1100.05014.06
5.3.80.1030.06014.24
5.3.70.1130.05714.14
5.3.60.1000.06014.13
5.3.50.1070.05314.04
5.3.40.1070.05314.05
5.3.30.1170.04313.93
5.3.20.1170.04713.73
5.3.10.1430.06013.70
5.3.00.1370.06013.62
5.2.170.1130.05711.09
5.2.160.0330.04711.25
5.2.150.0030.05711.15
5.2.140.0100.05311.36
5.2.130.0030.05711.18
5.2.120.0630.06011.21
5.2.110.0970.05311.13
5.2.100.1070.03711.14
5.2.90.0970.04011.32
5.2.80.1070.04011.13
5.2.70.1070.04711.13
5.2.60.1000.04311.27
5.2.50.0870.05711.14
5.2.40.0870.03011.01
5.2.30.0700.05311.06
5.2.20.0800.04011.05
5.2.10.0870.03311.08
5.2.00.0870.03310.74
5.1.60.0900.04010.09
5.1.50.0730.0379.98
5.1.40.0800.03010.09
5.1.30.0730.03710.44
5.1.20.0700.04010.44
5.1.10.0730.03710.19
5.1.00.0800.03010.14
5.0.50.0330.0308.68
5.0.40.0400.0308.46
5.0.30.0370.0508.25
5.0.20.0400.0338.22
5.0.10.0370.0278.20
5.0.00.0400.0478.30
4.4.90.0470.0235.88
4.4.80.0300.0235.89
4.4.70.0370.0205.86
4.4.60.0400.0135.97
4.4.50.0270.0235.97
4.4.40.0270.0375.88
4.4.30.0330.0175.90
4.4.20.0430.0305.92
4.4.10.0500.0235.93
4.4.00.0270.0405.95
4.3.110.0300.0235.88
4.3.100.0330.0175.86
4.3.90.0330.0205.92
4.3.80.0300.0375.78
4.3.70.0330.0205.82
4.3.60.0370.0275.82
4.3.50.0370.0275.83
4.3.40.0270.0375.84
4.3.30.0200.0174.95
4.3.20.0170.0204.95
4.3.10.0100.0274.95
4.3.00.0130.0207.22

preferences:
54.75 ms | 401 KiB | 5 Q