3v4l.org

run code in 300+ PHP versions simultaneously
<?php $token = sha1( mt_rand() . posix_getpid() . microtime( true ) ); echo substr( $token, rand( 0, 3 ), rand( 4, 6 ) ) . strtoupper( substr( $token, rand( 2, 5 ), rand( 2, 7 ) ) ) . substr( $token, rand( 20, 30 ), rand( 5, 8 ) );

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.00.0070.01314.87
7.3.120.0050.01114.89
7.3.110.0060.00914.82
7.3.100.0030.01214.66
7.3.90.0080.00514.69
7.3.80.0090.00814.95
7.3.70.0080.00414.65
7.3.60.0100.00514.69
7.3.50.0120.00314.65
7.3.40.0030.01214.80
7.3.30.0040.00914.81
7.3.20.0070.00716.65
7.3.10.0070.00716.58
7.3.00.0050.01016.50
7.2.250.0030.01714.88
7.2.240.0110.00715.01
7.2.230.0070.00915.17
7.2.220.0100.00315.10
7.2.210.0050.00814.85
7.2.200.0080.00614.82
7.2.190.0080.00614.96
7.2.180.0050.01014.76
7.2.170.0080.00815.01
7.2.160.0070.01014.84
7.2.150.0040.01116.86
7.2.140.0120.00616.84
7.2.130.0070.01016.90
7.2.120.0080.00816.93
7.2.110.0080.00816.93
7.2.100.0050.00916.77
7.2.90.0100.00316.81
7.2.80.0000.01416.80
7.2.70.0100.00616.75
7.2.60.0050.01116.92
7.2.50.0040.00716.81
7.2.40.0060.00816.77
7.2.30.0050.00916.81
7.2.20.0070.00516.68
7.2.10.0080.00716.80
7.2.00.0050.00917.67
7.1.330.0030.01015.71
7.1.320.0020.01115.57
7.1.310.0050.01015.73
7.1.300.0050.00715.59
7.1.290.0050.00915.66
7.1.280.0100.00515.80
7.1.270.0100.00415.58
7.1.260.0070.00815.81
7.1.250.0050.01015.49
7.1.240.0060.00615.45
7.1.230.0030.01015.65
7.1.220.0090.00315.70
7.1.210.0030.01015.79
7.1.200.0000.01115.84
7.1.190.0100.00415.68
7.1.180.0000.00815.55
7.1.170.0060.00915.49
7.1.160.0060.00915.84
7.1.150.0040.00815.67
7.1.140.0040.00715.79
7.1.130.0040.01115.51
7.1.120.0060.01015.59
7.1.110.0060.00315.63
7.1.100.0060.00315.82
7.1.90.0060.00315.62
7.1.80.0060.00815.82
7.1.70.0050.00416.40
7.1.60.0050.01317.64
7.1.50.0140.00725.23
7.1.40.0000.01315.84
7.1.30.0050.00315.67
7.1.20.0000.01215.71
7.1.10.0030.00715.84
7.1.00.0000.04419.12
7.0.330.0090.00315.08
7.0.320.0070.00715.43
7.0.310.0040.00415.07
7.0.300.0060.00615.16
7.0.290.0030.01015.44
7.0.280.0040.00815.50
7.0.270.0090.00615.27
7.0.260.0060.00615.26
7.0.250.0040.01115.42
7.0.240.0140.00315.36
7.0.230.0030.00515.28
7.0.220.0080.00415.48
7.0.210.0100.00715.32
7.0.200.0050.00616.00
7.0.190.0050.00515.04
7.0.180.0000.01815.13
7.0.170.0130.00015.21
7.0.160.0040.00415.34
7.0.150.0000.00715.12
7.0.140.0090.03718.70
7.0.130.0040.00715.29
7.0.120.0060.00315.47
7.0.110.0060.00315.43
7.0.100.0030.00915.43
7.0.90.0040.00815.43
7.0.80.0030.00915.30
7.0.70.0000.01115.15
7.0.60.0140.02517.60
7.0.50.0070.02216.66
7.0.40.0060.02516.78
7.0.30.0350.03016.71
7.0.20.0120.02316.63
7.0.10.0040.05216.81
7.0.00.0070.03416.69
5.6.380.0090.00614.34
5.6.370.0080.00314.30
5.6.360.0060.00614.10
5.6.350.0030.01014.37
5.6.340.0070.00314.53
5.6.330.0100.00014.13
5.6.320.0070.00714.30
5.6.310.0080.00014.44
5.6.300.0080.00414.10
5.6.290.0030.01014.28
5.6.280.0030.04017.71
5.6.270.0040.00414.45
5.6.260.0030.00714.38
5.6.250.0030.00514.36
5.6.240.0070.01014.03
5.6.230.0030.00914.21
5.6.220.0100.00314.49
5.6.210.0150.04017.58
5.6.200.0050.02316.03
5.6.190.0070.04217.21
5.6.180.1570.02517.51
5.6.170.0130.04317.48
5.6.160.0020.02517.27
5.6.150.0090.03216.09
5.6.140.0050.04316.23
5.6.130.0030.03516.30
5.6.120.0050.02517.76
5.6.110.0100.04217.67
5.6.100.0110.04217.73
5.6.90.0070.04417.58
5.6.80.0080.02817.41
5.6.70.2300.01817.26
5.6.60.0070.00414.06
5.6.50.0070.00414.42
5.6.40.0070.00714.45
5.6.30.0040.00714.13
5.6.20.0070.00414.01
5.6.10.0000.01013.94
5.6.00.0080.00413.98
5.5.380.0070.00311.18
5.5.370.0070.00411.18
5.5.360.0070.00011.18
5.5.350.0050.01915.75
5.5.340.0070.02714.58
5.5.330.0050.02715.69
5.5.320.2000.02415.72
5.5.310.0160.02815.75
5.5.300.0100.03714.59
5.5.290.0030.02114.62
5.5.280.0070.02215.95
5.5.270.0060.02216.06
5.5.260.0030.04516.05
5.5.250.0060.04615.98
5.5.240.0170.03715.76
5.5.230.0000.01011.18
5.5.220.0000.01011.18
5.5.210.0040.00411.18
5.5.200.0030.00511.18
5.5.190.0030.00511.18
5.5.180.0070.00011.18
5.5.170.0000.00711.18
5.5.160.0030.00311.18
5.5.150.0090.00011.18
5.5.140.0100.00311.18
5.5.130.0000.01211.18
5.5.120.0050.00511.18
5.5.110.0030.00711.18
5.5.100.0100.00011.18
5.5.90.0060.00011.18
5.5.80.0000.01111.21
5.5.70.0000.00611.18
5.5.60.0000.00911.18
5.5.50.0030.00711.18
5.5.40.0000.00611.18
5.5.30.0050.00311.18
5.5.20.0050.00211.18
5.5.10.0030.00611.18
5.5.00.0030.00711.18
5.4.450.0520.04015.31
5.4.440.0360.04615.36
5.4.430.0110.02515.24
5.4.420.0050.03515.25
5.4.410.0070.03015.05
5.4.400.0070.02714.99
5.4.390.0050.03014.90
5.4.380.0020.03414.93
5.4.370.0050.03714.83
5.4.360.0100.02914.84
5.4.350.0080.02411.58
5.4.340.0050.02211.58
5.4.330.0040.00811.19
5.4.320.0050.01911.82
5.4.310.0060.02111.82
5.4.300.0050.02711.82
5.4.290.0070.02611.82
5.4.280.0070.02711.77
5.4.270.0070.02711.76
5.4.260.0070.02811.77
5.4.250.0080.02511.77
5.4.240.0030.02611.77
5.4.230.0050.02411.76
5.4.220.0090.02911.76
5.4.210.0070.02611.76
5.4.200.0070.02811.76
5.4.190.0060.03011.76
5.4.180.0060.02511.76
5.4.170.0040.02911.77
5.4.160.0070.02111.76
5.4.150.0070.02111.76
5.4.140.0060.03311.60
5.4.130.0030.02611.60
5.4.120.0060.02411.58
5.4.110.0070.02311.57
5.4.100.0040.02311.57
5.4.90.0050.02711.57
5.4.80.0030.02411.57
5.4.70.0060.02211.57
5.4.60.0030.02211.57
5.4.50.0060.01811.57
5.4.40.0070.02111.56
5.4.30.0040.02211.57
5.4.20.0080.01811.56
5.4.10.0050.02211.56
5.4.00.0080.02211.31
5.3.290.0070.02711.99
5.3.280.0060.02211.94
5.3.270.0070.02211.95
5.3.260.0030.02411.95
5.3.250.0040.02211.95
5.3.240.0030.02411.95
5.3.230.0050.02211.94
5.3.220.0060.02111.93
5.3.210.0060.02211.93
5.3.200.0070.02111.93
5.3.190.0070.02411.93
5.3.180.0060.02211.93
5.3.170.0040.02711.92
5.3.160.0080.02511.92
5.3.150.0060.02811.93
5.3.140.0070.02711.92
5.3.130.0070.02611.92
5.3.120.0070.02311.92
5.3.110.0080.02411.92
5.3.100.0110.02311.65
5.3.90.0090.02711.63
5.3.80.0040.02411.63
5.3.70.0040.02011.63
5.3.60.0060.02111.62
5.3.50.0040.02311.59
5.3.40.0060.02011.59
5.3.30.0030.02211.56
5.3.20.0070.01711.46
5.3.10.0090.02411.44
5.3.00.0040.02411.43
5.2.170.0050.01810.18
5.2.160.0040.01710.18
5.2.150.0030.01810.18
5.2.140.0050.01710.18
5.2.130.0060.01610.16
5.2.120.0030.01810.16
5.2.110.0020.01810.16
5.2.100.0040.01710.16
5.2.90.0030.01710.16
5.2.80.0070.01710.16
5.2.70.0050.01710.16
5.2.60.0060.01610.13
5.2.50.0040.01810.12
5.2.40.0060.02010.11
5.2.30.0060.02310.10
5.2.20.0050.02110.10
5.2.10.0060.02110.07
5.2.00.0050.0219.99
5.1.60.0020.0199.64
5.1.50.0040.0159.63
5.1.40.0030.0179.63
5.1.30.0040.0159.80
5.1.20.0030.0189.81
5.1.10.0050.0169.67
5.1.00.0040.0169.67
5.0.50.0040.0138.91
5.0.40.0060.0108.84
5.0.30.0020.0198.75
5.0.20.0030.0118.73
5.0.10.0030.0128.72
5.0.00.0070.0148.72
4.4.90.0010.0127.97
4.4.80.0040.0087.97
4.4.70.0030.0107.97
4.4.60.0010.0107.96
4.4.50.0020.0097.97
4.4.40.0010.0167.94
4.4.30.0050.0117.97
4.4.20.0010.0148.01
4.4.10.0040.0098.01
4.4.00.0030.0177.97
4.3.110.0010.0167.92
4.3.100.0020.0157.92
4.3.90.0020.0107.90
4.3.80.0020.0147.88
4.3.70.0030.0107.90
4.3.60.0000.0117.90
4.3.50.0030.0097.90
4.3.40.0010.0187.86
4.3.30.0010.0157.25
4.3.20.0020.0137.23
4.3.10.0010.0147.21
4.3.00.0070.0128.94

preferences:
36.05 ms | 401 KiB | 5 Q