3v4l.org

run code in 300+ PHP versions simultaneously
<?php function perkalian($x,$y) { $total = $x * $y; echo “Hasil dari perkalian $x dengan $ y adalah ” . $total; } $var1 = 2; $var2 = 4; printNilai($var1,$var2); ?>

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)
7.0.30.0330.06720.16
7.0.20.0370.07320.30
7.0.10.0070.08020.08
7.0.00.0070.08720.07
5.6.180.0270.06320.46
5.6.170.0270.03720.58
5.6.160.0100.05020.61
5.6.150.0100.08018.18
5.6.140.0100.07318.23
5.6.130.0030.04318.26
5.6.120.0100.04321.01
5.6.110.0100.05021.14
5.6.100.0070.07321.08
5.6.90.0070.04721.07
5.6.80.0200.06320.51
5.5.320.3430.04320.27
5.5.310.0270.04020.27
5.5.300.0070.06718.00
5.5.290.0070.07017.96
5.5.280.0000.04720.77
5.5.270.0030.05320.79
5.5.260.0030.04320.90
5.5.250.0130.06720.62
5.5.240.0000.05320.19
5.4.450.0480.06019.25
5.4.440.0420.05719.54
5.4.430.0470.05519.49
5.4.420.0470.05219.42
5.4.410.0450.06219.41
5.4.400.0480.05719.17
5.4.390.0570.05219.03
5.4.380.0450.06518.98
5.4.370.0430.04719.03
5.4.360.0380.05318.92
5.4.350.0250.05518.85
5.4.340.0230.05319.05
5.4.320.0110.04315.85
5.4.310.0180.04215.89
5.4.300.0100.04515.87
5.4.290.0140.04615.91
5.4.280.0160.03715.63
5.4.270.0090.04715.81
5.4.260.0090.04915.63
5.4.250.0130.05015.81
5.4.240.0120.04515.81
5.4.230.0170.04115.80
5.4.220.0160.05915.85
5.4.210.0050.04815.79
5.4.200.0090.04715.63
5.4.190.0100.04415.85
5.4.180.0100.04715.80
5.4.170.0160.04614.67
5.4.160.0190.04314.63
5.4.150.0110.05114.65
5.4.140.0140.04613.54
5.4.130.0180.04413.45
5.4.120.0180.04313.48
5.4.110.0160.05013.52
5.4.100.0160.04513.53
5.4.90.0140.04513.51
5.4.80.0150.04313.50
5.4.70.0120.04713.50
5.4.60.0260.04613.52
5.4.50.0220.05113.48
5.4.40.0130.04513.41
5.4.30.0160.04413.54
5.4.20.0100.04613.43
5.4.10.0150.04313.47
5.4.00.0120.04412.97
5.3.290.0120.04513.65
5.3.280.0120.05013.69
5.3.270.0130.05013.35
5.3.260.0180.04613.40
5.3.250.0170.05613.36
5.3.240.0180.04613.34
5.3.230.0160.04713.35
5.3.220.0160.04613.33
5.3.210.0160.04813.30
5.3.200.0200.05313.31
5.3.190.0240.05213.33
5.3.180.0160.04613.31
5.3.170.0140.04513.29
5.3.160.0230.05913.31
5.3.150.0180.04513.29
5.3.140.0130.04913.28
5.3.130.0120.04913.23
5.3.120.0220.04713.29
5.3.110.0180.04413.29
5.3.100.0170.05312.75
5.3.90.0200.04412.72
5.3.80.0140.04512.71
5.3.70.0130.04712.71
5.3.60.0110.05812.70
5.3.50.0140.04512.65
5.3.40.0210.04812.71
5.3.30.0130.04512.61
5.3.20.0160.05112.46
5.3.10.0220.04212.37
5.3.00.0240.04412.34

preferences:
137.77 ms | 1394 KiB | 7 Q