3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank"); $rand_keys = array_rand($input,4); echo $input[$rand_keys[2]] . "\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.0040.01419.36
7.1.70.0030.00517.12
7.1.60.0090.00619.40
7.1.50.0060.01616.91
7.1.00.0030.03322.30
7.0.200.0080.00016.72
7.0.140.0070.07021.92
7.0.60.0070.05719.79
7.0.50.0070.08017.87
7.0.40.0100.05317.69
7.0.30.0070.04017.75
7.0.20.0100.08017.75
7.0.10.0000.06017.68
7.0.00.0030.04317.68
5.6.280.0000.07721.14
5.6.210.0200.06720.62
5.6.200.0100.06718.22
5.6.190.0170.04718.21
5.6.180.0100.07318.12
5.6.170.0030.04318.11
5.6.160.0070.04318.18
5.6.150.0170.05018.13
5.6.140.0030.04318.18
5.6.130.0130.06018.09
5.6.120.0100.04018.12
5.6.110.0070.04318.14
5.6.100.0070.07318.14
5.6.90.0130.07018.10
5.6.80.0030.08017.57
5.6.70.0100.07717.49
5.6.60.0030.04017.52
5.6.50.0130.05017.56
5.6.40.0100.06317.54
5.6.30.0070.07717.49
5.6.20.0170.06717.43
5.6.10.0100.07317.56
5.6.00.0070.06717.56
5.5.350.0030.08020.33
5.5.340.0100.06017.88
5.5.330.0000.04318.02
5.5.320.0100.04018.01
5.5.310.0030.05717.98
5.5.300.0100.06317.95
5.5.290.0100.06017.97
5.5.280.0030.04318.00
5.5.270.0100.07017.91
5.5.260.0230.07018.03
5.5.250.0200.03317.72
5.5.240.0030.07017.27
5.5.230.0070.05717.33
5.5.220.0100.07317.28
5.5.210.0100.07017.30
5.5.200.0170.07017.24
5.5.190.0030.07017.32
5.5.180.0130.07017.23
5.5.160.0100.04017.33
5.5.150.0130.06717.25
5.5.140.0070.06317.36
5.5.130.0100.03717.37
5.5.120.0100.07717.30
5.5.110.0170.05717.36
5.5.100.0070.07717.14
5.5.90.0100.07317.18
5.5.80.0100.07317.19
5.5.70.0130.06717.25
5.5.60.0170.07017.19
5.5.50.0100.06317.22
5.5.40.0070.04317.16
5.5.30.0000.06317.11
5.5.20.0030.07717.22
5.5.10.0030.08317.25
5.5.00.0070.06717.14
5.4.450.0070.07719.37
5.4.440.0100.03719.38
5.4.430.0170.05019.27
5.4.420.0100.06319.41
5.4.410.0130.07019.19
5.4.400.0070.06019.07
5.4.390.0070.07319.02
5.4.380.0130.03719.21
5.4.370.0130.07318.89
5.4.360.0030.04319.05
5.4.350.0030.05318.99
5.4.340.0130.07319.03
5.4.320.0130.08019.04
5.4.310.0100.06019.12
5.4.300.0030.07319.13
5.4.290.0030.04719.09
5.4.280.0100.04719.01
5.4.270.0070.07018.98
5.4.260.0070.07019.07
5.4.250.0100.07018.96
5.4.240.0030.07718.88
5.4.230.0130.07018.97
5.4.220.0070.08019.07
5.4.210.0130.06319.20
5.4.200.0000.05718.84
5.4.190.0100.07318.95
5.4.180.0030.04019.11
5.4.170.0030.08018.94
5.4.160.0070.07318.97
5.4.150.0170.06318.87
5.4.140.0070.07016.27
5.4.130.0070.07716.19
5.4.120.0070.07016.36
5.4.110.0100.06016.26
5.4.100.0070.07716.36
5.4.90.0070.05716.27
5.4.80.0130.06316.22
5.4.70.0030.04016.27
5.4.60.0100.04016.25
5.4.50.0070.07316.39
5.4.40.0230.03016.20
5.4.30.0070.05316.24
5.4.20.0100.07016.23
5.4.10.0130.06016.14
5.4.00.0000.06015.75
5.3.290.0030.08314.63
5.3.280.0070.07314.34
5.3.270.0030.06014.43
5.3.260.0130.08714.54
5.3.250.0130.06714.51
5.3.240.0000.06014.59
5.3.230.0170.06714.56
5.3.220.0030.07014.48
5.3.210.0170.07014.64
5.3.200.0030.06014.42
5.3.190.0030.06314.39
5.3.180.0000.06714.38
5.3.170.0100.03314.39
5.3.160.0070.03314.49
5.3.150.0030.05714.50
5.3.140.0030.06014.38
5.3.130.0070.07714.48
5.3.120.0130.04014.62
5.3.110.0100.07314.52
5.3.100.0000.04313.97
5.3.90.0070.06313.84
5.3.80.0070.05713.96
5.3.70.0070.04313.79
5.3.60.0030.05013.91
5.3.50.0000.04013.89
5.3.40.0170.06014.02
5.3.30.0100.06713.87
5.3.20.0100.06713.77
5.3.10.0030.07713.41
5.3.00.0030.04713.57
5.2.170.0000.03311.08
5.2.160.0070.06310.98
5.2.150.0070.03311.08
5.2.140.0030.05311.14
5.2.130.0000.03310.99
5.2.120.0000.03710.98
5.2.110.0000.04711.24
5.2.100.0030.06310.87
5.2.90.0070.05711.03
5.2.80.0070.06010.97
5.2.70.0030.07011.09
5.2.60.0030.05010.83
5.2.50.0000.06010.91
5.2.40.0170.04711.03
5.2.30.0070.05310.92
5.2.20.0100.03310.92
5.2.10.0000.05310.91
5.2.00.0000.05310.67
5.1.60.0030.0279.97
5.1.50.0030.05710.05
5.1.40.0100.04710.02
5.1.30.0030.04310.36
5.1.20.0000.04010.35
5.1.10.0030.04710.21
5.1.00.0000.06010.07
5.0.50.0000.0408.54
5.0.40.0070.0438.38
5.0.30.0100.0438.25
5.0.20.0030.0438.24
5.0.10.0030.0438.16
5.0.00.0030.0678.06
4.4.90.0030.0377.88
4.4.80.0000.0377.88
4.4.70.0070.0377.88
4.4.60.0100.0137.88
4.4.50.0070.0337.88
4.4.40.0030.0537.88
4.4.30.0000.0407.88
4.4.20.0030.0377.88
4.4.10.0000.0337.88
4.4.00.0000.0337.88
4.3.110.0000.0377.88
4.3.100.0030.0177.88
4.3.90.0070.0307.88
4.3.80.0030.0407.88
4.3.70.0100.0207.88
4.3.60.0100.0307.88
4.3.50.0030.0377.88
4.3.40.0000.0237.88
4.3.30.0030.0177.88
4.3.20.0000.0277.88
4.3.10.0030.0177.88
4.3.00.0030.0337.88

preferences:
37.1 ms | 400 KiB | 5 Q