3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank"); $rand_keys = array_rand($input,1); 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.2.00.0150.00419.41
7.1.70.0000.00817.16
7.1.60.0070.01819.40
7.1.50.0150.00617.09
7.1.00.0030.04022.45
7.0.200.2140.00616.75
7.0.140.0030.07022.12
7.0.60.0130.04319.88
7.0.50.0070.04017.81
7.0.40.0070.05020.21
7.0.30.0100.04720.33
7.0.20.0370.04320.16
7.0.10.0330.07320.20
7.0.00.0030.05720.16
5.6.280.0070.07321.09
5.6.210.0170.06020.52
5.6.200.0070.08018.17
5.6.190.0130.08020.45
5.6.180.0170.04320.77
5.6.170.0100.04720.38
5.6.160.0070.07020.53
5.6.150.0100.08318.18
5.6.140.0130.05718.11
5.6.130.0130.07318.21
5.6.120.0130.07720.97
5.6.110.0070.08320.97
5.6.100.0030.07721.13
5.6.90.0030.04020.88
5.6.80.0070.03320.50
5.6.70.3530.03320.45
5.5.350.0300.05320.32
5.5.340.0070.09017.98
5.5.330.0030.05020.21
5.5.320.0270.03320.36
5.5.310.0200.04020.27
5.5.300.0100.05017.91
5.5.290.0100.07717.97
5.5.280.0030.05320.87
5.5.270.0070.04020.86
5.5.260.0100.07720.63
5.5.250.0030.04720.79
5.5.240.0100.08320.36
5.4.450.0000.04319.50
5.4.440.0100.03719.50
5.4.430.0070.07019.32
5.4.420.0170.07019.46
5.4.410.0070.06719.27
5.4.400.0100.06318.92
5.4.390.0030.08019.18
5.4.380.0200.03019.10
5.4.370.0100.04318.80
5.4.360.0030.06719.15
5.4.350.0070.07018.81
5.4.340.0030.06319.08
5.4.320.0100.04319.13
5.4.310.0070.07718.91
5.4.300.0000.08019.15
5.4.290.0100.04018.80
5.4.280.0070.07719.07
5.4.270.0030.05719.08
5.4.260.0100.06719.00
5.4.250.0070.06019.08
5.4.240.0030.08019.07
5.4.230.0070.04319.17
5.4.220.0100.05718.78
5.4.210.0030.07719.07
5.4.200.0070.03719.17
5.4.190.0030.07318.90
5.4.180.0070.07018.79
5.4.170.0130.07719.08
5.4.160.0230.05018.79
5.4.150.0100.07019.05
5.4.140.0100.04016.25
5.4.130.0030.04316.21
5.4.120.0070.07316.34
5.4.110.0030.07716.23
5.4.100.0100.06716.34
5.4.90.0000.08316.32
5.4.80.0100.05716.29
5.4.70.0070.04716.34
5.4.60.0070.07016.21
5.4.50.0070.07316.57
5.4.40.0000.04016.29
5.4.30.0070.05316.20
5.4.20.0170.06016.12
5.4.10.0030.07016.21
5.4.00.0030.07715.77
5.3.290.0000.05014.60
5.3.280.0070.06714.53
5.3.270.0100.07014.62
5.3.260.0030.07314.53
5.3.250.0030.04714.48
5.3.240.0100.06014.48
5.3.230.0000.04714.56
5.3.220.0070.07314.54
5.3.210.0070.06314.52
5.3.200.0030.06014.58
5.3.190.0030.05014.48
5.3.180.0000.08314.48
5.3.170.0130.06714.49
5.3.160.0030.06014.57
5.3.150.0030.05014.51
5.3.140.0000.05014.49
5.3.130.0000.04314.47
5.3.120.0200.04014.38
5.3.110.0070.06314.42
5.3.100.0000.06313.85
5.3.90.0030.04314.03
5.3.80.0070.06713.95
5.3.70.0100.04013.99
5.3.60.0070.07313.96
5.3.50.0130.03313.88
5.3.40.0100.07013.90
5.3.30.0070.07013.85
5.3.20.0100.07013.63
5.3.10.0130.04713.67
5.3.00.0000.05313.52
5.2.170.0030.06311.15
5.2.160.0000.05011.04
5.2.150.0130.04311.05
5.2.140.0070.06010.99
5.2.130.0100.06011.02
5.2.120.0070.04011.26
5.2.110.0070.03311.10
5.2.100.0000.03310.96
5.2.90.0070.06011.03
5.2.80.0030.03710.98
5.2.70.0030.04711.04
5.2.60.0000.04010.86
5.2.50.0000.03311.00
5.2.40.0030.02711.00
5.2.30.0030.04010.79
5.2.20.0000.03310.84
5.2.10.0070.03710.88
5.2.00.0070.06010.79
5.1.60.0030.03310.05
5.1.50.0030.0309.99
5.1.40.0030.0409.92
5.1.30.0070.04710.38
5.1.20.0000.03710.35
5.1.10.0070.03710.11
5.1.00.0070.02310.12
5.0.50.0070.0408.54
5.0.40.0000.0438.38
5.0.30.0000.0338.16
5.0.20.0030.0208.19
5.0.10.0000.0278.23
5.0.00.0070.0508.12
4.4.90.0030.0207.99
4.4.80.0000.0177.99
4.4.70.0030.0137.99
4.4.60.0000.0177.99
4.4.50.0000.0337.99
4.4.40.0070.0307.99
4.4.30.0100.0307.99
4.4.20.0000.0377.99
4.4.10.0000.0377.99
4.4.00.0130.0437.99
4.3.110.0000.0237.99
4.3.100.0000.0177.99
4.3.90.0000.0207.99
4.3.80.0000.0277.99
4.3.70.0070.0107.99
4.3.60.0070.0277.99
4.3.50.0100.0277.99
4.3.40.0000.0337.99
4.3.30.0000.0407.99
4.3.20.0000.0407.99
4.3.10.0030.0207.99
4.3.00.0000.0307.99

preferences:
41.58 ms | 401 KiB | 5 Q