3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('SECONDE', 1); 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.60.0130.00718.43
8.3.50.0100.00921.09
8.3.40.0030.01518.69
8.3.30.0110.00419.25
8.3.20.0000.00820.20
8.3.10.0080.00022.05
8.3.00.0040.00422.57
8.2.180.0090.00616.88
8.2.170.0150.00622.96
8.2.160.0110.00320.39
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0100.00726.16
8.2.120.0000.00819.77
8.2.110.0040.00422.11
8.2.100.0090.00319.26
8.2.90.0040.00419.36
8.2.80.0040.00419.46
8.2.70.0030.00517.50
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0030.00518.28
8.2.30.0000.00818.20
8.2.20.0070.00017.71
8.2.10.0040.00417.80
8.2.00.0040.00417.69
8.1.280.0140.00425.92
8.1.270.0060.00320.35
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.73
8.1.230.0040.00819.09
8.1.220.0030.00617.79
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0060.00317.60
8.1.180.0040.00418.98
8.1.170.0040.00418.64
8.1.160.0000.00822.14
8.1.150.0030.00518.55
8.1.140.0040.00417.53
8.1.130.0050.00317.84
8.1.120.0050.00217.37
8.1.110.0020.00517.52
8.1.100.0030.00317.50
8.1.90.0040.00417.50
8.1.80.0000.00817.48
8.1.70.0030.00317.34
8.1.60.0060.00317.63
8.1.50.0050.00317.53
8.1.40.0040.00417.55
8.1.30.0040.00417.65
8.1.20.0050.00317.67
8.1.10.0000.00717.49
8.1.00.0070.00317.50
8.0.300.0060.00318.77
8.0.290.0000.00817.05
8.0.280.0040.00418.45
8.0.270.0000.00717.25
8.0.260.0000.00618.37
8.0.250.0040.00416.91
8.0.240.0050.00317.00
8.0.230.0000.00716.99
8.0.220.0070.00016.96
8.0.210.0000.00716.87
8.0.200.0060.00017.07
8.0.190.0040.00416.93
8.0.180.0000.00716.89
8.0.170.0000.00916.95
8.0.160.0040.00417.01
8.0.150.0040.00416.96
8.0.140.0040.00416.82
8.0.130.0000.00513.38
8.0.120.0040.00416.86
8.0.110.0040.00416.95
8.0.100.0080.00016.74
8.0.90.0000.00717.03
8.0.80.0070.01016.84
8.0.70.0040.00416.86
8.0.60.0050.00316.87
8.0.50.0040.00416.85
8.0.30.0120.00717.27
8.0.20.0110.00917.40
8.0.10.0000.00717.04
8.0.00.0100.00916.79
7.4.330.0060.00015.00
7.4.320.0000.00616.59
7.4.300.0070.00016.51
7.4.290.0040.00416.54
7.4.280.0030.00316.48
7.4.270.0000.00716.52
7.4.260.0080.00016.53
7.4.250.0030.00516.56
7.4.240.0040.00316.57
7.4.230.0030.00316.65
7.4.220.0100.00716.42
7.4.210.0100.00616.63
7.4.200.0080.00016.59
7.4.190.0040.00416.61
7.4.160.0090.00616.64
7.4.150.0170.00017.40
7.4.140.0100.00817.86
7.4.130.0070.01316.48
7.4.120.0100.00716.60
7.4.110.0190.00616.51
7.4.100.0030.01416.55
7.4.90.0040.01316.64
7.4.80.0060.01319.39
7.4.70.0030.01316.27
7.4.60.0090.01016.57
7.4.50.0000.00416.49
7.4.40.0000.01822.77
7.4.30.0070.01016.77
7.4.10.0040.01114.94
7.4.00.0060.01115.09
7.3.330.0000.00513.45
7.3.320.0000.00513.25
7.3.310.0050.00316.40
7.3.300.0030.00316.38
7.3.290.0110.00316.47
7.3.280.0060.00916.48
7.3.270.0100.01317.40
7.3.260.0140.00416.80
7.3.250.0080.01016.64
7.3.240.0100.00616.66
7.3.230.0180.00016.50
7.3.210.0090.00816.39
7.3.200.0130.01019.39
7.3.190.0060.01016.50
7.3.180.0120.00416.47
7.3.170.0100.00616.52
7.3.160.0050.01116.55
7.3.130.0080.00914.67
7.3.120.0110.00814.91
7.3.110.0110.00714.82
7.3.100.0020.01514.90
7.3.90.0030.01014.85
7.3.80.0020.01115.06
7.3.70.0030.01014.73
7.3.60.0030.01314.84
7.3.50.0100.00514.86
7.3.40.0080.00414.77
7.3.30.0020.01114.84
7.3.20.0090.00716.72
7.3.10.0050.00816.49
7.3.00.0050.01116.80
7.2.330.0070.01016.70
7.2.320.0150.00416.87
7.2.310.0130.00316.53
7.2.300.0030.01316.67
7.2.290.0080.00816.80
7.2.260.0130.00715.29
7.2.250.0030.01015.17
7.2.240.0110.00515.14
7.2.230.0040.00914.90
7.2.220.0070.01015.24
7.2.210.0030.01115.09
7.2.200.0000.01114.79
7.2.190.0040.01215.09
7.2.180.0020.01215.22
7.2.170.0030.01015.01
7.2.160.0030.00815.22
7.2.150.0060.00716.90
7.2.140.0020.01116.74
7.2.130.0060.00716.99
7.2.120.0050.00616.85
7.2.110.0080.00616.80
7.2.100.0020.01016.80
7.2.90.0050.00916.98
7.2.80.0030.00816.97
7.2.70.0040.00916.98
7.2.60.0070.00816.94
7.2.50.0080.00816.82
7.2.40.0050.00816.92
7.2.30.0060.00716.88
7.2.20.0030.00816.94
7.2.10.0050.01316.88
7.2.00.0050.00917.56
7.1.330.0100.00315.83
7.1.320.0030.00815.81
7.1.310.0080.00815.91
7.1.300.0050.01215.84
7.1.290.0050.00815.89
7.1.280.0090.00515.85
7.1.270.0030.01215.74
7.1.260.0030.00915.82
7.1.250.0060.00715.61
7.1.240.0110.00415.65
7.1.230.0050.00515.91
7.1.220.0050.00315.93
7.1.210.0030.00915.61
7.1.200.0080.00515.79
7.1.190.0000.01415.85
7.1.180.0030.00715.78
7.1.170.0030.01015.93
7.1.160.0030.00615.79
7.1.150.0090.00315.78
7.1.140.0000.01615.85
7.1.130.0030.01015.98
7.1.120.0100.00715.63
7.1.110.0000.01315.67
7.1.100.0070.00616.84
7.1.90.0030.01315.68
7.1.80.0030.01015.67
7.1.70.0040.00516.54
7.1.60.0050.01217.83
7.1.50.0070.01016.43
7.1.40.0040.01115.76
7.1.30.0030.01215.86
7.1.20.0000.01115.89
7.1.10.0030.01415.92
7.1.00.0030.03218.99
7.0.330.0000.01015.26
7.0.320.0000.01015.67
7.0.310.0000.00815.47
7.0.300.0060.00715.64
7.0.290.0060.00315.67
7.0.280.0000.00915.38
7.0.270.0060.01015.64
7.0.260.0030.01015.70
7.0.250.0060.00315.71
7.0.240.0090.00315.82
7.0.230.0000.00915.53
7.0.220.0030.01015.68
7.0.210.0060.00315.45
7.0.200.0020.00816.23
7.0.190.0040.00715.55
7.0.180.0000.00815.63
7.0.170.0030.00915.53
7.0.160.0030.00615.61
7.0.150.0000.00915.53
7.0.140.0030.04018.70
7.0.130.0030.00715.44
7.0.120.0000.01315.73
7.0.110.0060.00615.53
7.0.100.0030.01015.77
7.0.90.0060.00615.66
7.0.80.0030.00815.65
7.0.70.0100.00315.54
7.0.60.0120.03017.73
7.0.50.0060.04116.78
7.0.40.0050.04416.86
7.0.30.0140.02416.95
7.0.20.0180.03916.87
7.0.10.0100.03017.02
7.0.00.0020.04516.89
5.6.400.0060.00614.42
5.6.390.0040.00414.77
5.6.380.0070.00714.86
5.6.370.0030.00814.84
5.6.360.0040.01114.45
5.6.350.0060.00614.75
5.6.340.0080.00314.55
5.6.330.0090.00614.19
5.6.320.0030.00614.52
5.6.310.0000.00814.54
5.6.300.0080.00414.51
5.6.290.0080.00814.71
5.6.280.0080.03717.69
5.6.270.0070.00314.58
5.6.260.0030.01214.66
5.6.250.0070.00314.35
5.6.240.0000.01414.51
5.6.230.0000.01514.45
5.6.220.0060.00914.48
5.6.210.0060.04317.56
5.6.200.0160.02016.26
5.6.190.0070.02517.63
5.6.180.0170.02817.49
5.6.170.0160.02217.56
5.6.160.0060.02817.68
5.6.150.0000.02716.29
5.6.140.0070.03816.29
5.6.130.0050.02016.47
5.6.120.0120.04017.70
5.6.110.0130.03617.78
5.6.100.0070.03517.95
5.6.90.0050.02517.82
5.6.80.0150.04217.50
5.6.70.0070.01014.71
5.6.60.0070.01014.59
5.6.50.0000.01314.27
5.6.40.0030.01014.80
5.6.30.0050.00514.25
5.6.20.0070.00714.79
5.6.10.0000.01614.36
5.6.00.0000.01514.27
5.5.380.0060.00614.54
5.5.370.0030.01314.16
5.5.360.0070.01014.66
5.5.350.1280.02217.36
5.5.340.0030.02316.48
5.5.330.0090.04217.30
5.5.320.0250.03817.39
5.5.310.0220.03217.34
5.5.300.0050.03716.06
5.5.290.0110.03316.28
5.5.280.0080.02517.72
5.5.270.0030.03217.74
5.5.260.0080.04417.65
5.5.250.0050.02217.52
5.5.240.0010.04817.32
5.5.230.0070.00714.52
5.5.220.0060.00914.59
5.5.210.0070.01014.63
5.5.200.0050.00514.55
5.5.190.0130.00314.36
5.5.180.0090.00014.57
5.5.170.0000.01314.42
5.5.160.0000.01114.57
5.5.150.0100.00714.36
5.5.140.0060.00614.28
5.5.130.0040.01114.66
5.5.120.0090.00914.35
5.5.110.0100.00314.38
5.5.100.0070.00314.63
5.5.90.0070.00714.24
5.5.80.0030.01214.54
5.5.70.0000.01414.18
5.5.60.0000.01514.25
5.5.50.0120.00314.33
5.5.40.0060.00614.35
5.5.30.0060.00614.52
5.5.20.0080.00614.56
5.5.10.0060.00914.11
5.5.00.0040.01114.62
5.4.450.0210.03415.42
5.4.440.0550.03815.54
5.4.430.0130.03015.33
5.4.420.0190.03815.36
5.4.410.0120.03015.09
5.4.400.0230.03914.96
5.4.390.0360.03815.10
5.4.380.0120.03315.06
5.4.370.0160.02714.99
5.4.360.0100.02914.96
5.4.350.0080.02211.62
5.4.340.0080.02611.73
5.4.330.0110.00711.03
5.4.320.0090.01911.93
5.4.310.0080.02511.78
5.4.300.0100.02111.78
5.4.290.0070.02511.95
5.4.280.0070.01911.80
5.4.270.0080.02411.88
5.4.260.0110.02411.87
5.4.250.0130.03315.14
5.4.240.0140.03815.07
5.4.230.0140.03415.22
5.4.220.0120.03915.04
5.4.210.0090.04015.04
5.4.200.0090.04115.21
5.4.190.0070.03615.05
5.4.180.0110.03015.02
5.4.170.0090.03215.11
5.4.160.0100.02915.02
5.4.150.0110.02815.20
5.4.140.0120.02513.96
5.4.130.0070.03013.84
5.4.120.0070.03013.87
5.4.110.0050.03313.98
5.4.100.0060.02913.80
5.4.90.0120.02313.90
5.4.80.0060.03213.96
5.4.70.0090.02613.82
5.4.60.0100.02813.98
5.4.50.0080.02913.71
5.4.40.0050.03013.86
5.4.30.0090.02713.85
5.4.20.0080.02813.86
5.4.10.0040.03213.98
5.4.00.0130.02213.51
5.3.290.0060.02511.70
5.3.280.0120.03912.70
5.3.270.0080.04212.50
5.3.260.0100.03412.70
5.3.250.0110.02712.57
5.3.240.0140.02312.63
5.3.230.0090.02912.79
5.3.220.0040.03212.64
5.3.210.0100.02912.74
5.3.200.0070.03012.45
5.3.190.0080.02712.59
5.3.180.0050.03112.68
5.3.170.0060.03012.62
5.3.160.0140.03212.67
5.3.150.0050.03112.72
5.3.140.0100.02712.54
5.3.130.0130.02612.50
5.3.120.0100.03012.54
5.3.110.0050.03212.71
5.3.100.0040.02812.38
5.3.90.0100.02712.49
5.3.80.0090.02612.18
5.3.70.0070.02812.21
5.3.60.0090.02512.42
5.3.50.0100.02512.26
5.3.40.0110.02512.37
5.3.30.0050.03012.29
5.3.20.0080.02712.23
5.3.10.0130.03512.02
5.3.00.0080.02612.08
5.2.170.0070.03710.99
5.2.160.0030.05011.13
5.2.150.0130.03311.11
5.2.140.0030.04011.15
5.2.130.0100.05311.09
5.2.120.0070.04011.09
5.2.110.0000.04311.33
5.2.100.0170.03011.29
5.2.90.0100.04311.19
5.2.80.0100.03710.94
5.2.70.0070.04011.06
5.2.60.0100.03311.15
5.2.50.0030.04010.95
5.2.40.0070.03711.10
5.2.30.0070.04011.07
5.2.20.0070.03710.88
5.2.10.0070.03710.71
5.2.00.0070.04010.96
5.1.60.0070.03010.25
5.1.50.0130.0239.98
5.1.40.0000.03710.03
5.1.30.0100.05010.32
5.1.20.0030.03710.53
5.1.10.0000.03710.15
5.1.00.0100.03310.17
5.0.50.0030.0278.56
5.0.40.0000.0308.44
5.0.30.0030.0408.34
5.0.20.0070.0238.25
5.0.10.0030.0278.12
5.0.00.0000.0438.38
4.4.90.0030.0206.96
4.4.80.0000.0236.96
4.4.70.0030.0206.96
4.4.60.0000.0236.96
4.4.50.0070.0176.96
4.4.40.0070.0306.96
4.4.30.0000.0236.96
4.4.20.0000.0336.96
4.4.10.0070.0206.96
4.4.00.0030.0306.96
4.3.110.0000.0236.96
4.3.100.0000.0206.96
4.3.90.0030.0206.96
4.3.80.0070.0276.96
4.3.70.0000.0236.96
4.3.60.0000.0236.96
4.3.50.0030.0206.96
4.3.40.0070.0276.96
4.3.30.0000.0236.96
4.3.20.0000.0236.96
4.3.10.0070.0176.96
4.3.00.0230.0136.46

preferences:
61.68 ms | 401 KiB | 5 Q