3v4l.org

run code in 300+ PHP versions simultaneously
<?php $y = 99; $current_year = 2017; $current_millenium = floor($current_year / 100)*100; echo $current_millenium;

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.0110.00718.18
8.3.50.0100.00718.18
8.3.40.0170.00318.66
8.3.30.0100.00718.72
8.3.20.0000.00719.16
8.3.10.0070.00021.77
8.3.00.0000.00819.54
8.2.180.0150.00616.38
8.2.170.0120.00322.96
8.2.160.0090.01218.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.55
8.2.120.0040.00426.35
8.2.110.0090.00019.33
8.2.100.0040.00817.91
8.2.90.0040.00419.21
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0000.00718.05
8.2.50.0050.00518.10
8.2.40.0040.00420.72
8.2.30.0000.00819.29
8.2.20.0050.00218.03
8.2.10.0040.00418.21
8.2.00.0030.00618.36
8.1.280.0110.00425.92
8.1.270.0040.00422.19
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0050.00521.42
8.1.230.0080.00419.28
8.1.220.0000.00917.91
8.1.210.0090.00018.77
8.1.200.0060.00317.13
8.1.190.0000.00817.35
8.1.180.0000.00918.10
8.1.170.0030.00618.65
8.1.160.0030.00318.80
8.1.150.0040.00420.13
8.1.140.0030.00519.49
8.1.130.0000.00718.89
8.1.120.0000.00817.45
8.1.110.0030.00517.46
8.1.100.0030.00517.34
8.1.90.0000.00717.34
8.1.80.0000.00717.34
8.1.70.0040.00417.29
8.1.60.0000.00817.60
8.1.50.0000.00817.39
8.1.40.0040.00417.48
8.1.30.0030.00517.53
8.1.20.0050.00317.61
8.1.10.0070.00017.62
8.1.00.0020.00517.40
8.0.300.0070.00020.02
8.0.290.0040.00416.88
8.0.280.0000.00818.50
8.0.270.0000.00717.32
8.0.260.0000.00619.04
8.0.250.0000.00717.03
8.0.240.0070.00316.89
8.0.230.0000.00716.89
8.0.220.0060.00016.95
8.0.210.0000.00716.84
8.0.200.0030.00317.03
8.0.190.0090.00016.94
8.0.180.0040.00416.93
8.0.170.0070.00016.81
8.0.160.0030.00316.75
8.0.150.0030.00516.84
8.0.140.0090.00016.77
8.0.130.0000.00613.32
8.0.120.0040.00416.75
8.0.110.0000.00716.90
8.0.100.0040.00416.79
8.0.90.0050.00316.95
8.0.80.0000.01516.85
8.0.70.0040.00416.85
8.0.60.0040.00416.91
8.0.50.0040.00416.75
8.0.30.0080.01016.96
8.0.20.0110.00817.40
8.0.10.0040.00417.07
8.0.00.0120.00616.72
7.4.330.0000.00515.55
7.4.320.0000.00716.44
7.4.300.0030.00316.48
7.4.290.0070.00016.57
7.4.280.0000.00816.34
7.4.270.0030.00316.50
7.4.260.0060.00316.49
7.4.250.0070.00016.51
7.4.240.0070.00016.42
7.4.230.0030.00316.69
7.4.220.0110.00716.44
7.4.210.0050.01516.53
7.4.200.0030.00516.31
7.4.160.0070.00716.54
7.4.150.0120.00917.40
7.4.140.0080.01417.86
7.4.130.0150.00416.24
7.4.120.0100.01216.48
7.4.110.0060.01216.43
7.4.100.0090.01216.34
7.4.90.0070.01016.61
7.4.80.0120.00619.39
7.4.70.0040.01216.49
7.4.60.0100.00616.42
7.4.50.0140.00416.48
7.4.40.0030.01316.51
7.4.30.0030.01316.50
7.4.00.0110.00414.72
7.3.330.0000.00613.21
7.3.320.0030.00313.25
7.3.310.0030.00316.42
7.3.300.0040.00416.48
7.3.290.0070.00016.20
7.3.280.0100.00816.40
7.3.270.0080.01117.40
7.3.260.0090.01016.43
7.3.240.0120.00416.46
7.3.230.0160.00616.45
7.3.210.0070.01016.54
7.3.200.0130.01016.48
7.3.190.0120.00316.53
7.3.180.0040.01216.48
7.3.170.0100.00716.35
7.3.160.0070.01016.59
7.3.00.0030.00716.75
7.2.330.0110.00916.65
7.2.320.0080.00816.49
7.2.310.0000.01616.47
7.2.300.0140.00316.61
7.2.290.0060.01416.70
7.2.130.0040.00716.90
7.2.120.0090.00416.82
7.2.110.0050.00516.87
7.2.100.0070.00416.52
7.2.90.0030.00616.67
7.2.80.0000.01416.86
7.2.70.0040.01116.63
7.2.60.0050.00716.69
7.2.50.0110.00316.82
7.2.40.0040.00816.80
7.2.30.0090.00316.66
7.2.20.0070.00716.92
7.2.10.0030.00916.62
7.2.00.0000.01318.02
7.1.250.0030.00615.76
7.1.240.0000.01415.92
7.1.230.0060.00615.82
7.1.220.0000.00915.80
7.1.210.0080.00615.72
7.1.200.0020.00715.84
7.1.190.0000.01015.52
7.1.180.0090.00015.80
7.1.170.0030.00615.80
7.1.160.0070.00315.62
7.1.150.0070.00315.66
7.1.140.0040.00815.71
7.1.130.0070.00415.68
7.1.120.0060.00315.72
7.1.110.0040.00415.84
7.1.100.0050.00516.80
7.1.90.0080.00315.82
7.1.80.0030.00616.02
7.1.70.0080.00216.53
7.1.60.0030.00916.57
7.1.50.0380.00724.27
7.1.40.0330.00723.99
7.1.30.0420.01224.15
7.1.20.0680.01324.28
7.1.10.0350.01015.34
7.1.00.0330.01015.21
7.0.330.0000.01215.49
7.0.320.0040.00415.59
7.0.310.0000.01215.54
7.0.300.0070.00715.54
7.0.290.0040.00415.49
7.0.280.0070.00015.42
7.0.270.0030.00915.42
7.0.260.0030.01115.36
7.0.250.0060.00615.44
7.0.240.0030.00615.50
7.0.230.0040.00415.62
7.0.220.0080.00315.27
7.0.210.0030.00915.45
7.0.200.0060.00716.24
7.0.190.0320.00814.91
7.0.180.0250.00815.01
7.0.170.0500.00614.91
7.0.160.0560.00314.89
7.0.150.0480.01014.81
7.0.140.0320.00814.81
7.0.130.0280.00515.06
7.0.120.0250.00815.15
7.0.110.0230.01014.90
7.0.100.0250.00614.94
7.0.90.0230.00814.78
7.0.80.0250.00815.02
7.0.70.0280.00314.83
7.0.60.0250.00614.80
7.0.50.0300.00515.13
7.0.40.0280.00814.14
7.0.30.0300.00614.10
7.0.20.0250.00814.09
7.0.10.0580.00614.11
7.0.00.0310.00713.96
5.6.380.0070.00714.66

preferences:
59.35 ms | 401 KiB | 5 Q