3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank"); $rand_keys = array_rand($input, 1); echo $rand_keys . "\n"; echo $input[$rand_keys[0]] . "\n"; echo $input[$rand_keys[1]] . "\n"; ?>

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.0030.01614.79
7.4.00.0080.01014.80
7.3.130.0100.00714.77
7.3.120.0090.00614.63
7.3.110.0070.01314.66
7.3.100.0040.00814.93
7.3.90.0080.00415.00
7.3.80.0040.00714.95
7.3.70.0030.01014.98
7.3.60.0070.00315.02
7.3.50.0070.00714.85
7.3.40.0090.00614.53
7.3.30.0070.00314.93
7.3.20.0060.00316.77
7.3.10.0060.00916.63
7.3.00.0070.00716.78
7.2.260.0070.01015.07
7.2.250.0070.01115.05
7.2.240.0100.00314.87
7.2.230.0100.00315.00
7.2.220.0070.00715.11
7.2.210.0080.00814.98
7.2.200.0040.01115.02
7.2.190.0000.01415.16
7.2.180.0110.00414.80
7.2.170.0070.00715.24
7.2.160.0070.00314.96
7.2.150.0070.01116.96
7.2.140.0100.00716.67
7.2.130.0120.00316.72
7.2.120.0030.01216.96
7.2.110.0040.01416.96
7.2.100.0110.00617.03
7.2.90.0000.01116.98
7.2.80.0110.00817.14
7.2.70.0130.00317.00
7.2.60.0120.00316.93
7.2.50.0070.00717.15
7.2.40.0060.00317.05
7.2.30.0140.00017.09
7.2.20.0100.00716.84
7.2.10.0060.01216.86
7.2.00.0050.00918.01
7.1.330.0070.00715.73
7.1.320.0060.00915.88
7.1.310.0030.00615.91
7.1.300.0030.00915.75
7.1.290.0060.00615.84
7.1.280.0030.01015.75
7.1.270.0030.01315.76
7.1.260.0040.01115.68
7.1.250.0080.00315.74
7.1.240.0030.00915.82
7.1.230.0040.00415.88
7.1.220.0110.00315.86
7.1.210.0050.00915.62
7.1.200.0060.01215.87
7.1.190.0030.01015.72
7.1.180.0060.00315.91
7.1.170.0090.00615.93
7.1.160.0040.00715.90
7.1.150.0100.00315.93
7.1.140.0030.01316.05
7.1.130.0030.01215.89
7.1.120.0100.00315.81
7.1.110.0030.00615.92
7.1.100.0070.00715.94
7.1.90.0040.01115.99
7.1.80.0070.01015.60
7.1.70.0030.00516.49
7.1.60.0050.00917.83
7.1.50.0030.01616.24
7.1.40.0100.00315.73
7.1.30.0130.00315.81
7.1.20.0120.00315.79
7.1.10.0060.00815.87
7.1.00.0070.04019.14
7.0.330.0070.00315.32
7.0.320.0040.00815.23
7.0.310.0080.00815.37
7.0.300.0060.00615.18
7.0.290.0090.00315.23
7.0.280.0000.01015.25
7.0.270.0000.01515.49
7.0.260.0100.00315.25
7.0.250.0070.00715.54
7.0.240.0060.01215.26
7.0.230.0090.00615.33
7.0.220.0040.00415.57
7.0.210.0070.00715.43
7.0.200.0030.00616.07
7.0.190.0090.00915.44
7.0.180.0030.01515.32
7.0.170.0120.00315.57
7.0.160.0040.00415.04
7.0.150.0040.00715.46
7.0.140.0020.04218.71
7.0.130.0050.00515.66
7.0.120.0000.01315.31
7.0.110.0090.00315.32
7.0.100.0080.00015.35
7.0.90.0070.00715.52
7.0.80.0350.04017.68
7.0.70.0360.03517.61
7.0.60.0270.02517.75
7.0.50.0080.03917.96
7.0.40.0000.05016.82
7.0.30.0100.04316.70
7.0.20.0060.02716.59
7.0.10.0070.04416.73
7.0.00.0060.03216.79
5.6.400.0090.00614.38
5.6.390.0070.00314.25
5.6.380.0000.01514.41
5.6.370.0080.00814.39
5.6.360.0000.01414.62
5.6.350.0070.00714.51
5.6.340.0100.00714.30
5.6.330.0000.01014.28
5.6.320.0100.00614.31
5.6.310.0080.00614.14
5.6.300.0090.00614.77
5.6.290.0030.00614.29
5.6.280.0070.03717.79
5.6.270.0040.01114.47
5.6.260.0120.00314.60
5.6.250.0040.00914.29
5.6.240.0070.00714.34
5.6.230.0070.04517.49
5.6.220.0050.04917.42
5.6.210.0070.04017.55
5.6.200.0060.04117.74
5.6.190.0080.04017.58
5.6.180.0020.04817.62
5.6.170.0030.04417.56
5.6.160.0080.02517.90
5.6.150.0110.03817.61
5.6.140.0050.03817.70
5.6.130.0120.03917.63
5.6.120.0050.05217.71
5.6.110.0070.04717.78
5.6.100.0080.04517.67
5.6.90.0100.04017.62
5.6.80.0030.02317.36
5.6.70.0020.02817.37
5.6.60.0050.02817.41
5.6.50.0030.02417.27
5.6.40.0110.01817.14
5.6.30.0050.02317.46
5.6.20.0040.03917.23
5.6.10.0000.02717.28
5.6.00.0020.04317.25
5.5.380.0080.00014.42
5.5.370.0140.03617.37
5.5.360.0050.04317.32
5.5.350.0030.03417.52
5.5.340.0050.04317.66
5.5.330.0050.03317.56
5.5.320.0050.02117.69
5.5.310.0050.04317.78
5.5.300.0050.02917.47
5.5.290.0070.02517.65
5.5.280.0070.03217.54
5.5.270.0110.04017.76
5.5.260.0020.05017.63
5.5.250.0070.02517.29
5.5.240.0070.02317.16
5.5.230.0040.02617.28
5.5.220.0040.02517.18
5.5.210.0030.02517.23
5.5.200.0050.02817.22
5.5.190.0020.02017.31
5.5.180.0090.01817.19
5.5.170.0130.00314.36
5.5.160.0040.03217.12
5.5.150.0070.02117.09
5.5.140.0070.04117.11
5.5.130.0160.03217.29
5.5.120.0050.02317.21
5.5.110.0060.02217.31
5.5.100.0000.03217.22
5.5.90.0030.02217.13
5.5.80.0060.02117.19
5.5.70.0050.01817.14
5.5.60.0020.02317.13
5.5.50.0080.02017.08
5.5.40.0050.02417.21
5.5.30.0030.02317.19
5.5.20.0060.02017.08
5.5.10.0020.02617.08
5.5.00.0030.02217.00
5.4.450.0070.04415.07
5.4.440.0020.03115.19
5.4.430.0080.03915.13
5.4.420.0040.04415.19
5.4.410.0070.03315.22
5.4.400.0090.02315.04
5.4.390.0070.02015.04
5.4.380.0060.02314.97
5.4.370.0020.02714.92
5.4.360.0020.02615.01
5.4.350.0050.01714.95
5.4.340.0040.02115.16
5.4.330.0090.00311.01
5.4.320.0030.02214.94
5.4.310.0020.02415.16
5.4.300.0070.03115.04
5.4.290.0070.01614.91
5.4.280.0080.01715.04
5.4.270.0070.02015.07
5.4.260.0050.02215.12
5.4.250.0030.02315.05
5.4.240.0020.02015.09
5.4.230.0050.01914.95
5.4.220.0080.01614.86
5.4.210.0050.02314.99
5.4.200.0020.02115.01
5.4.190.0040.02014.85
5.4.180.0070.02015.17
5.4.170.0050.01814.97
5.4.160.0020.02115.11
5.4.150.0030.02014.88
5.4.140.0050.03013.52
5.4.130.0030.02013.63
5.4.120.0070.01913.65
5.4.110.0020.02513.68
5.4.100.0030.02013.79
5.4.90.0030.02813.63
5.4.80.0080.01713.67
5.4.70.0050.04013.58
5.4.60.0080.03513.75
5.4.50.0050.03713.62
5.4.40.0050.04513.77
5.4.30.0050.04013.65
5.4.20.0100.03013.61
5.4.10.0040.04013.60
5.4.00.0030.03013.33
5.3.290.0050.02012.79
5.3.280.0040.02012.76
5.3.270.0100.01512.74
5.3.260.0030.02312.67
5.3.250.0020.02112.74
5.3.240.0030.02312.76
5.3.230.0070.01712.75
5.3.220.0030.02012.67
5.3.210.0050.02012.72
5.3.200.0030.02212.73
5.3.190.0050.02312.73
5.3.180.0070.01812.70
5.3.170.0020.02412.67
5.3.160.0050.04012.72
5.3.150.0030.04212.66
5.3.140.0030.02812.73
5.3.130.0070.03712.72
5.3.120.0100.02312.69
5.3.110.0050.04012.72
5.3.100.0080.03012.40
5.3.90.0030.03012.46
5.3.80.0020.04012.47
5.3.70.0060.03412.44
5.3.60.0030.02812.34
5.3.50.0030.02512.43
5.3.40.0050.02912.42
5.3.30.0030.03212.34
5.3.20.0030.02412.29
5.3.10.0100.03412.19
5.3.00.0070.02512.23
5.2.170.0000.04711.73
5.2.160.0070.03011.73
5.2.150.0100.06311.73
5.2.140.0030.05011.73
5.2.130.0030.03011.73
5.2.120.0030.06711.73
5.2.110.0000.04711.73
5.2.100.0070.05711.73
5.2.90.0030.03311.73
5.2.80.0070.03311.73
5.2.70.0070.03311.73
5.2.60.0030.06311.73
5.2.50.0030.06311.73
5.2.40.0070.06311.73
5.2.30.0000.06711.73
5.2.20.0030.06311.73
5.2.10.0070.05011.73
5.2.00.0030.06311.73
5.1.60.0000.05311.73
5.1.50.0000.05011.73
5.1.40.0070.04311.73
5.1.30.0100.04711.73
5.1.20.0100.04311.73
5.1.10.0000.04711.73
5.1.00.0030.04711.73
5.0.50.0070.04311.73
5.0.40.0000.03011.73
5.0.30.0070.06311.73
5.0.20.0030.03011.73
5.0.10.0030.04311.73
5.0.00.0000.06711.73
4.4.90.0000.03711.73
4.4.80.0030.01711.73
4.4.70.0000.03711.73
4.4.60.0030.02711.73
4.4.50.0000.03311.73
4.4.40.0030.04011.73
4.4.30.0000.04011.73
4.4.20.0100.02711.73
4.4.10.0030.03311.73
4.4.00.0000.04311.73
4.3.110.0070.02311.73
4.3.100.0000.03711.73
4.3.90.0070.03011.73
4.3.80.0070.05011.73
4.3.70.0070.02711.73
4.3.60.0000.03011.73
4.3.50.0030.02311.73
4.3.40.0000.03011.73
4.3.30.0000.01711.73
4.3.20.0000.03011.73
4.3.10.0000.02311.73
4.3.00.0000.02711.73

preferences:
44.59 ms | 400 KiB | 5 Q