3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank"); $rand_keys = array_rand($input,2); echo $input[$rand_keys[0]] . "\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.00.0090.00915.01
7.3.120.0030.01114.46
7.3.110.0120.00614.94
7.3.100.0030.01014.70
7.3.90.0040.01214.86
7.3.80.0040.00814.64
7.3.70.0080.00314.45
7.3.60.0100.00714.62
7.3.50.0070.01114.62
7.3.40.0080.00814.87
7.3.30.0070.00714.70
7.3.20.0070.01016.59
7.3.10.0070.01016.66
7.3.00.0060.00916.74
7.2.250.0060.01215.04
7.2.240.0030.01315.13
7.2.230.0030.00614.71
7.2.220.0090.00315.32
7.2.210.0030.00914.95
7.2.200.0040.01114.77
7.2.190.0070.00714.67
7.2.180.0030.01414.93
7.2.170.0070.00415.14
7.2.00.0040.00819.05
7.1.330.0090.00615.80
7.1.320.0060.00915.65
7.1.310.0000.01415.82
7.1.300.0100.00715.55
7.1.290.0030.01015.68
7.1.280.0030.00715.46
7.1.270.0030.00515.65
7.1.260.0120.00315.68
7.1.70.0000.00817.03
7.1.60.0060.00619.40
7.1.50.0100.01016.92
7.1.00.0000.06022.35
7.0.200.0040.00416.67
7.0.140.0070.07022.18
7.0.60.0100.06019.95
7.0.50.0030.04017.92
7.0.40.0030.05320.00
7.0.30.0230.05020.16
7.0.20.0330.07020.30
7.0.10.0230.08320.13
7.0.00.0100.04020.31
5.6.280.0070.06720.85
5.6.210.0200.06320.68
5.6.200.0070.06018.18
5.6.190.0070.08320.32
5.6.180.0370.03720.56
5.6.170.0330.07020.54
5.6.160.0070.05320.44
5.6.150.0100.08018.09
5.6.140.0100.06318.13
5.6.130.0070.08318.11
5.6.120.0170.04321.05
5.6.110.0170.05020.98
5.6.100.0070.08721.10
5.6.90.0070.07320.96
5.6.80.0030.08320.45
5.6.70.3570.04020.39
5.5.350.0330.04320.40
5.5.340.0100.04717.92
5.5.330.0100.08320.29
5.5.320.0230.05720.59
5.5.310.0300.06320.34
5.5.300.0100.07318.00
5.5.290.0000.04317.95
5.5.280.0070.08020.84
5.5.270.0130.07720.92
5.5.260.0100.07720.86
5.5.250.0070.08020.68
5.5.240.0000.06720.03
5.4.450.0000.04319.12
5.4.440.0170.06719.50
5.4.430.0030.04019.26
5.4.420.0030.06319.24
5.4.410.0100.03319.02
5.4.400.0070.08019.11
5.4.390.0100.04719.14
5.4.380.0030.08019.07
5.4.370.0070.07719.14
5.4.360.0070.07719.09
5.4.350.0100.07018.82
5.4.340.0000.08318.91
5.4.320.0100.07019.14
5.4.310.0070.07719.17
5.4.300.0000.05319.07
5.4.290.0030.08018.91
5.4.280.0070.03719.17
5.4.270.0070.08018.92
5.4.260.0100.07319.15
5.4.250.0000.08318.91
5.4.240.0030.05718.78
5.4.230.0100.06319.07
5.4.220.0070.04019.08
5.4.210.0030.07318.79
5.4.200.0030.06019.08
5.4.190.0070.07718.99
5.4.180.0030.08319.07
5.4.170.0100.07719.07
5.4.160.0100.07319.15
5.4.150.0030.05018.98
5.4.140.0070.07016.27
5.4.130.0070.05316.24
5.4.120.0130.06716.24
5.4.110.0000.05016.30
5.4.100.0100.04016.24
5.4.90.0070.07016.39
5.4.80.0030.07316.18
5.4.70.0070.07316.22
5.4.60.0070.07316.58
5.4.50.0100.07316.30
5.4.40.0070.07316.25
5.4.30.0030.05016.36
5.4.20.0100.06716.38
5.4.10.0070.03716.38
5.4.00.0030.03715.79
5.3.290.0070.07314.58
5.3.280.0070.07014.52
5.3.270.0100.06014.53
5.3.260.0030.04714.63
5.3.250.0000.05014.58
5.3.240.0100.06014.56
5.3.230.0070.06014.55
5.3.220.0100.06314.39
5.3.210.0030.04014.50
5.3.200.0100.04714.50
5.3.190.0070.05014.49
5.3.180.0100.04314.46
5.3.170.0130.07014.38
5.3.160.0100.06714.46
5.3.150.0070.07714.50
5.3.140.0030.07014.52
5.3.130.0030.07714.34
5.3.120.0030.05014.43
5.3.110.0070.07314.49
5.3.100.0000.04013.93
5.3.90.0030.07313.97
5.3.80.0030.04013.89
5.3.70.0030.04013.96
5.3.60.0030.03713.90
5.3.50.0030.03713.88
5.3.40.0100.03013.92
5.3.30.0000.03713.88
5.3.20.0100.03013.77
5.3.10.0070.03013.58
5.3.00.0030.03313.56
5.2.170.0030.03011.07
5.2.160.0000.03011.07
5.2.150.0030.02711.00
5.2.140.0000.03010.96
5.2.130.0030.03011.09
5.2.120.0030.02711.07
5.2.110.0100.02011.02
5.2.100.0000.03011.08
5.2.90.0030.02711.00
5.2.80.0000.03011.00
5.2.70.0030.02711.04
5.2.60.0030.04311.03
5.2.50.0030.02710.95
5.2.40.0030.02710.93
5.2.30.0000.03011.13
5.2.20.0030.02711.11
5.2.10.0000.03010.86
5.2.00.0000.03010.79
5.1.60.0030.02310.00
5.1.50.0000.02710.00
5.1.40.0130.0179.94
5.1.30.0000.03010.38
5.1.20.0070.02010.34
5.1.10.0000.02710.08
5.1.00.0030.02310.04
5.0.50.0000.0208.55
5.0.40.0000.0208.38
5.0.30.0030.0278.23
5.0.20.0000.0208.10
5.0.10.0000.0208.30
5.0.00.0000.0308.19
4.4.90.0000.0137.62
4.4.80.0000.0137.62
4.4.70.0030.0137.62
4.4.60.0030.0137.62
4.4.50.0000.0137.62
4.4.40.0000.0237.62
4.4.30.0000.0177.62
4.4.20.0070.0137.62
4.4.10.0000.0177.62
4.4.00.0000.0237.62
4.3.110.0000.0137.62
4.3.100.0000.0137.62
4.3.90.0030.0137.62
4.3.80.0030.0207.62
4.3.70.0030.0137.62
4.3.60.0000.0137.62
4.3.50.0000.0137.62
4.3.40.0000.0237.62
4.3.30.0000.0137.62
4.3.20.0000.0177.62
4.3.10.0000.0137.62
4.3.00.0000.0137.62

preferences:
36.05 ms | 401 KiB | 5 Q