3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank"); $rand_keys = array_rand($input,0); echo $input[$rand_keys] . "\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.0060.01315.06
7.3.120.0130.00614.94
7.3.110.0150.00314.98
7.3.100.0060.00614.70
7.3.90.0100.00014.84
7.3.80.0040.00814.86
7.3.70.0060.00614.73
7.3.60.0100.00014.65
7.3.50.0070.00714.74
7.3.40.0080.00314.60
7.3.30.0030.00714.84
7.3.20.0000.01316.85
7.3.10.0080.00516.67
7.3.00.0050.01016.63
7.2.250.0000.01614.70
7.2.240.0030.01714.71
7.2.230.0100.00714.81
7.2.220.0000.01414.70
7.2.210.0000.01414.86
7.2.200.0110.00314.88
7.2.190.0070.00714.77
7.2.180.0000.00814.80
7.2.170.0000.01215.07
7.2.130.0060.00617.02
7.2.120.0000.01316.65
7.2.110.0060.00917.11
7.2.100.0050.00516.98
7.2.90.0000.01216.71
7.2.80.0030.01016.87
7.2.70.0030.00917.03
7.2.60.0060.00616.87
7.2.50.0060.00616.85
7.2.40.0070.00717.01
7.2.30.0030.01016.69
7.2.20.0080.00316.91
7.2.10.0040.01116.95
7.2.00.0030.01016.95
7.1.330.0040.01115.93
7.1.320.0070.00716.00
7.1.310.0030.01015.92
7.1.300.0150.00015.71
7.1.290.0070.00715.61
7.1.280.0060.00315.78
7.1.270.0060.00615.46
7.1.260.0070.01015.83
7.1.250.0080.00315.55
7.1.70.0070.00717.08
7.1.60.0110.01419.70
7.1.50.0120.01216.80
7.1.00.0070.07322.40
7.0.200.0040.00416.82
7.0.140.0100.07022.19
7.0.70.0070.08721.66
7.0.60.0070.07321.63
7.0.50.0000.08022.16
7.0.40.0030.07320.13
7.0.30.0000.08020.13
7.0.20.0070.07320.17
7.0.10.0100.05720.10
7.0.00.0030.08320.12
5.6.280.0100.06721.03
5.6.210.0070.06320.63
5.6.200.0000.07021.17
5.6.190.0030.07721.08
5.6.180.0070.08721.10
5.6.170.0100.05321.02
5.6.160.0070.04720.99
5.6.150.0030.06721.13
5.6.140.0000.06021.09
5.6.130.0070.07721.07
5.6.120.0100.08021.00
5.6.110.0100.07321.08
5.6.100.0000.05321.15
5.6.90.0130.07720.92
5.6.80.0000.04020.48
5.6.70.0030.04020.41
5.6.60.0000.04320.50
5.6.50.0100.05020.46
5.6.40.0100.05320.29
5.6.30.0100.07720.52
5.6.20.0070.07720.39
5.6.10.0000.06020.40
5.6.00.0070.04020.46
5.5.350.0030.08720.38
5.5.340.0030.06720.80
5.5.330.0000.08320.77
5.5.320.0100.07720.89
5.5.310.0100.05320.91
5.5.300.0000.06020.88
5.5.290.0000.08320.73
5.5.280.0000.07020.79
5.5.270.0070.06320.87
5.5.260.0100.05320.74
5.5.250.0030.07720.44
5.5.240.0070.05320.30
5.5.230.0030.04320.14
5.5.220.0070.07320.25
5.5.210.0070.07720.01
5.5.200.0030.05720.28
5.5.190.0100.07319.98
5.5.180.0000.07720.23
5.5.160.0030.08020.21
5.5.150.0070.08020.14
5.5.140.0000.08020.24
5.5.130.0100.06320.25
5.5.120.0100.06720.21
5.5.110.0030.07720.22
5.5.100.0030.08020.17
5.5.90.0100.05720.14
5.5.80.0000.08019.93
5.5.70.0070.06719.99
5.5.60.0000.08020.08
5.5.50.0070.07720.04
5.5.40.0030.07720.14
5.5.30.0030.07720.13
5.5.20.0030.07720.10
5.5.10.0030.07320.03
5.5.00.0030.08020.05
5.4.450.0000.08319.08
5.4.440.0030.04319.30
5.4.430.0000.04719.22
5.4.420.0030.08019.20
5.4.410.0030.07319.17
5.4.400.0070.07718.97
5.4.390.0030.06018.98
5.4.380.0030.07019.12
5.4.370.0070.06318.85
5.4.360.0000.07018.81
5.4.350.0100.07019.11
5.4.340.0100.07318.96
5.4.320.0070.06019.03
5.4.310.0070.07718.94
5.4.300.0000.07319.13
5.4.290.0030.07318.94
5.4.280.0000.07718.80
5.4.270.0070.07018.98
5.4.260.0000.06319.07
5.4.250.0070.06318.75
5.4.240.0000.08319.02
5.4.230.0070.07318.77
5.4.220.0070.07018.97
5.4.210.0030.08018.78
5.4.200.0000.05019.13
5.4.190.0070.07319.02
5.4.180.0030.06319.13
5.4.170.0000.07019.13
5.4.160.0030.07719.21
5.4.150.0000.06019.00
5.4.140.0070.05316.33
5.4.130.0070.07316.21
5.4.120.0070.06716.29
5.4.110.0030.04716.36
5.4.100.0030.07016.36
5.4.90.0100.05716.40
5.4.80.0100.06716.29
5.4.70.0030.06016.31
5.4.60.0030.05016.34
5.4.50.0030.05316.38
5.4.40.0070.05016.48
5.4.30.0000.06716.38
5.4.20.0070.06716.37
5.4.10.0030.06716.41
5.4.00.0070.06715.68
5.3.290.0030.07714.52
5.3.280.0030.07314.55
5.3.270.0000.08014.61
5.3.260.0030.07714.51
5.3.250.0000.06014.44
5.3.240.0030.07314.46
5.3.230.0100.07014.50
5.3.220.0030.07014.52
5.3.210.0000.05714.52
5.3.200.0030.05014.55
5.3.190.0000.06714.55
5.3.180.0000.06314.56
5.3.170.0030.07314.47
5.3.160.0000.06014.50
5.3.150.0070.04014.54
5.3.140.0070.07714.51
5.3.130.0030.05014.41
5.3.120.0000.05714.54
5.3.110.0000.08314.52
5.3.100.0030.06713.89
5.3.90.0000.04714.00
5.3.80.0000.06314.00
5.3.70.0030.04713.92
5.3.60.0030.06013.98
5.3.50.0030.07313.90
5.3.40.0070.06713.93
5.3.30.0030.06713.82
5.3.20.0000.07313.55
5.3.10.0070.06313.66
5.3.00.0000.07013.51
5.2.170.0000.06011.16
5.2.160.0030.06011.14
5.2.150.0070.04710.93
5.2.140.0030.06310.95
5.2.130.0000.05310.85
5.2.120.0000.06310.93
5.2.110.0030.06010.91
5.2.100.0000.06011.04
5.2.90.0030.05311.05
5.2.80.0000.06311.08
5.2.70.0030.04711.01
5.2.60.0000.05711.11
5.2.50.0030.06311.08
5.2.40.0000.05310.86
5.2.30.0100.05310.96
5.2.20.0000.05711.02
5.2.10.0000.04310.89
5.2.00.0070.05310.63
5.1.60.0070.02310.01
5.1.50.0000.0439.98
5.1.40.0030.04010.02
5.1.30.0000.05710.41
5.1.20.0000.06010.20
5.1.10.0000.0479.92
5.1.00.0000.05010.02
5.0.50.0000.0478.56
5.0.40.0030.0308.43
5.0.30.0100.0308.42
5.0.20.0070.0208.42
5.0.10.0000.0338.42
5.0.00.0000.0678.42
4.4.90.0000.0278.42
4.4.80.0070.0308.42
4.4.70.0070.0278.42
4.4.60.0000.0338.42
4.4.50.0000.0338.42
4.4.40.0000.0538.42
4.4.30.0000.0308.42
4.4.20.0030.0338.42
4.4.10.0030.0338.42
4.4.00.0000.0538.42
4.3.110.0000.0278.42
4.3.100.0000.0278.42
4.3.90.0000.0178.42
4.3.80.0000.0238.42
4.3.70.0000.0178.42
4.3.60.0000.0208.42
4.3.50.0030.0108.42
4.3.40.0070.0178.42
4.3.30.0000.0178.42
4.3.20.0000.0178.42
4.3.10.0000.0178.42
4.3.00.0030.0178.42

preferences:
33.29 ms | 400 KiB | 5 Q