3v4l.org

run code in 300+ PHP versions simultaneously
<?php $y = 99; $current_year = 2017; $current_millenium = floor($current_year / 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.0150.00318.18
8.3.50.0100.00718.05
8.3.40.0130.00718.72
8.3.30.0100.00318.63
8.3.20.0040.00419.33
8.3.10.0040.00421.85
8.3.00.0050.00319.68
8.2.180.0140.00716.63
8.2.170.0060.00922.96
8.2.160.0200.00018.90
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00720.66
8.2.120.0050.00326.35
8.2.110.0070.00322.39
8.2.100.0070.00417.84
8.2.90.0060.00319.20
8.2.80.0000.00817.97
8.2.70.0030.00517.63
8.2.60.0030.00517.93
8.2.50.0130.00018.10
8.2.40.0060.00320.78
8.2.30.0000.00819.19
8.2.20.0070.00018.04
8.2.10.0050.00318.24
8.2.00.0050.00318.42
8.1.280.0110.00425.92
8.1.270.0040.00422.27
8.1.260.0030.00526.35
8.1.250.0020.00528.09
8.1.240.0030.00621.43
8.1.230.0090.00319.23
8.1.220.0000.00817.91
8.1.210.0000.01018.77
8.1.200.0060.00317.36
8.1.190.0030.00517.35
8.1.180.0000.00818.10
8.1.170.0000.00818.48
8.1.160.0030.00418.89
8.1.150.0000.00720.13
8.1.140.0050.00319.45
8.1.130.0030.00318.90
8.1.120.0070.00017.47
8.1.110.0070.00017.49
8.1.100.0030.00517.47
8.1.90.0000.00717.47
8.1.80.0000.00817.46
8.1.70.0030.00517.40
8.1.60.0040.00417.58
8.1.50.0070.00017.52
8.1.40.0050.00317.54
8.1.30.0030.00617.50
8.1.20.0030.00517.66
8.1.10.0040.00417.50
8.1.00.0040.00417.50
8.0.300.0080.00020.02
8.0.290.0000.00816.75
8.0.280.0030.00318.51
8.0.270.0000.00817.27
8.0.260.0060.00018.98
8.0.250.0040.00417.04
8.0.240.0060.00317.06
8.0.230.0070.00016.97
8.0.220.0030.00316.91
8.0.210.0000.00716.82
8.0.200.0000.00816.88
8.0.190.0000.00717.01
8.0.180.0040.00416.92
8.0.170.0000.00716.81
8.0.160.0040.00416.90
8.0.150.0000.00816.84
8.0.140.0070.00416.92
8.0.130.0030.00313.38
8.0.120.0050.00216.91
8.0.110.0050.00216.77
8.0.100.0050.00216.85
8.0.90.0040.00416.88
8.0.80.0090.00616.88
8.0.70.0000.00816.74
8.0.60.0040.00416.86
8.0.50.0000.00716.84
8.0.30.0130.00717.07
8.0.20.0120.00617.40
8.0.10.0000.00716.87
8.0.00.0120.00616.98
7.4.330.0000.00515.55
7.4.320.0030.00316.64
7.4.300.0060.00016.50
7.4.290.0000.00716.59
7.4.280.0070.00016.61
7.4.270.0030.00316.61
7.4.260.0000.00716.60
7.4.250.0030.00316.46
7.4.240.0030.00516.50
7.4.230.0030.00316.43
7.4.220.0120.00616.55
7.4.210.0050.01016.43
7.4.200.0030.00316.71
7.4.160.0070.00916.44
7.4.150.0060.01117.40
7.4.140.0080.01417.86
7.4.130.0150.00416.46
7.4.120.0080.01116.47
7.4.110.0180.00016.67
7.4.100.0100.00716.44
7.4.90.0040.01316.58
7.4.80.0060.01119.39
7.4.70.0110.00916.44
7.4.60.0090.00616.46
7.4.50.0070.00716.52
7.4.40.0060.01016.63
7.4.30.0110.00516.58
7.4.00.0070.00914.98
7.3.330.0000.00513.18
7.3.320.0030.00313.08
7.3.310.0000.00716.26
7.3.300.0000.00716.36
7.3.290.0070.00016.19
7.3.280.0080.00816.30
7.3.270.0150.00917.40
7.3.260.0130.00716.31
7.3.240.0060.01116.47
7.3.230.0000.01716.28
7.3.210.0100.00716.55
7.3.200.0060.00916.35
7.3.190.0040.01716.39
7.3.180.0070.00716.35
7.3.170.0050.01016.27
7.3.160.0140.00316.58
7.3.120.0120.00314.88
7.3.110.0100.00714.96
7.3.100.0090.00614.66
7.3.90.0070.01114.78
7.3.80.0070.01014.73
7.3.70.0100.00614.82
7.3.60.0080.00414.66
7.3.50.0070.01014.74
7.3.40.0090.00614.91
7.3.30.0060.01314.65
7.3.20.0040.01216.70
7.3.10.0060.01116.60
7.3.00.0080.00716.46
7.2.330.0110.00716.28
7.2.320.0100.00616.75
7.2.310.0030.01316.54
7.2.300.0040.01816.50
7.2.290.0090.01016.61
7.2.250.0070.01114.71
7.2.240.0100.00314.90
7.2.230.0030.00714.80
7.2.220.0060.01314.95
7.2.210.0030.01414.86
7.2.200.0040.01114.83
7.2.190.0090.00614.96
7.2.180.0090.00614.97
7.2.170.0090.00614.83
7.2.130.0060.00616.82
7.2.120.0070.00316.71
7.2.110.0000.01216.94
7.2.100.0090.00616.57
7.2.90.0070.00316.74
7.2.80.0040.00416.57
7.2.70.0130.00017.02
7.2.60.0030.01116.69
7.2.50.0070.00717.00
7.2.40.0030.01116.53
7.2.30.0060.00617.06
7.2.20.0040.01116.72
7.2.10.0040.00816.97
7.2.00.0030.00716.53
7.1.330.0060.00815.61
7.1.320.0040.01115.75
7.1.310.0030.01616.00
7.1.300.0060.00915.75
7.1.290.0040.00815.95
7.1.280.0060.01215.88
7.1.270.0070.00715.58
7.1.260.0030.01515.75
7.1.250.0000.01215.94
7.1.200.0060.00915.54
7.1.70.0030.00517.16
7.1.60.0080.00317.30
7.1.50.0700.00732.63
7.1.40.0600.01032.22
7.1.30.0970.01732.59
7.1.20.0570.01332.87
7.1.10.0600.01314.69
7.1.00.0430.01314.83
7.0.200.0000.01516.81
7.0.190.0530.00714.71
7.0.180.0470.00714.28
7.0.170.0570.00714.32
7.0.160.0570.00714.23
7.0.150.0530.01014.43
7.0.140.0470.00714.50
7.0.130.0470.00714.62
7.0.120.0400.01014.64
7.0.110.0500.00314.43
7.0.100.0500.00314.33
7.0.90.0470.00314.43
7.0.80.0400.01314.39
7.0.70.0570.01314.33
7.0.60.0470.01014.39
7.0.50.0430.00714.53
7.0.40.0470.01014.55
7.0.30.0470.00714.54
7.0.20.0500.00714.70
7.0.10.1270.01014.70
7.0.00.0570.01014.58

preferences:
62.33 ms | 400 KiB | 5 Q