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[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.00.0070.01414.99
7.3.120.0050.01014.84
7.3.110.0030.01214.90
7.3.100.0110.00514.84
7.3.90.0070.01214.67
7.3.80.0060.00914.58
7.3.70.0060.00314.52
7.3.60.0030.01314.60
7.3.50.0070.00614.66
7.3.40.0070.00414.73
7.3.30.0050.00914.73
7.3.20.0060.00916.55
7.3.10.0070.00816.66
7.3.00.0070.00816.45
7.2.250.0070.01114.73
7.2.240.0050.01315.20
7.2.230.0020.01214.85
7.2.220.0060.01014.88
7.2.210.0030.00814.94
7.2.200.0020.01115.19
7.2.190.0090.00615.07
7.2.180.0080.00514.96
7.2.170.0030.01015.01
7.2.160.0060.01315.11
7.2.150.0100.01016.69
7.2.140.0060.00816.77
7.2.130.0030.00716.78
7.2.120.0040.01516.69
7.2.110.0040.01116.87
7.2.100.0080.00816.90
7.2.90.0070.00717.05
7.2.80.0030.00717.09
7.2.70.0060.00617.13
7.2.60.0150.00316.83
7.2.50.0060.00916.92
7.2.40.0080.00816.86
7.2.30.0040.01117.12
7.2.20.0060.00917.20
7.2.10.0100.00316.63
7.2.00.0060.00818.05
7.1.330.0020.01215.82
7.1.320.0080.01015.52
7.1.310.0080.00815.52
7.1.300.0080.00515.72
7.1.290.0050.00815.77
7.1.280.0070.00715.82
7.1.270.0060.01215.77
7.1.260.0050.01215.62
7.1.250.0100.00315.68
7.1.70.0000.00717.11
7.1.60.0030.02219.40
7.1.50.0080.00316.95
7.1.00.0000.06322.35
7.0.200.0040.00416.80
7.0.140.0130.06322.00
7.0.60.0030.08019.92
7.0.50.0000.04717.77
7.0.40.0030.06317.69
7.0.30.0100.05317.76
7.0.20.0030.08317.69
7.0.10.0100.07017.75
7.0.00.0100.07317.65
5.6.280.0070.07021.09
5.6.210.0070.08720.59
5.6.200.0100.03718.11
5.6.190.0130.06718.12
5.6.180.0000.08718.16
5.6.170.0100.04318.09
5.6.160.0100.06718.18
5.6.150.0070.04018.23
5.6.140.0030.08718.11
5.6.130.0130.06018.18
5.6.120.0030.07318.12
5.6.110.0030.08018.12
5.6.100.0100.07718.18
5.6.90.0100.06318.15
5.6.80.0130.07317.57
5.6.70.0070.06317.52
5.6.60.0130.07017.59
5.6.50.0100.07317.54
5.6.40.0130.06717.58
5.6.30.0100.05017.45
5.6.20.0030.05017.49
5.6.10.0230.06717.48
5.6.00.0100.07017.46
5.5.350.3870.04720.34
5.5.340.0070.04017.96
5.5.330.0000.08317.92
5.5.320.0130.07018.02
5.5.310.0030.05018.00
5.5.300.0100.07717.91
5.5.290.0070.07718.00
5.5.280.0070.07017.98
5.5.270.0070.06317.95
5.5.260.0000.05017.91
5.5.250.0170.03317.72
5.5.240.0030.08317.37
5.5.230.0070.06317.39
5.5.220.0100.06717.34
5.5.210.0070.07317.36
5.5.200.0070.07317.36
5.5.190.0130.07317.36
5.5.180.0070.05317.36
5.5.160.0070.08017.25
5.5.150.0100.07317.30
5.5.140.0100.07017.36
5.5.130.0030.05017.19
5.5.120.0100.07317.25
5.5.110.0100.06717.30
5.5.100.0100.07717.17
5.5.90.0100.06317.16
5.5.80.0100.03317.26
5.5.70.0030.08317.15
5.5.60.0100.07017.19
5.5.50.0030.04017.25
5.5.40.0070.03317.16
5.5.30.0000.05017.25
5.5.20.0070.07717.21
5.5.10.0030.04717.24
5.5.00.0100.07717.21
5.4.450.0030.04719.31
5.4.440.0070.08019.45
5.4.430.0070.07319.39
5.4.420.0070.04319.44
5.4.410.0100.05719.32
5.4.400.0030.06019.08
5.4.390.0070.06718.82
5.4.380.0100.07319.07
5.4.370.0070.04319.01
5.4.360.0100.07019.07
5.4.350.0130.05319.07
5.4.340.0070.08018.97
5.4.320.0070.07019.07
5.4.310.0030.08019.04
5.4.300.0030.07319.20
5.4.290.0030.08018.98
5.4.280.0070.04719.03
5.4.270.0100.07018.97
5.4.260.0070.04319.02
5.4.250.0030.04718.96
5.4.240.0230.06319.20
5.4.230.0100.04319.08
5.4.220.0070.07719.03
5.4.210.0030.04019.20
5.4.200.0070.04719.05
5.4.190.0200.06718.95
5.4.180.0100.06319.11
5.4.170.0000.06019.10
5.4.160.0130.06718.96
5.4.150.0070.07718.87
5.4.140.0070.05016.36
5.4.130.0130.04716.29
5.4.120.0000.05016.26
5.4.110.0070.07316.37
5.4.100.0070.07316.25
5.4.90.0130.06316.17
5.4.80.0100.06316.26
5.4.70.0200.06316.22
5.4.60.0030.07716.37
5.4.50.0200.06016.27
5.4.40.0100.07016.41
5.4.30.0170.05016.33
5.4.20.0070.04316.30
5.4.10.0000.04016.14
5.4.00.0000.03715.80
5.3.290.0030.04314.58
5.3.280.0070.07714.41
5.3.270.0130.07314.59
5.3.260.0100.06014.55
5.3.250.0100.07014.57
5.3.240.0070.06714.58
5.3.230.0100.07314.55
5.3.220.0100.07014.55
5.3.210.0070.05714.53
5.3.200.0030.07714.64
5.3.190.0100.07714.54
5.3.180.0000.04314.51
5.3.170.0070.07314.51
5.3.160.0070.07714.39
5.3.150.0030.06714.50
5.3.140.0000.08014.33
5.3.130.0070.07714.48
5.3.120.0030.05014.52
5.3.110.0100.06014.50
5.3.100.0030.06313.81
5.3.90.0130.07013.99
5.3.80.0030.08014.00
5.3.70.0030.05313.95
5.3.60.0130.04313.92
5.3.50.0100.07013.90
5.3.40.0070.04713.93
5.3.30.0030.03713.88
5.3.20.0000.04013.46
5.3.10.0030.07713.43
5.3.00.0070.04713.62
5.2.170.0000.06310.93
5.2.160.0070.05311.09
5.2.150.0030.03711.03
5.2.140.0030.06311.13
5.2.130.0000.03011.24
5.2.120.0000.04311.09
5.2.110.0070.04011.00
5.2.100.0000.04311.13
5.2.90.0070.05711.08
5.2.80.0030.03711.01
5.2.70.0000.04011.04
5.2.60.0130.05311.05
5.2.50.0170.04710.91
5.2.40.0030.06310.89
5.2.30.0070.05710.90
5.2.20.0030.05310.94
5.2.10.0070.05310.82
5.2.00.0070.04010.75
5.1.60.0100.0479.95
5.1.50.0030.05310.13
5.1.40.0030.0309.80
5.1.30.0000.03310.34
5.1.20.0070.05310.37
5.1.10.0000.05710.03
5.1.00.0030.03310.00
5.0.50.0030.0478.51
5.0.40.0030.0278.47
5.0.30.0100.0338.05
5.0.20.0070.0408.21
5.0.10.0000.0308.18
5.0.00.0030.0578.21
4.4.90.0000.0237.84
4.4.80.0000.0377.84
4.4.70.0000.0237.84
4.4.60.0000.0237.84
4.4.50.0000.0207.84
4.4.40.0070.0207.84
4.4.30.0030.0207.84
4.4.20.0030.0337.84
4.4.10.0000.0377.84
4.4.00.0030.0437.84
4.3.110.0030.0207.84
4.3.100.0030.0337.84
4.3.90.0000.0307.84
4.3.80.0000.0537.84
4.3.70.0070.0237.84
4.3.60.0000.0237.84
4.3.50.0100.0137.84
4.3.40.0070.0377.84
4.3.30.0100.0207.84
4.3.20.0030.0337.84
4.3.10.0070.0307.84
4.3.00.0000.0207.84

preferences:
45.83 ms | 401 KiB | 5 Q