3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank"); $rand_keys = array_rand($input); var_dump($rand_keys);

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.2.30.0070.00618.47
7.3.90.0090.00914.46
7.3.80.0080.00514.71
7.3.70.0100.01014.27
7.3.60.0170.00314.58
7.3.50.0090.00914.73
7.3.40.0190.00014.70
7.3.30.0110.00814.49
7.3.20.0110.00416.45
7.3.10.0120.00316.45
7.3.00.0090.01216.41
7.2.220.0120.00614.55
7.2.210.0040.01414.48
7.2.200.0120.00914.92
7.2.190.0070.00714.91
7.2.180.0090.00914.56
7.2.170.0130.00614.63
7.2.160.0000.01714.71
7.2.150.0050.01116.84
7.2.140.0090.00616.55
7.2.130.0060.00916.82
7.2.120.0100.01016.51
7.2.110.0060.01016.72
7.2.100.0030.01716.45
7.2.90.0160.00316.50
7.2.80.0090.00916.58
7.2.70.0000.01516.87
7.2.60.0090.00616.67
7.2.50.0060.00916.59
7.2.40.0100.01016.60
7.2.30.0120.00316.66
7.2.20.0110.00316.83
7.2.10.0030.01016.88
7.2.00.0110.00818.07
7.1.320.0060.00915.75
7.1.310.0000.01315.53
7.1.300.0060.01215.40
7.1.290.0080.01215.71
7.1.280.0030.01115.68
7.1.270.0040.01115.71
7.1.260.0030.01115.58
7.1.250.0030.01115.66
7.1.240.0090.00615.57
7.1.230.0080.00815.74
7.1.220.0120.00615.72
7.1.210.0120.00615.72
7.1.200.0000.01615.40
7.1.190.0110.00315.53
7.1.180.0100.00315.73
7.1.170.0080.00515.78
7.1.160.0070.00715.75
7.1.150.0110.00315.75
7.1.140.0100.00315.70
7.1.130.0090.00415.61
7.1.120.0160.00315.50
7.1.110.0090.00915.73
7.1.100.0070.00715.83
7.1.90.0200.01715.82
7.1.80.0100.00915.46
7.1.70.0070.00515.47
7.1.60.0050.01316.88
7.1.50.0250.01115.37
7.1.40.0070.00713.81
7.1.30.0070.00713.67
7.1.20.0030.01013.75
7.1.10.0060.00913.92
7.1.00.0030.04418.02
7.0.330.0120.00315.36
7.0.320.0160.01015.38
7.0.310.0130.00615.24
7.0.300.0110.00915.08
7.0.290.0160.00315.18
7.0.280.0060.01215.49
7.0.270.0150.00515.30
7.0.260.0120.00915.30
7.0.250.0070.01415.47
7.0.240.0110.00715.41
7.0.230.0160.00815.26
7.0.220.0160.00515.25
7.0.210.0120.01213.59
7.0.200.0150.00415.08
7.0.190.0110.01113.56
7.0.180.0150.00613.52
7.0.170.0110.00813.27
7.0.160.0220.00313.45
7.0.150.0080.01313.33
7.0.140.0120.03517.75
7.0.130.0160.00713.21
7.0.120.0200.00013.30
7.0.110.0200.00613.33
7.0.100.0130.00713.43
7.0.90.0120.00813.29
7.0.80.0190.00013.27
7.0.70.0110.03317.52
7.0.60.0130.03617.59
7.0.50.0170.03917.78
7.0.40.0140.03016.85
7.0.30.0090.04716.83
7.0.20.0090.04517.66
7.0.10.0100.04516.86
7.0.00.0080.03416.86
5.6.400.0060.01513.78
5.6.390.0140.00814.39
5.6.380.0060.01214.07
5.6.370.0130.00914.00
5.6.360.0160.00813.96
5.6.350.0130.01013.96
5.6.340.0100.01014.35
5.6.330.0200.00614.43
5.6.320.0110.00814.04
5.6.310.0220.00014.39
5.6.300.0090.01214.03
5.6.290.0150.00414.27
5.6.280.0110.03817.57
5.6.270.0110.01114.17
5.6.260.0170.00314.12
5.6.250.0130.00914.35
5.6.240.0110.00814.23
5.6.230.0090.00914.17
5.6.220.0060.03517.44
5.6.210.0120.03817.38
5.6.200.0140.04317.56
5.6.190.0170.03817.61
5.6.180.0080.04817.62
5.6.170.0090.04917.55
5.6.160.0090.03917.58
5.6.150.0050.04917.48
5.6.140.0110.03217.62
5.6.130.0160.04317.56
5.6.120.0090.04517.76
5.6.110.0150.04117.61
5.6.100.0160.03817.55
5.6.90.0120.04217.54
5.6.80.0130.04217.25
5.6.70.0100.04017.24
5.6.60.0110.03217.07
5.6.50.0060.04817.24
5.6.40.0130.03717.25
5.6.30.0070.03017.24
5.6.20.0120.02617.33
5.6.10.0090.04517.20
5.6.00.0130.03817.25
5.5.380.0100.01014.16
5.5.370.0120.00814.23
5.5.360.0110.04117.20
5.5.350.0110.04417.35
5.5.340.0110.04317.29
5.5.330.0100.04817.31
5.5.320.0090.04317.52
5.5.310.0080.04717.51
5.5.300.0150.04017.56
5.5.290.0060.04917.55
5.5.280.0080.04717.57
5.5.270.0100.03017.54
5.5.260.0180.03817.47
5.5.250.0100.04417.05
5.5.240.0160.03717.09
5.5.230.0120.03717.08
5.5.220.0050.04616.96
5.5.210.0070.04317.23
5.5.200.0100.03717.08
5.5.190.0100.04217.03
5.5.180.0090.04217.06
5.5.170.0080.01613.67
5.5.160.0070.04117.07
5.5.150.0160.03517.03
5.5.140.0090.04117.13
5.5.130.0110.02217.18
5.5.120.0070.04217.20
5.5.110.0050.02716.92
5.5.100.0120.02716.90
5.5.90.0100.02717.05
5.5.80.0090.02116.97
5.5.70.0130.02017.11
5.5.60.0120.03716.99
5.5.50.0110.02516.83
5.5.40.0050.02716.91
5.5.30.0070.04017.02
5.5.20.0070.02316.86
5.5.10.0060.03917.05
5.5.00.0080.03616.76
5.4.450.0100.03815.84
5.4.440.0070.04415.84
5.4.430.0110.04015.96
5.4.420.0070.03315.79
5.4.410.0070.02815.85
5.4.400.0050.03015.70
5.4.390.0090.04015.80
5.4.380.0030.03015.68
5.4.370.0100.03815.79
5.4.360.0070.03315.79
5.4.350.0100.03815.78
5.4.340.0080.04315.79
5.4.330.0130.00612.46
5.4.320.0070.04015.76
5.4.310.0040.04615.76
5.4.300.0040.02515.79
5.4.290.0030.02515.72
5.4.280.0060.04515.78
5.4.270.0070.02515.62
5.4.260.0090.03815.79
5.4.250.0070.02015.85
5.4.240.0090.02015.75
5.4.230.0060.02215.68
5.4.220.0050.02515.62
5.4.210.0070.03215.75
5.4.200.0040.03415.71
5.4.190.0060.03515.70
5.4.180.0080.04015.74
5.4.170.0100.03515.74
5.4.160.0080.03515.61
5.4.150.0060.02015.67
5.4.140.0080.03114.38
5.4.130.0080.02214.39
5.4.120.0060.03414.36
5.4.110.0060.03914.41
5.4.100.0080.03314.40
5.4.90.0070.03514.36
5.4.80.0070.03814.39
5.4.70.0040.03914.38
5.4.60.0070.03714.38
5.4.50.0020.03114.42
5.4.40.0040.02614.43
5.4.30.0030.02314.31
5.4.20.0090.01814.44
5.4.10.0040.02414.38
5.4.00.0030.02214.02
5.3.290.0050.04213.47
5.3.280.0040.02913.48
5.3.270.0120.03413.49
5.3.260.0050.02713.52
5.3.250.0050.02013.45
5.3.240.0090.03813.46
5.3.230.0090.03813.52
5.3.220.0100.02213.50
5.3.210.0060.04013.44
5.3.200.0070.04013.50
5.3.190.0050.02313.51
5.3.180.0060.03013.49
5.3.170.0050.04013.50
5.3.160.0070.02813.44
5.3.150.0040.02713.50
5.3.140.0100.03113.41
5.3.130.0070.01813.43
5.3.120.0030.03113.43
5.3.110.0040.02813.49
5.3.100.0060.02713.15
5.3.90.0060.03913.22
5.3.80.0050.02413.23
5.3.70.0100.01613.16
5.3.60.0040.02113.20
5.3.50.0050.02813.19
5.3.40.0060.02113.19
5.3.30.0020.02313.11
5.3.20.0050.02413.05
5.3.10.0080.03313.04
5.3.00.0080.03213.02

preferences:
39.13 ms | 400 KiB | 5 Q