3v4l.org

run code in 300+ PHP versions simultaneously
<?php $seconds = 2; $h = $seconds / 3600 % 24; $m = $seconds / 60 % 60; $s = $seconds % 60; $output = array(); if ($w >= 1) $output[] = "{$w} ".($w == 1 ? i18n::get('week') : i18n::get('weeks')); if ($d >= 1) $output[] = "{$d} ".($d == 1 ? i18n::get('day') : i18n::get('days')); if ($h >= 1) $output[] = "{$h} ".($h == 1 ? i18n::get('hour') : i18n::get('hours')); if ($m >= 1) $output[] = "{$m} ".($m == 1 ? i18n::get('minute') : i18n::get('minutes')); if ($s >= 1) $output[] = "{$s} ".($s == 1 ? i18n::get('second') : i18n::get('seconds')); echo implode(', ', $output);

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.40.0150.00018.68
8.3.30.0160.00318.72
8.3.20.0080.00018.91
8.3.10.0030.00621.17
8.3.00.0050.00323.53
8.2.170.0090.00622.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0140.00020.94
8.2.110.0000.00922.30
8.2.100.0060.00617.91
8.2.90.0050.00319.22
8.2.80.0080.00018.05
8.2.70.0040.00417.63
8.2.60.0050.00317.93
8.2.50.0080.00018.07
8.2.40.0040.00418.19
8.2.30.0000.00719.36
8.2.20.0000.00817.75
8.2.10.0070.00017.81
8.2.00.0000.00817.73
8.1.270.0000.00823.99
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0080.00420.68
8.1.230.0030.00721.10
8.1.220.0040.00418.77
8.1.210.0030.00519.03
8.1.200.0100.00017.35
8.1.190.0040.00417.63
8.1.180.0030.00518.10
8.1.170.0080.00018.79
8.1.160.0040.00418.79
8.1.150.0030.00518.72
8.1.140.0040.00417.46
8.1.130.0000.00717.85
8.1.120.0040.00417.45
8.1.110.0040.00417.46
8.1.100.0040.00417.55
8.1.90.0070.00017.31
8.1.80.0040.00417.41
8.1.70.0070.00017.38
8.1.60.0050.00517.59
8.1.50.0050.00317.53
8.1.40.0000.00817.52
8.1.30.0000.00817.58
8.1.20.0040.00417.66
8.1.10.0050.00317.63
8.1.00.0040.00417.50
8.0.300.0040.00419.82
8.0.290.0030.00617.18
8.0.280.0070.00018.46
8.0.270.0030.00316.90
8.0.260.0030.00316.90
8.0.250.0040.00417.04
8.0.240.0040.00417.07
8.0.230.0030.00317.00
8.0.220.0040.00416.87
8.0.210.0050.00316.99
8.0.200.0050.00216.91
8.0.190.0000.00717.02
8.0.180.0000.00916.88
8.0.170.0000.00816.94
8.0.160.0040.00416.94
8.0.150.0020.00516.94
8.0.140.0040.00416.95
8.0.130.0030.00313.39
8.0.120.0000.00716.95
8.0.110.0000.00816.95
8.0.100.0030.00316.84
8.0.90.0040.00417.02
8.0.80.0040.01116.86
8.0.70.0080.00016.85
8.0.60.0050.00216.98
8.0.50.0040.00416.85
8.0.30.0120.00617.26
8.0.20.0070.01617.40
8.0.10.0080.00017.05
8.0.00.0120.00716.74
7.4.330.0050.00016.71
7.4.320.0030.00316.63
7.4.300.0040.00416.57
7.4.290.0050.00316.66
7.4.280.0030.00516.52
7.4.270.0030.00316.65
7.4.260.0030.00513.20
7.4.250.0050.00216.56
7.4.240.0070.00016.55
7.4.230.0030.00316.42
7.4.220.0060.01116.38
7.4.210.0060.00816.53
7.4.200.0000.00816.64
7.4.190.0000.00716.64
7.4.160.0140.00716.33
7.4.150.0120.00617.40
7.4.140.0070.01017.86
7.4.130.0140.00516.55
7.4.120.0050.01116.51
7.4.110.0060.01216.48
7.4.100.0200.00016.61
7.4.90.0090.00916.61
7.4.80.0130.00419.39
7.4.70.0040.01816.62
7.4.60.0130.00616.61
7.4.50.0040.00416.51
7.4.40.0040.00422.77
7.4.30.0070.01516.65
7.4.00.0050.01115.19
7.3.330.0060.00013.17
7.3.320.0050.00013.34
7.3.310.0030.00316.27
7.3.300.0030.00316.42
7.3.290.0060.00916.45
7.3.280.0060.01016.46
7.3.270.0130.00617.40
7.3.260.0080.01118.24
7.3.250.0090.01316.59
7.3.240.0150.00616.44
7.3.230.0100.01316.46
7.3.210.0090.01216.47
7.3.200.0070.01119.39
7.3.190.0100.00616.45
7.3.180.0120.00316.47
7.3.170.0100.01016.41
7.3.160.0150.00016.46
7.3.120.0080.00914.96
7.3.110.0140.00414.80
7.3.100.0120.00615.01
7.3.90.0000.01514.88
7.3.80.0060.00314.95
7.3.70.0100.00614.87
7.3.60.0070.01014.73
7.3.50.0070.01014.68
7.3.40.0060.00914.87
7.3.30.0040.01514.98
7.3.20.0150.00316.60
7.3.10.0090.00916.50
7.3.00.0130.00616.58
7.2.330.0120.00616.75
7.2.320.0140.00316.38
7.2.310.0100.01416.51
7.2.300.0190.00416.73
7.2.290.0030.01416.78
7.2.250.0070.01114.76
7.2.240.0100.01014.93
7.2.230.0070.00314.90
7.2.220.0000.01114.95
7.2.210.0070.00314.93
7.2.200.0090.00314.75
7.2.190.0090.00614.89
7.2.180.0040.01115.05
7.2.170.0090.00615.02
7.2.130.0070.01116.58
7.2.120.0070.01216.45
7.2.110.0100.00816.58
7.2.100.0080.00916.70
7.2.90.0130.00316.70
7.2.80.0110.00616.65
7.2.70.0150.00516.49
7.2.60.0110.00816.60
7.2.50.0140.00916.45
7.2.40.0140.01016.57
7.2.30.0150.00516.58
7.2.20.0130.00716.65
7.2.10.0120.00616.57
7.2.00.0060.01117.63
7.1.330.0030.01015.71
7.1.320.0080.00415.70
7.1.310.0090.00015.76
7.1.300.0040.01115.70
7.1.290.0120.00315.59
7.1.280.0110.00415.92
7.1.270.0070.00715.84
7.1.260.0060.00615.64
7.1.250.0100.00515.70
7.1.240.0030.01416.00
7.1.230.0030.00615.79
7.1.220.0030.01015.72
7.1.210.0080.00415.94
7.1.200.0070.00515.90
7.1.190.0040.00715.89
7.1.180.0070.01015.69
7.1.170.0110.00315.83
7.1.160.0060.00315.66
7.1.150.0060.00315.93
7.1.140.0040.00415.68
7.1.130.0120.00015.49
7.1.120.0070.00715.57
7.1.110.0030.00915.60
7.1.100.0000.01315.93
7.1.90.0100.00615.91
7.1.80.0110.00015.78
7.1.70.0010.00916.54
7.1.60.0080.00516.54
7.1.50.0110.00716.45
7.1.40.0090.00915.54
7.1.30.0070.00315.70
7.1.20.0080.00015.75
7.1.10.0000.01115.86
7.1.00.0070.03219.07
7.0.330.0110.00315.25
7.0.320.0030.00915.39
7.0.310.0070.01015.56
7.0.300.0040.00815.54
7.0.290.0000.01515.30
7.0.280.0070.00315.20
7.0.270.0110.00315.32
7.0.260.0030.00515.61
7.0.250.0030.00915.31
7.0.240.0030.01015.19
7.0.230.0050.00815.60
7.0.220.0050.00515.59
7.0.210.0040.00715.29
7.0.200.0090.00615.98
7.0.190.0060.00615.31
7.0.180.0000.00915.25
7.0.170.0110.00015.27
7.0.160.0030.01015.03
7.0.150.0060.00615.45
7.0.140.0080.03318.78
7.0.130.0060.00315.27
7.0.120.0100.00315.18
7.0.110.0030.00615.27
7.0.100.0060.03617.63
7.0.90.0100.04717.54
7.0.80.0050.03117.68
7.0.70.0010.04917.50
7.0.60.0060.04117.58
7.0.50.0070.03117.78
7.0.40.0030.02816.66
7.0.30.0040.03416.61
7.0.20.0070.02216.76
7.0.10.0070.02016.72
7.0.00.0090.04916.72
5.6.380.0060.01014.74
5.6.370.0040.00814.27
5.6.360.0080.00414.11
5.6.350.0060.00614.50
5.6.340.0130.00014.39
5.6.330.0040.00414.19
5.6.320.0040.00414.24
5.6.310.0080.00414.11
5.6.300.0100.00314.36
5.6.290.0030.01313.93
5.6.280.0020.04417.59
5.6.270.0100.00714.50
5.6.260.0060.00614.32
5.6.250.0070.04217.47
5.6.240.0080.04617.49
5.6.230.0050.04117.40
5.6.220.0080.03817.59
5.6.210.0070.04217.49
5.6.200.0020.02617.66
5.6.190.0060.02217.71
5.6.180.0060.02517.62
5.6.170.0080.02317.70
5.6.160.0000.03217.73
5.6.150.0050.02517.79
5.6.140.0050.02617.79
5.6.130.0050.02817.58
5.6.120.0050.03517.66
5.6.110.0020.03017.70
5.6.100.0070.02317.65
5.6.90.0060.02517.59
5.6.80.0030.02717.39
5.6.70.0020.02817.39
5.6.60.0060.02217.21
5.6.50.0080.02317.15
5.6.40.0110.02217.38
5.6.30.0020.02717.27
5.6.20.0070.02317.28
5.6.10.0090.02017.29
5.6.00.0070.02717.32
5.5.380.0040.04615.68
5.5.370.0080.04115.81
5.5.360.0080.04315.68
5.5.350.0100.04515.73
5.5.340.0010.03815.96
5.5.330.0030.02315.86
5.5.320.0020.02415.93
5.5.310.0050.02315.83
5.5.300.0040.02515.91
5.5.290.0020.02716.00
5.5.280.0050.02315.86
5.5.270.0030.02816.05
5.5.260.0070.02315.76
5.5.250.0030.02515.79
5.5.240.0020.02715.69
5.5.230.0050.02315.54
5.5.220.0050.02215.56
5.5.210.0050.02215.62
5.5.200.0100.02015.51
5.5.190.0000.02515.52
5.5.180.0080.02015.37
5.5.170.0050.00311.18
5.5.160.0050.02015.54
5.5.150.0030.02515.48
5.5.140.0050.02215.62
5.5.130.0060.02215.58
5.5.120.0030.02515.56
5.5.110.0080.01815.59
5.5.100.0050.02315.57
5.5.90.0050.01815.58
5.5.80.0020.02615.58
5.5.70.0100.03715.52
5.5.60.0120.03515.46
5.5.50.0110.03515.43
5.5.40.0080.03815.47
5.5.30.0120.03915.52
5.5.20.0110.03615.56
5.5.10.0100.04515.58
5.5.00.0080.04115.38
5.4.450.0030.02515.05
5.4.440.0050.02215.25
5.4.430.0060.02115.06
5.4.420.0020.02615.12
5.4.410.0030.02815.15
5.4.400.0030.02114.81
5.4.390.0060.02214.82
5.4.380.0030.02214.89
5.4.370.0090.01814.73
5.4.360.0050.04214.95
5.4.350.0070.03215.00
5.4.340.0070.02314.95
5.4.330.0030.00310.68
5.4.320.0100.02014.83
5.4.310.0050.02014.77
5.4.300.0050.02314.82
5.4.290.0050.02514.86
5.4.280.0040.02014.82
5.4.270.0030.02015.02
5.4.260.0060.02214.81
5.4.250.0070.03214.82
5.4.240.0070.02314.88
5.4.230.0130.03014.83
5.4.220.0130.04114.74
5.4.210.0090.03814.93
5.4.200.0030.04114.85
5.4.190.0050.03714.63
5.4.180.0120.01814.87
5.4.170.0050.04614.89
5.4.160.0090.03714.91
5.4.150.0110.03714.86
5.4.140.0040.03813.46
5.4.130.0060.04013.31
5.4.120.0110.03313.54
5.4.110.0070.03913.71
5.4.100.0190.03713.52
5.4.90.0040.04413.66
5.4.80.0090.04113.53
5.4.70.0080.04013.61
5.4.60.0030.04213.68
5.4.50.0100.04013.70
5.4.40.0060.04113.53
5.4.30.0060.03813.50
5.4.20.0100.03013.60
5.4.10.0080.02213.51
5.4.00.0040.04213.11
5.3.290.0050.03512.52
5.3.280.0090.02612.42
5.3.270.0030.03012.48
5.3.260.0050.03912.47
5.3.250.0040.04412.48
5.3.240.0030.04312.43
5.3.230.0080.03912.45
5.3.220.0120.03512.46
5.3.210.0080.03012.46
5.3.200.0080.04212.39
5.3.190.0090.04212.47
5.3.180.0090.04212.53
5.3.170.0110.03512.49
5.3.160.0050.04012.53
5.3.150.0050.04012.61
5.3.140.0070.04012.53
5.3.130.0120.02512.46
5.3.120.0050.03112.45
5.3.110.0100.03312.46
5.3.100.0050.03912.22
5.3.90.0080.03812.30
5.3.80.0120.03511.99
5.3.70.0020.03812.20
5.3.60.0080.03512.16
5.3.50.0100.03312.15
5.3.40.0050.04112.07
5.3.30.0050.03912.07
5.3.20.0110.03611.88
5.3.10.0050.04011.90
5.3.00.0060.03911.82
5.2.170.0030.03610.19
5.2.160.0070.03110.13
5.2.150.0110.02910.25
5.2.140.0070.02310.16
5.2.130.0030.03310.33
5.2.120.0050.03210.33
5.2.110.0070.03210.25
5.2.100.0080.03010.32
5.2.90.0030.03510.20
5.2.80.0060.03210.10
5.2.70.0030.02510.14
5.2.60.0030.03510.18
5.2.50.0030.03010.31
5.2.40.0010.03610.25
5.2.30.0030.03310.11
5.2.20.0030.03910.04
5.2.10.0080.0319.97
5.2.00.0120.0179.95
5.1.60.0000.0189.18
5.1.50.0030.0289.13
5.1.40.0040.0279.39
5.1.30.0070.0309.42
5.1.20.0070.0329.50
5.1.10.0070.0229.40
5.1.00.0060.0299.31
5.0.50.0090.0158.12
5.0.40.0030.0238.10
5.0.30.0040.0318.02
5.0.20.0080.0207.99
5.0.10.0060.0237.99
5.0.00.0050.0327.99
4.4.90.0050.0177.99
4.4.80.0000.0207.99
4.4.70.0020.0207.99
4.4.60.0050.0157.99
4.4.50.0050.0137.99
4.4.40.0030.0187.99
4.4.30.0040.0177.99
4.4.20.0060.0157.99
4.4.10.0050.0187.99
4.4.00.0020.0347.99
4.3.110.0030.0207.99
4.3.100.0030.0187.99
4.3.90.0050.0187.99
4.3.80.0020.0277.99
4.3.70.0010.0237.99
4.3.60.0000.0207.99
4.3.50.0040.0197.99
4.3.40.0030.0287.99
4.3.30.0030.0207.99
4.3.20.0000.0197.99
4.3.10.0020.0187.99
4.3.00.0040.0137.99

preferences:
39.4 ms | 400 KiB | 5 Q