3v4l.org

run code in 300+ PHP versions simultaneously
<?php function display_artistika($int = 100) { for ($i = 0; $i <= $int; $i++) { if (three_and_five($i)) { echo "Inti"; }elseif (three($i) || five($i)) { echo "".three() ? 'Artistika' : 'Solusitama' .""; }else { echo $i; } } } function three_and_five($int) { return three($int) && five($int); } function three($int) { return ($int % 3) == 0; } function five($int) { return ($int % 5) == 0; } display_artistika(); function deret($int) { for ($i = 0; $i <= $int; $i++) { for ($j = 0; $j <= $i; $j++) { echo $j; } echo "\n"; } } deret(6); $a = [ "Inti" , "Artistika", "Solusitama"]; foreach ($a as $str) { echo $str; } function calculate_square($height=0, $width=0) { $f = fopen( 'php://stdin', 'r' ); echo "Tinggi :"; $height = (Int) fread(); echo "n"; echo "Lebar :"; $width = (Int) fread(); echo $height * $width; }

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.01216.63
8.3.50.0110.00821.98
8.3.40.0090.00618.87
8.3.30.0070.00718.70
8.3.20.0080.00020.13
8.3.10.0040.00423.63
8.3.00.0040.00419.38
8.2.180.0120.00317.00
8.2.170.0000.01422.96
8.2.160.0030.01020.58
8.2.150.0060.00324.18
8.2.140.0020.00524.66
8.2.130.0000.01017.63
8.2.120.0040.00426.35
8.2.110.0000.00922.31
8.2.100.0060.00617.93
8.2.90.0050.00319.26
8.2.80.0000.00817.97
8.2.70.0080.00017.74
8.2.60.0050.00517.93
8.2.50.0060.00318.07
8.2.40.0000.00819.34
8.2.30.0030.00320.64
8.2.20.0060.00317.79
8.2.10.0040.00418.04
8.2.00.0000.00718.01
8.1.280.0090.00925.92
8.1.270.0100.00623.99
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0070.01522.48
8.1.230.0070.00417.79
8.1.220.0030.00517.79
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0000.00818.64
8.1.160.0040.00422.03
8.1.150.0040.00418.97
8.1.140.0030.00519.59
8.1.130.0000.00717.65
8.1.120.0030.00517.56
8.1.110.0000.00717.36
8.1.100.0000.00717.49
8.1.90.0080.00017.50
8.1.80.0030.00517.38
8.1.70.0000.00817.34
8.1.60.0060.00317.66
8.1.50.0040.00417.43
8.1.40.0030.00917.53
8.1.30.0000.00917.66
8.1.20.0040.00417.63
8.1.10.0040.00417.62
8.1.00.0040.00417.36
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0030.00318.46
8.0.270.0030.00317.19
8.0.260.0030.00317.27
8.0.250.0030.00316.93
8.0.240.0070.00017.02
8.0.230.0000.00817.05
8.0.220.0070.00316.95
8.0.210.0000.00716.96
8.0.200.0070.00017.09
8.0.190.0060.00317.05
8.0.180.0020.00516.90
8.0.170.0040.00417.02
8.0.160.0030.00316.98
8.0.150.0080.00016.87
8.0.140.0040.00416.96
8.0.130.0060.00013.41
8.0.120.0000.00916.90
8.0.110.0000.00717.00
8.0.100.0040.00417.04
8.0.90.0000.00716.88
8.0.80.0090.00616.93
8.0.70.0040.00416.95
8.0.60.0040.00416.93
8.0.50.0000.00716.81
8.0.30.0100.01016.90
8.0.20.0120.00717.40
8.0.10.0050.00316.96
8.0.00.0070.01316.77
7.4.330.0000.00516.78
7.4.320.0040.00416.52
7.4.300.0080.00016.66
7.4.290.0000.00816.52
7.4.280.0040.00416.61
7.4.270.0050.00316.59
7.4.260.0000.00716.57
7.4.250.0040.00416.58
7.4.240.0030.00416.59
7.4.230.0030.00316.73
7.4.220.0140.00416.53
7.4.210.0120.00316.69
7.4.200.0040.00416.61
7.4.160.0120.00316.50
7.4.150.0090.00917.40
7.4.140.0140.01017.86
7.4.130.0030.01716.59
7.4.120.0100.00916.62
7.4.110.0080.01216.57
7.4.100.0100.01616.36
7.4.90.0110.00616.38
7.4.80.0150.00619.39
7.4.70.0060.01516.64
7.4.60.0070.01016.54
7.4.50.0120.00016.61
7.4.40.0100.00716.51
7.4.30.0160.00616.52
7.4.00.0070.00715.15
7.3.330.0070.00013.26
7.3.320.0000.00513.26
7.3.310.0040.00416.45
7.3.300.0070.00016.40
7.3.290.0030.00316.39
7.3.280.0110.00516.38
7.3.270.0090.00917.40
7.3.260.0170.00016.70
7.3.250.0120.00716.54
7.3.240.0090.01116.44
7.3.230.0030.01316.76
7.3.210.0100.00716.28
7.3.200.0140.00716.58
7.3.190.0030.01316.56
7.3.180.0080.00816.51
7.3.170.0170.00016.65
7.3.160.0130.00816.75
7.3.10.0030.01216.42
7.3.00.0000.01416.75
7.2.330.0040.01616.76
7.2.320.0120.01016.71
7.2.310.0070.01316.71
7.2.300.0080.00916.60
7.2.290.0060.01116.65
7.2.130.0070.00716.68
7.2.120.0140.00516.77
7.2.110.0110.00316.90
7.2.100.0080.00816.94
7.2.90.0080.00316.82
7.2.80.0110.00416.56
7.2.70.0000.01216.43
7.2.60.0050.00716.92
7.2.50.0080.00616.77
7.2.40.0040.00716.93
7.2.30.0120.00916.61
7.2.20.0070.00716.73
7.2.10.0060.00616.86
7.2.00.0050.01118.08
7.1.250.0060.01015.54
7.1.200.0070.00715.87
7.1.100.0070.00418.03
7.1.70.0060.00617.18
7.1.60.0120.00319.36
7.1.50.0090.00316.76
7.1.00.0100.07022.33
7.0.200.0030.00716.73
7.0.60.0070.04320.04
7.0.50.0100.07317.90
7.0.40.0100.08320.23
7.0.30.0470.07020.24
7.0.20.0300.07320.24
7.0.10.0130.06320.10
7.0.00.0030.05720.20
5.6.280.0070.04020.79
5.6.210.0030.05020.57
5.6.200.0000.07318.30
5.6.190.0130.05720.67
5.6.180.0270.05320.47
5.6.170.0270.07320.45
5.6.160.0000.06720.59
5.6.150.0100.07318.34
5.6.140.0130.08018.19
5.6.130.0030.06318.27
5.6.120.0070.07721.15
5.6.110.0070.03721.14
5.6.100.0000.06020.97
5.6.90.0100.07321.02
5.6.80.0100.04720.52
5.5.350.4130.04720.35
5.5.340.0230.04717.98
5.5.330.0100.07720.19
5.5.320.0030.05320.40
5.5.310.0330.07020.30
5.5.300.0070.08318.08
5.5.290.0030.04717.98
5.5.280.0130.07020.89
5.5.270.0100.08020.85
5.5.260.0030.08720.88
5.5.250.0070.06320.63
5.5.240.0170.04020.27

preferences:
48.38 ms | 401 KiB | 5 Q