3v4l.org

run code in 300+ PHP versions simultaneously
<?php class B32 { private static $b32_chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'; public static function construct() { var_dump(self::$b32_chars[mt_rand(0, 31)]); } } B32::construct();

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)
7.3.120.0070.00714.84
7.3.110.0040.00814.79
7.3.100.0070.00714.75
7.3.90.0060.00614.82
7.3.80.0000.01314.84
7.3.70.0070.00714.62
7.3.60.0070.00714.83
7.3.50.0040.00714.71
7.3.40.0030.00914.86
7.3.30.0030.00814.69
7.3.20.0030.01416.67
7.3.10.0060.00716.51
7.3.00.0030.01316.53
7.2.240.0040.01114.96
7.2.230.0060.00614.70
7.2.220.0040.01114.75
7.2.210.0140.00315.22
7.2.200.0000.01514.66
7.2.190.0070.00714.66
7.2.180.0000.01814.95
7.2.170.0060.00315.01
7.2.160.0000.01714.83
7.2.150.0030.01016.80
7.2.140.0060.00916.80
7.2.130.0040.01016.76
7.2.120.0090.00616.77
7.2.110.0090.00516.81
7.2.100.0050.00816.84
7.2.90.0050.00816.95
7.2.80.0050.00816.74
7.2.70.0040.01216.65
7.2.60.0050.00716.85
7.2.50.0060.00816.71
7.2.40.0030.00916.97
7.2.30.0100.00316.77
7.2.20.0030.01216.85
7.2.10.0140.00416.67
7.2.00.0060.00917.59
7.1.330.0040.00715.97
7.1.320.0030.01015.72
7.1.310.0100.00315.79
7.1.300.0060.00315.49
7.1.290.0060.00315.57
7.1.280.0030.01315.92
7.1.270.0040.00815.91
7.1.260.0070.00715.68
7.1.250.0050.01015.65
7.1.70.0000.00817.18
7.1.60.0190.00619.40
7.1.50.0100.01017.02
7.1.00.0030.06322.51
7.0.200.0000.00716.52
7.0.140.0070.06722.13
7.0.120.0030.07322.13
7.0.60.0030.07020.02
7.0.50.0070.03717.88
7.0.40.0000.07020.17
7.0.30.0330.06320.19
7.0.20.0230.07320.26
7.0.10.0270.04320.33
7.0.00.0100.08020.22
5.6.280.0070.06720.85
5.6.210.0030.04020.67
5.6.200.0130.04318.12
5.6.190.0070.06320.46
5.6.180.0300.07320.61
5.6.170.0330.06020.46
5.6.160.0070.06020.44
5.6.150.0000.09018.18
5.6.140.0070.06718.14
5.6.130.0070.08018.17
5.6.120.0000.05721.15
5.6.110.0130.06720.98
5.6.100.0030.04321.04
5.6.90.0070.08021.00
5.6.80.0100.07320.38
5.6.70.0200.07020.39
5.5.350.0300.07020.38
5.5.340.0030.04018.02
5.5.330.0030.04320.44
5.5.320.0270.04320.18
5.5.310.0200.05020.24
5.5.300.0070.05317.98
5.5.290.0000.04718.02
5.5.280.0000.04320.88
5.5.270.0000.09020.75
5.5.260.0070.08320.76
5.5.250.0170.08020.59
5.5.240.0100.08020.16
5.4.450.0000.06019.46
5.4.440.0100.03319.40
5.4.430.0100.06719.44
5.4.420.0100.05719.47
5.4.410.0130.03319.34
5.4.400.0030.04319.14
5.4.390.0100.07318.87
5.4.380.0030.08718.98
5.4.370.0030.04019.20
5.4.360.0070.04318.92
5.4.350.0100.07719.20
5.4.340.0070.06019.21
5.4.320.0070.08018.85
5.4.310.0030.06318.99
5.4.300.0030.04719.20
5.4.290.0030.04318.96
5.4.280.0030.04319.09
5.4.270.0070.07319.26
5.4.260.0100.07019.23
5.4.250.0130.06719.23
5.4.240.0000.04019.24
5.4.230.0070.04018.84
5.4.220.0100.07318.85
5.4.210.0000.08019.14
5.4.200.0200.05319.11
5.4.190.0170.05719.23
5.4.180.0030.07719.19
5.4.170.0030.05019.14
5.4.160.0030.04719.13
5.4.150.0130.04019.24
5.4.140.0000.04316.38
5.4.130.0100.07016.29
5.4.120.0070.06016.50
5.4.110.0100.07316.44
5.4.100.0070.03316.39
5.4.90.0030.06316.49
5.4.80.0100.06016.39
5.4.70.0070.07316.50
5.4.60.0100.03316.33
5.4.50.0200.03016.27
5.4.40.0030.07716.36
5.4.30.0000.07716.43
5.4.20.0100.05316.36
5.4.10.0270.05716.40
5.4.00.0170.06715.92
5.3.290.0100.07314.68
5.3.280.0030.08314.59
5.3.270.0030.05314.63
5.3.260.0070.04014.63
5.3.250.0070.07014.60
5.3.240.0100.07014.67
5.3.230.0170.06314.59
5.3.220.0030.08314.56
5.3.210.0100.07314.61
5.3.200.0030.04314.62
5.3.190.0070.07314.64
5.3.180.0070.06314.71
5.3.170.0100.06714.59
5.3.160.0000.05714.55
5.3.150.0030.04014.63
5.3.140.0030.04014.47
5.3.130.0100.06014.43
5.3.120.0030.05314.57
5.3.110.0070.07714.55
5.3.100.0130.05314.11
5.3.90.0030.05314.03
5.3.80.0100.04314.07
5.3.70.0030.07314.04
5.3.60.0070.07713.99
5.3.50.0100.03713.94
5.3.40.0030.05714.00
5.3.30.0170.03713.95
5.3.20.0030.07013.75
5.3.10.0000.06313.54
5.3.00.0130.05713.52
5.2.170.0070.04011.21
5.2.160.0130.05711.12
5.2.150.0000.06711.31
5.2.140.0070.03011.21
5.2.130.0000.04311.03
5.2.120.0030.05711.07
5.2.110.0000.06711.12
5.2.100.0100.05311.11
5.2.90.0070.05311.11
5.2.80.0030.06711.09
5.2.70.0100.06311.10
5.2.60.0030.05311.21
5.2.50.0000.03011.05
5.2.40.0000.03311.04
5.2.30.0000.03310.97
5.2.20.0030.02710.95
5.2.10.0070.02310.85
5.2.00.0070.02310.72
5.1.60.0070.02010.04
5.1.50.0000.02710.00
5.1.40.0000.0239.99
5.1.30.0030.02710.29
5.1.20.0070.02310.35
5.1.10.0000.02710.04
5.1.00.0070.02010.22
5.0.50.0000.0208.51
5.0.40.0000.0238.42
5.0.30.0000.0308.30
5.0.20.0000.0208.30
5.0.10.0000.0208.30
5.0.00.0000.0308.30
4.4.90.0030.0278.30
4.4.80.0030.0178.30
4.4.70.0030.0138.30
4.4.60.0000.0178.30
4.4.50.0000.0178.30
4.4.40.0000.0238.30
4.4.30.0070.0138.30
4.4.20.0000.0178.30
4.4.10.0030.0138.30
4.4.00.0000.0278.30
4.3.110.0000.0178.30
4.3.100.0000.0138.30
4.3.90.0000.0138.30
4.3.80.0030.0278.30
4.3.70.0030.0138.30
4.3.60.0000.0138.30
4.3.50.0000.0208.30
4.3.40.0000.0238.30
4.3.30.0000.0178.30
4.3.20.0000.0138.30
4.3.10.0000.0138.30
4.3.00.0000.0178.30

preferences:
27.52 ms | 403 KiB | 5 Q