3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = 2; $length = 5; $text = substr( base64_encode( $data . microtime(true) ), 0, $length ); echo $text;

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.4.10.0080.00814.79
7.4.00.0080.01014.89
7.3.130.0120.00614.59
7.3.120.0070.00914.69
7.3.110.0030.01314.72
7.3.100.0070.00814.93
7.3.90.0070.00814.87
7.3.80.0060.00914.74
7.3.70.0010.01214.71
7.3.60.0040.01114.74
7.3.50.0080.00514.65
7.3.40.0060.00614.77
7.3.30.0070.00614.64
7.3.20.0080.00616.60
7.3.10.0040.00816.60
7.3.00.0050.00816.68
7.2.260.0070.01015.27
7.2.250.0030.01115.09
7.2.240.0090.00615.00
7.2.230.0100.00514.90
7.2.220.0050.00914.97
7.2.210.0060.01014.83
7.2.200.0060.00915.10
7.2.190.0040.01014.95
7.2.180.0030.00914.97
7.2.170.0050.00915.03
7.2.160.0030.01115.11
7.2.150.0020.01416.95
7.2.140.0060.01016.80
7.2.130.0050.01116.93
7.2.120.0030.01116.68
7.2.110.0080.00616.94
7.2.100.0050.00516.84
7.2.90.0050.00717.06
7.2.80.0070.00616.92
7.2.70.0090.00816.97
7.2.60.0060.00416.93
7.2.50.0030.01016.96
7.2.40.0120.00516.97
7.2.30.0060.00516.94
7.2.20.0050.01016.85
7.2.10.0100.00416.75
7.2.00.0040.00917.77
7.1.330.0030.00815.71
7.1.320.0040.00915.84
7.1.310.0070.00515.93
7.1.300.0050.00815.90
7.1.290.0090.00515.85
7.1.280.0040.00915.72
7.1.270.0100.00315.89
7.1.260.0060.00715.84
7.1.250.0080.00415.65
7.1.240.0000.00815.71
7.1.230.0100.00315.72
7.1.220.0030.00915.98
7.1.210.0030.00615.71
7.1.200.0000.00915.78
7.1.190.0080.00015.86
7.1.180.0070.00315.91
7.1.170.0030.00515.96
7.1.160.0060.00915.98
7.1.150.0000.00815.86
7.1.140.0090.00015.83
7.1.130.0000.00815.87
7.1.120.0070.00715.87
7.1.110.0050.00515.64
7.1.100.0060.00917.00
7.1.90.0030.00715.75
7.1.80.0060.00915.92
7.1.70.0050.00716.27
7.1.60.0080.01017.61
7.1.50.0070.01016.41
7.1.40.0040.01115.60
7.1.30.0090.00315.76
7.1.20.0110.00415.84
7.1.10.0100.00715.80
7.1.00.0060.04019.05
7.0.330.0060.00315.36
7.0.320.0000.01015.23
7.0.310.0030.00915.29
7.0.300.0000.01415.18
7.0.290.0040.01115.48
7.0.280.0040.00415.14
7.0.270.0040.00815.38
7.0.260.0060.00615.65
7.0.250.0070.00315.23
7.0.240.0070.00715.49
7.0.230.0070.01015.56
7.0.220.0070.00715.39
7.0.210.0090.00315.19
7.0.200.0180.00315.25
7.0.190.0040.01115.68
7.0.180.0040.00415.51
7.0.170.0060.00615.20
7.0.160.0070.00715.20
7.0.150.0000.00815.28
7.0.140.0030.00715.55
7.0.130.0000.00815.26
7.0.120.0090.00615.52
7.0.110.0060.00915.47
7.0.100.0030.01315.50
7.0.90.0060.00315.26
7.0.80.0030.00915.32
7.0.70.0000.00915.65
7.0.60.0130.04017.73
7.0.50.0050.03916.81
7.0.40.0070.02916.62
7.0.30.0170.04016.86
7.0.20.0170.03716.76
7.0.10.0090.04316.71
7.0.00.0030.05116.87
5.6.400.0100.00314.62
5.6.390.0060.00314.09
5.6.380.0050.00514.52
5.6.370.0100.00714.51
5.6.360.0060.00914.60
5.6.350.0030.00714.54
5.6.340.0070.00714.26
5.6.330.0030.01014.25
5.6.320.0000.01514.27
5.6.310.0030.01014.20
5.6.300.0060.00614.45
5.6.290.0120.00314.27
5.6.280.0030.02017.64
5.6.270.0130.00314.33
5.6.260.0030.01213.95
5.6.250.0080.00814.17
5.6.240.0030.00714.41
5.6.230.0100.00314.26
5.6.220.0090.00314.11
5.6.210.0060.02817.29
5.6.200.0050.03316.19
5.6.190.0070.02717.43
5.6.180.0200.03117.41
5.6.170.0120.04417.46
5.6.160.0030.04217.47
5.6.150.0050.03516.29
5.6.140.0090.03316.04
5.6.130.0050.04216.12
5.6.120.0070.04217.60
5.6.110.0130.04217.63
5.6.100.0110.04117.70
5.6.90.0030.02417.62
5.6.80.0050.02517.42
5.6.70.0060.00914.41
5.6.60.0080.00814.51
5.6.50.0000.01314.23
5.6.40.0060.00614.29
5.6.30.0070.00714.27
5.6.20.0080.00814.15
5.6.10.0080.00413.93
5.6.00.0060.01213.91
5.5.380.0090.00314.36
5.5.370.0110.00414.12
5.5.360.0070.00714.28
5.5.350.0100.04117.37
5.5.340.0060.02016.10
5.5.330.0020.02517.29
5.5.320.0070.02017.30
5.5.310.0120.02817.23
5.5.300.0060.02316.17
5.5.290.0050.04916.02
5.5.280.0100.03917.52
5.5.270.0040.02617.49
5.5.260.0050.04117.44
5.5.250.0080.04417.53
5.5.240.0150.03517.12
5.5.230.0030.00614.02
5.5.220.0030.01214.35
5.5.210.0120.00014.47
5.5.200.0110.00314.13
5.5.190.0000.00813.77
5.5.180.0070.00714.21
5.5.170.0090.00914.19
5.5.160.0060.01214.18
5.5.150.0060.01214.05
5.5.140.0030.01014.22
5.5.130.0000.01314.19
5.5.120.0080.00414.24
5.5.110.0040.00414.28
5.5.100.0040.01213.90
5.5.90.0060.00614.28
5.5.80.0030.01013.96
5.5.70.0070.01014.19
5.5.60.0100.00714.30
5.5.50.0100.00713.95
5.5.40.0130.00613.95
5.5.30.0130.00314.15
5.5.20.0030.01414.02
5.5.10.0030.01014.19
5.5.00.0090.00614.21

preferences:
42.68 ms | 401 KiB | 5 Q