3v4l.org

run code in 300+ PHP versions simultaneously
<?php function human_filesize($bytes, $decimals = 2) {   $sz = 'BKMGTP';   $factor = floor((strlen($bytes) - 1) / 3);   return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . @$sz[$factor]; } human_filesize('') ?>

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)
5.4.320.0230.04018.95
5.4.310.0230.03719.22
5.4.300.0270.04019.31
5.4.290.0200.05018.99
5.4.280.0200.08019.24
5.4.270.0270.03719.09
5.4.260.0300.06718.87
5.4.250.0230.04719.04
5.4.240.0230.04319.23
5.4.230.0270.07319.21
5.4.220.0270.05019.14
5.4.210.0300.07719.19
5.4.200.0400.03318.97
5.4.190.0270.04718.98
5.4.180.0300.05719.19
5.4.170.0330.03719.10
5.4.160.0200.04719.06
5.4.150.0270.03319.20
5.4.140.0230.03716.43
5.4.130.0300.04016.38
5.4.120.0300.06016.50
5.4.110.0270.05016.45
5.4.100.0300.05716.45
5.4.90.0230.03716.41
5.4.80.0330.05016.54
5.4.70.0330.06316.55
5.4.60.0330.06016.56
5.4.50.0230.04016.49
5.4.40.0270.05016.43
5.4.30.0300.06716.42
5.4.20.0400.05716.23
5.4.10.0230.06016.23
5.4.00.0270.06715.79
5.3.290.0270.04014.57
5.3.280.0370.06314.68
5.3.270.0300.04014.68
5.3.260.0230.04714.52
5.3.250.0230.04314.51
5.3.240.0300.03714.52
5.3.230.0300.04714.67
5.3.220.0330.06714.48
5.3.210.0230.06314.64
5.3.200.0300.04314.57
5.3.190.0230.03714.49
5.3.180.0300.06314.48
5.3.170.0270.04714.47
5.3.160.0230.04014.73
5.3.150.0330.07014.68
5.3.140.0300.07014.45
5.3.130.0270.07714.60
5.3.120.0270.07014.78
5.3.110.0230.06314.77
5.3.100.0230.04014.13
5.3.90.0370.06314.10
5.3.80.0270.06313.91
5.3.70.0300.06714.12
5.3.60.0270.03313.91
5.3.50.0270.03313.95
5.3.40.0230.04713.99
5.3.30.0370.03713.83
5.3.20.0270.07013.91
5.3.10.0270.06013.56
5.3.00.0230.05313.79
5.2.170.0200.05311.30
5.2.160.0270.05011.23
5.2.150.0230.06011.14
5.2.140.0200.03011.11
5.2.130.0230.03711.02
5.2.120.0230.03711.21
5.2.110.0270.05711.09
5.2.100.0200.03311.03
5.2.90.0200.06011.32
5.2.80.0270.05011.01
5.2.70.0230.06011.09
5.2.60.0330.03311.26
5.2.50.0300.05010.91
5.2.40.0200.05711.07
5.2.30.0200.06311.05
5.2.20.0230.04310.87
5.2.10.0200.03710.91
5.2.00.0170.04010.63
5.1.60.0130.02710.04
5.1.50.0170.02710.07
5.1.40.0300.0379.90
5.1.30.0230.05010.27
5.1.20.0170.05310.46
5.1.10.0230.05010.22
5.1.00.0200.05010.14
5.0.50.0100.0439.90
5.0.40.0100.0209.90
5.0.30.0100.0409.90
5.0.20.0100.0279.90
5.0.10.0100.0309.90
5.0.00.0130.0409.90
4.4.90.0070.0309.90
4.4.80.0130.0239.90
4.4.70.0070.0209.90
4.4.60.0130.0109.90
4.4.50.0100.0139.90
4.4.40.0100.0239.90
4.4.30.0070.0179.90
4.4.20.0070.0209.90
4.4.10.0170.0309.90
4.4.00.0070.0339.90
4.3.110.0070.0179.90
4.3.100.0130.0309.90
4.3.90.0100.0179.90
4.3.80.0100.0539.90
4.3.70.0170.0179.90
4.3.60.0100.0179.90
4.3.50.0130.0309.90
4.3.40.0130.0479.90
4.3.30.0030.0209.90
4.3.20.0100.0139.90
4.3.10.0000.0209.90
4.3.00.0030.0379.90

preferences:
142.62 ms | 1386 KiB | 7 Q