3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('SECONDE', 1000 );; define('MINUUT', 60*SECONDE); define('UUR', 60*MINUUT); define('DAG', 24*UUR); // Bezochtte tijd function timetostr($tijd) { $output = ''; $result['dag'] = (int) ($tijd/DAG); $tijd = $tijd % DAG; $result['uur'] = (int) ($tijd/UUR); $tijd = $tijd % UUR; $result['minuut'] = (int) ($tijd/MINUUT); $tijd = $tijd % MINUUT; $result['seconde'] = $tijd; if ($result['dag']) $output[] = $result['dag'] . ($result['dag'] == 1 ? ' dag' : ' dagen'); if ($output || $result['uur']) $output[] = $result['uur'] . ($result['uur'] == 1 ? ' uur' : ' uren'); if ($output || $result['minuut']) $output[] = $result['minuut'] . ($result['minuut'] == 1 ? ' minuut' : ' minuten'); $output[] = $result['seconde'] . ($result['seconde'] == 1 ? ' seconde' : ' seconden'); $return = join($output, ', '); $return = preg_replace('/^(.*), ([^,]+)$/', '\\1 en \\2', $return); return $return; } echo timetostr(164300); ?>

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.70.0060.01017.00
8.3.60.0160.00018.30
8.3.50.0090.00821.27
8.3.40.0150.00418.59
8.3.30.0070.00719.17
8.3.20.0030.00620.31
8.3.10.0000.00822.09
8.3.00.0060.00322.33
8.2.190.0090.00916.63
8.2.180.0120.00318.54
8.2.170.0070.01022.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0110.00726.16
8.2.120.0050.00319.66
8.2.110.0040.00422.25
8.2.100.0040.00719.33
8.2.90.0000.00819.22
8.2.80.0000.00719.47
8.2.70.0060.00317.75
8.2.60.0060.00318.05
8.2.50.0000.00818.07
8.2.40.0040.00418.02
8.2.30.0020.00518.13
8.2.20.0040.00417.65
8.2.10.0000.00817.83
8.2.00.0000.00717.82
8.1.280.0070.01025.92
8.1.270.0080.00020.48
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0030.00623.79
8.1.230.0040.00819.01
8.1.220.0030.00517.78
8.1.210.0050.00518.77
8.1.200.0030.00617.35
8.1.190.0000.00817.53
8.1.180.0040.00418.78
8.1.170.0080.00018.65
8.1.160.0040.00422.13
8.1.150.0000.00818.58
8.1.140.0030.00517.38
8.1.130.0050.00317.86
8.1.120.0000.00717.50
8.1.110.0080.00017.48
8.1.100.0000.00717.40
8.1.90.0000.00717.45
8.1.80.0000.00717.39
8.1.70.0050.00217.46
8.1.60.0000.00817.58
8.1.50.0050.00217.53
8.1.40.0040.00417.42
8.1.30.0000.00717.68
8.1.20.0080.00017.51
8.1.10.0030.00617.47
8.1.00.0070.00417.53
8.0.300.0000.00818.77
8.0.290.0040.00417.18
8.0.280.0040.00418.42
8.0.270.0000.00717.26
8.0.260.0040.00416.80
8.0.250.0000.00717.02
8.0.240.0040.00416.98
8.0.230.0030.00316.90
8.0.220.0030.00317.01
8.0.210.0040.00416.98
8.0.200.0000.00617.02
8.0.190.0000.00816.87
8.0.180.0000.00716.96
8.0.170.0040.00416.99
8.0.160.0080.00016.98
8.0.150.0030.00316.90
8.0.140.0000.00716.95
8.0.130.0000.00613.43
8.0.120.0050.00316.91
8.0.110.0040.00416.88
8.0.100.0000.00716.78
8.0.90.0000.00816.78
8.0.80.0040.01216.94
8.0.70.0000.00716.79
8.0.60.0020.00516.96
8.0.50.0000.00817.00
8.0.30.0100.01117.16
8.0.20.0080.01017.40
8.0.10.0000.00717.02
8.0.00.0090.00816.80
7.4.330.0030.00315.00
7.4.320.0000.00616.64
7.4.300.0030.00316.63
7.4.290.0030.00316.43
7.4.280.0030.00316.47
7.4.270.0000.00716.65
7.4.260.0000.00716.65
7.4.250.0080.00016.59
7.4.240.0040.00416.54
7.4.230.0070.00016.64
7.4.220.0110.00616.49
7.4.210.0040.01216.56
7.4.200.0030.00316.63
7.4.190.0000.00716.39
7.4.160.0060.01116.64
7.4.150.0120.00617.40
7.4.140.0130.00917.86
7.4.130.0090.00916.46
7.4.120.0080.00816.54
7.4.110.0120.00616.57
7.4.100.0000.01816.71
7.4.90.0030.01316.54
7.4.80.0160.00319.39
7.4.70.0100.00716.41
7.4.60.0030.01916.54
7.4.50.0020.00216.23
7.4.40.0100.00622.77
7.4.30.0120.00916.66
7.4.00.0050.01415.11
7.3.330.0000.00613.46
7.3.320.0000.00513.44
7.3.310.0030.00316.30
7.3.300.0040.00416.45
7.3.290.0060.00916.46
7.3.280.0080.00916.46
7.3.270.0120.00617.40
7.3.260.0100.01316.46
7.3.250.0140.00516.64
7.3.240.0160.00716.53
7.3.230.0070.01116.40
7.3.210.0060.01116.51
7.3.200.0150.00819.39
7.3.190.0130.00316.50
7.3.180.0100.00716.43
7.3.170.0130.00316.72
7.3.160.0060.01016.51
7.3.120.0090.00714.97
7.3.110.0130.00614.95
7.3.100.0030.01314.66
7.3.90.0100.00714.71
7.3.80.0090.00615.09
7.3.70.0060.00614.62
7.3.60.0110.00414.96
7.3.50.0060.00314.93
7.3.40.0060.00314.91
7.3.30.0120.00814.88
7.3.20.0100.00716.67
7.3.10.0130.00016.72
7.3.00.0030.01016.80
7.2.330.0110.00716.84
7.2.320.0070.01016.50
7.2.310.0060.01216.84
7.2.300.0030.01316.81
7.2.290.0030.01216.42
7.2.250.0040.01815.09
7.2.240.0070.01015.15
7.2.230.0070.01015.18
7.2.220.0070.01015.00
7.2.210.0030.01014.71
7.2.200.0030.00715.05
7.2.190.0100.00315.05
7.2.180.0030.01015.15
7.2.170.0060.01215.11
7.2.60.0140.00016.94
7.2.00.0030.01019.50
7.1.330.0120.00015.66
7.1.320.0030.00915.82
7.1.310.0060.00615.53
7.1.300.0040.00815.54
7.1.290.0030.01315.87
7.1.280.0030.01015.99
7.1.270.0040.00815.82
7.1.260.0100.00315.82
7.1.200.0060.00615.77
7.1.100.0030.01017.98
7.1.70.0070.00716.95
7.1.60.0090.01519.82
7.1.50.0000.02216.99
7.1.00.0030.07722.51
7.0.200.0000.01016.92
7.0.140.0100.07021.99
7.0.60.0030.04021.84
7.0.50.0030.04017.93
7.0.40.0000.05020.20
7.0.30.0200.06720.26
7.0.20.0330.07020.11
7.0.10.0230.08320.25
7.0.00.0100.04020.20
5.6.280.0000.07721.12
5.6.210.0070.05320.57
5.6.200.0100.07318.19
5.6.190.0030.08720.67
5.6.180.3330.04020.45
5.6.170.0270.08020.45
5.6.160.0070.05720.71
5.6.150.0070.07318.14
5.6.140.0030.04018.15
5.6.130.0070.08018.23
5.6.120.0100.08021.02
5.6.110.0000.04321.02
5.6.100.0070.05021.06
5.6.90.0130.07720.89
5.6.80.0070.08020.54
5.5.350.0000.07020.42
5.5.340.0000.05017.95
5.5.330.0100.06320.27
5.5.320.0230.07320.30
5.5.310.0270.06320.41
5.5.300.0070.06718.02
5.5.290.0030.05317.96
5.5.280.0030.04020.78
5.5.270.0100.08020.80
5.5.260.0100.03720.77
5.5.250.0100.03720.57
5.5.240.0030.06720.27
5.4.450.1130.05019.55
5.4.440.0730.05719.61
5.4.430.0630.06019.47
5.4.420.0770.05319.60
5.4.410.0770.05019.25
5.4.400.1130.06018.84
5.4.390.1730.06018.74
5.4.380.0330.05018.75
5.4.370.0170.05018.48
5.4.360.0030.06018.61
5.4.350.0070.03412.03
5.4.340.0110.03812.03
5.4.320.0100.04012.52
5.4.310.0060.03812.51
5.4.300.0090.04112.52
5.4.290.0090.04112.51
5.4.280.0110.03312.41
5.4.270.0080.03812.41
5.4.260.0080.04412.41
5.4.250.0070.05018.96
5.4.240.0000.05719.09
5.4.230.0070.05318.86
5.4.220.0030.05718.91
5.4.210.0030.05718.75
5.4.200.0130.04318.76
5.4.190.0070.05318.96
5.4.180.0100.05318.75
5.4.170.0200.04319.01
5.4.160.0070.05018.66
5.4.150.0130.05318.98
5.4.140.0130.04016.31
5.4.130.0100.06016.30
5.4.120.0000.05316.58
5.4.110.0100.04716.42
5.4.100.0030.05316.56
5.4.90.0130.05316.61
5.4.80.0070.05316.53
5.4.70.0070.05316.56
5.4.60.0070.05016.30
5.4.50.0100.04316.60
5.4.40.0100.05016.35
5.4.30.0030.05016.45
5.4.20.0130.04316.53
5.4.10.0100.04716.38
5.4.00.0070.04715.98
5.3.290.0080.04212.80
5.3.280.0100.06014.67
5.3.270.0070.05014.69
5.3.260.0130.05014.86
5.3.250.0170.07014.68
5.3.240.0070.05314.64
5.3.230.0030.05714.78
5.3.220.0030.05314.59
5.3.210.0130.04314.55
5.3.200.0100.04314.60
5.3.190.0130.05714.74
5.3.180.0070.05014.74
5.3.170.0070.04714.67
5.3.160.0130.04314.60
5.3.150.0070.06314.66
5.3.140.0070.05314.66
5.3.130.0030.05714.55
5.3.120.0100.06714.39
5.3.110.0100.05314.63
5.3.100.0130.04313.96
5.3.90.0170.04014.05
5.3.80.0000.05314.02
5.3.70.0100.04714.11
5.3.60.0000.05314.10
5.3.50.0070.05014.13
5.3.40.0100.04714.12
5.3.30.0030.05014.10
5.3.20.0030.05013.68
5.3.10.0070.05013.75
5.3.00.0100.04713.82
5.2.170.0070.04011.18
5.2.160.0030.04311.16
5.2.150.0030.04011.23
5.2.140.0000.04311.12
5.2.130.0130.03311.20
5.2.120.0070.03710.94
5.2.110.0100.03311.10
5.2.100.0070.04011.09
5.2.90.0070.03711.20
5.2.80.0000.04311.07
5.2.70.0070.03711.29
5.2.60.0130.03710.97
5.2.50.0100.03711.13
5.2.40.0000.04311.25
5.2.30.0030.04011.08
5.2.20.0070.03711.07
5.2.10.0070.03310.71
5.2.00.0100.03310.84
5.1.60.0030.03310.11
5.1.50.0100.02710.00
5.1.40.0070.03010.09
5.1.30.0030.03310.17
5.1.20.0030.03710.46
5.1.10.0000.04010.29
5.1.00.0130.02710.16
5.0.50.0000.0308.76
5.0.40.0000.0308.48
5.0.30.0000.0438.34
5.0.20.0070.0238.18
5.0.10.0000.0308.26
5.0.00.0000.0438.28
4.4.90.0030.0306.96
4.4.80.0100.0136.96
4.4.70.0100.0136.96
4.4.60.0000.0236.96
4.4.50.0030.0206.96
4.4.40.0000.0336.96
4.4.30.0030.0206.96
4.4.20.0000.0236.96
4.4.10.0000.0236.96
4.4.00.0030.0306.96
4.3.110.0070.0176.96
4.3.100.0030.0306.96
4.3.90.0000.0236.96
4.3.80.0070.0276.96
4.3.70.0000.0206.96
4.3.60.0030.0236.96
4.3.50.0030.0236.96
4.3.40.0030.0406.96
4.3.30.0000.0236.96
4.3.20.0000.0276.96
4.3.10.0030.0206.96
4.3.00.0100.0207.79

preferences:
48.84 ms | 401 KiB | 5 Q