3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Number = "11.34"; $Rounded = round($Number); $Result =($Rounded/2); is_int ($Result) ? $Solution = "is even" : $Solution = "is not even"; echo $Rounded . " divided by 2 equals " . $Result . " therefore " . $Number ." " . $Solution; ?>

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.0100.01018.10
8.3.50.0110.00921.99
8.3.40.0100.00718.84
8.3.30.0160.00320.34
8.3.20.0070.01020.19
8.3.10.0070.01122.17
8.3.00.0090.00922.49
8.2.180.0030.01216.38
8.2.170.0030.01022.96
8.2.160.0100.00320.52
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0110.00719.62
8.2.110.0060.00322.38
8.2.100.0060.00619.28
8.2.90.0070.00019.17
8.2.80.0050.00219.34
8.2.70.0030.00517.75
8.2.60.0040.00418.03
8.2.50.0030.00618.07
8.2.40.0060.00318.16
8.2.30.0000.00717.99
8.2.20.0040.00417.66
8.2.10.0060.00317.79
8.2.00.0070.00017.68
8.1.280.0080.00625.92
8.1.270.0040.01824.66
8.1.260.0180.00026.35
8.1.250.0100.00728.09
8.1.240.0060.00323.96
8.1.230.0080.00319.09
8.1.220.0000.00817.78
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0000.00817.43
8.1.180.0000.00819.54
8.1.170.0080.00018.64
8.1.160.0040.00422.25
8.1.150.0040.00418.63
8.1.140.0000.00817.50
8.1.130.0030.00317.84
8.1.120.0040.00417.52
8.1.110.0000.00817.40
8.1.100.0000.00717.50
8.1.90.0000.00817.55
8.1.80.0030.00317.52
8.1.70.0000.00817.50
8.1.60.0050.00317.66
8.1.50.0000.00917.61
8.1.40.0050.00217.42
8.1.30.0000.00717.68
8.1.20.0040.00417.64
8.1.10.0050.00317.49
8.1.00.0080.00317.50
8.0.300.0040.00418.77
8.0.290.0070.00017.18
8.0.280.0080.00018.56
8.0.270.0030.00317.39
8.0.260.0030.00316.88
8.0.250.0060.00016.92
8.0.240.0080.00016.93
8.0.230.0030.00317.00
8.0.220.0000.00716.92
8.0.210.0070.00016.97
8.0.200.0030.00316.90
8.0.190.0070.00017.05
8.0.180.0000.00816.88
8.0.170.0050.00316.88
8.0.160.0040.00416.96
8.0.150.0040.00416.86
8.0.140.0040.00416.75
8.0.130.0000.00613.34
8.0.120.0030.00616.82
8.0.110.0000.00716.93
8.0.100.0040.00416.94
8.0.90.0070.00016.91
8.0.80.0040.01116.95
8.0.70.0070.00016.98
8.0.60.0000.00817.01
8.0.50.0070.00016.83
8.0.30.0090.00917.15
8.0.20.0110.00917.40
8.0.10.0000.00717.04
8.0.00.0100.00816.75
7.4.330.0050.00015.14
7.4.320.0030.00316.53
7.4.300.0000.00616.64
7.4.290.0000.00716.50
7.4.280.0030.00316.63
7.4.270.0000.00716.68
7.4.260.0030.00316.59
7.4.250.0020.00516.63
7.4.240.0030.00316.62
7.4.230.0070.00016.54
7.4.220.0000.01716.55
7.4.210.0070.00716.58
7.4.200.0040.00416.50
7.4.190.0000.00716.67
7.4.160.0080.00816.52
7.4.150.0060.01017.40
7.4.140.0110.01117.86
7.4.130.0170.00516.45
7.4.120.0100.00816.64
7.4.110.0090.00916.49
7.4.100.0170.00016.59
7.4.90.0110.00916.45
7.4.80.0070.01019.39
7.4.70.0100.00716.49
7.4.60.0100.00616.42
7.4.50.0050.00316.22
7.4.40.0030.01322.77
7.4.30.0090.00916.39
7.4.00.0030.01015.05
7.3.330.0000.00513.18
7.3.320.0000.00513.22
7.3.310.0000.00716.43
7.3.300.0030.00316.44
7.3.290.0070.01116.33
7.3.280.0110.00516.40
7.3.270.0000.01717.40
7.3.260.0030.01416.51
7.3.250.0120.00416.52
7.3.240.0090.00916.39
7.3.230.0070.01316.47
7.3.210.0100.00616.64
7.3.200.0100.00719.39
7.3.190.0130.00316.49
7.3.180.0130.00316.34
7.3.170.0080.00816.39
7.3.160.0140.00316.45
7.3.120.0140.00414.99
7.3.110.0160.00014.94
7.3.100.0080.00714.78
7.3.90.0070.00714.65
7.3.80.0070.01014.76
7.3.70.0030.01014.84
7.3.60.0150.00014.77
7.3.50.0110.00314.85
7.3.40.0100.00714.72
7.3.30.0040.01114.51
7.3.20.0040.01416.40
7.3.10.0060.00316.73
7.3.00.0070.01016.44
7.2.330.0080.01616.57
7.2.320.0030.01716.85
7.2.310.0100.00716.84
7.2.300.0100.00616.59
7.2.290.0100.00616.88
7.2.240.0030.00714.92
7.2.230.0060.00914.56
7.2.220.0070.01114.67
7.2.210.0100.00715.00
7.2.200.0070.00714.98
7.2.190.0030.01414.60
7.2.180.0000.01714.80
7.2.170.0000.01315.01
7.2.160.0130.00315.13
7.2.150.0060.00916.89
7.2.140.0100.00716.89
7.2.130.0040.01416.95
7.2.120.0060.01216.60
7.2.110.0130.00316.66
7.2.100.0100.00317.00
7.2.90.0050.00516.68
7.2.80.0070.01016.95
7.2.70.0090.00616.91
7.2.60.0030.00616.90
7.2.50.0070.00817.00
7.2.40.0130.00316.93
7.2.30.0030.00816.82
7.2.20.0120.00616.83
7.2.10.0150.00016.95
7.2.00.0060.00818.33
7.1.330.0040.00715.77
7.1.320.0100.00315.76
7.1.310.0060.00315.46
7.1.300.0070.00415.77
7.1.290.0040.01115.50
7.1.280.0030.00915.21
7.1.270.0070.00715.51
7.1.260.0040.01115.74
7.1.250.0000.01115.73
7.1.100.0090.00918.10
7.1.70.0000.01517.29
7.1.60.0140.00719.43
7.1.50.0100.01016.86
7.1.00.0000.03722.30
7.0.200.0000.00816.89
7.0.140.0000.07721.96
7.0.60.0130.07319.97
7.0.50.0100.09017.68
7.0.40.0070.04720.27
7.0.30.0500.07320.00
7.0.20.0230.04020.18
7.0.10.0030.09020.09
7.0.00.0100.09019.99
5.6.280.0130.06321.11
5.6.210.0030.08020.47
5.6.200.0030.04318.21
5.6.190.0100.05720.35
5.6.180.0330.07320.41
5.6.170.0200.06320.33
5.6.160.0070.05020.70
5.6.150.0130.07018.18
5.6.140.0100.03718.08
5.6.130.0070.08718.06
5.6.120.0070.08321.09
5.6.110.0130.07021.10
5.6.100.0070.08321.11
5.6.90.0130.07021.07
5.6.80.0030.08320.53
5.5.350.0300.07020.44
5.5.340.0030.04317.89
5.5.330.0100.05720.06
5.5.320.0500.07020.29
5.5.310.0300.07320.29
5.5.300.0030.04018.01
5.5.290.0030.07018.02
5.5.280.0030.08720.97
5.5.270.0030.08020.75
5.5.260.0070.08320.95
5.5.250.0070.06320.60
5.5.240.0270.06320.25
5.4.450.0970.07019.55
5.4.440.0530.03319.14
5.4.430.0900.03719.42
5.4.420.0900.04319.21
5.4.410.0670.03319.29
5.4.400.0170.04319.09
5.4.390.0400.04019.09
5.4.380.1070.04718.65
5.4.370.1130.05718.74
5.4.360.1030.05318.74
5.4.350.0870.05718.53
5.4.340.0870.06018.70
5.4.320.0110.03112.46
5.4.310.0060.04312.45
5.4.300.0060.03812.46
5.4.290.0050.03812.45
5.4.280.0070.03412.35
5.4.270.0040.03812.35
5.4.260.0080.03512.35
5.4.250.0130.07318.82
5.4.240.0000.05719.02
5.4.230.0000.05718.75
5.4.220.0130.04718.77
5.4.210.0130.04319.03
5.4.200.0130.06718.79
5.4.190.0130.04718.94
5.4.180.0070.05318.94
5.4.170.0100.05718.94
5.4.160.0030.07018.89
5.4.150.0130.04718.77
5.4.140.0070.05716.45
5.4.130.0070.05016.48
5.4.120.0030.05316.40
5.4.110.0100.05016.31
5.4.100.0170.05016.49
5.4.90.0070.04716.35
5.4.80.0070.05316.46
5.4.70.0100.05016.44
5.4.60.0100.05316.40
5.4.50.0100.04316.30
5.4.40.0070.05016.43
5.4.30.0130.04016.50
5.4.20.0000.06016.25
5.4.10.0200.04316.32
5.4.00.0170.04015.90
5.3.290.0090.04212.80
5.3.280.0070.05014.63
5.3.270.0070.05014.48
5.3.260.0070.05314.68
5.3.250.0030.05314.51
5.3.240.0030.05314.68
5.3.230.0130.07014.60
5.3.220.0100.07014.72
5.3.210.0070.07314.65
5.3.200.0170.04014.64
5.3.190.0070.05714.63
5.3.180.0100.07014.45
5.3.170.0130.04314.41
5.3.160.0070.04714.71
5.3.150.0100.07014.32
5.3.140.0130.06314.61
5.3.130.0030.08314.45
5.3.120.0100.05014.45
5.3.110.0030.06014.62
5.3.100.0070.05013.80
5.3.90.0100.07014.17
5.3.80.0070.04713.88
5.3.70.0100.04714.16
5.3.60.0030.06713.84
5.3.50.0000.05713.96
5.3.40.0200.03714.04
5.3.30.0130.04313.83
5.3.20.0130.05313.53
5.3.10.0070.05713.34
5.3.00.0070.04713.47
5.2.170.0000.04311.34
5.2.160.0070.03711.18
5.2.150.0030.04311.34
5.2.140.0030.06311.23
5.2.130.0000.04711.23
5.2.120.0070.04011.33
5.2.110.0030.04011.29
5.2.100.0100.03711.44
5.2.90.0070.03711.07
5.2.80.0030.05011.21
5.2.70.0000.04711.27
5.2.60.0030.04011.28
5.2.50.0030.04011.21
5.2.40.0000.04311.11
5.2.30.0100.04011.10
5.2.20.0000.04011.02
5.2.10.0100.03310.93
5.2.00.0030.04310.86
5.1.60.0200.03310.30
5.1.50.0100.03010.30
5.1.40.0070.03010.18
5.1.30.0070.03310.73
5.1.20.0000.03710.52
5.1.10.0100.03010.08
5.1.00.0030.03310.25
5.0.50.0000.0308.79
5.0.40.0100.0308.48
5.0.30.0000.0438.54
5.0.20.0070.0238.20
5.0.10.0030.0278.24
5.0.00.0100.0378.23
4.4.90.0100.0177.26
4.4.80.0070.0177.26
4.4.70.0000.0277.26
4.4.60.0000.0307.26
4.4.50.0030.0207.26
4.4.40.0070.0307.26
4.4.30.0070.0177.26
4.4.20.0100.0137.26
4.4.10.0000.0237.26
4.4.00.0100.0237.26
4.3.110.0030.0207.26
4.3.100.0030.0207.26
4.3.90.0070.0177.26
4.3.80.0100.0237.26
4.3.70.0000.0237.26
4.3.60.0070.0177.26
4.3.50.0000.0237.26
4.3.40.0000.0377.26
4.3.30.0030.0207.26
4.3.20.0000.0237.26
4.3.10.0000.0237.26
4.3.00.0070.01714.48

preferences:
44.05 ms | 401 KiB | 5 Q