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[0]] . "\n"; 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)
8.1.60.0040.00417.57
8.0.10.0140.00517.15
8.0.00.0060.01217.14
7.4.140.0110.00816.55
7.4.130.0150.00316.40
7.4.120.0110.01116.55
7.4.110.0180.00016.61
7.4.100.0130.00716.37
7.4.90.0110.01416.45
7.4.80.0000.02016.54
7.4.70.0160.00616.22
7.4.60.0030.01716.47
7.4.50.0110.00816.46
7.4.40.0140.00716.40
7.4.30.0160.00316.46
7.4.20.0090.00916.41
7.4.10.0100.00915.49
7.4.00.0110.00816.28
7.3.260.0030.01416.34
7.3.250.0150.00716.39
7.3.240.0110.00816.51
7.3.230.0170.00016.44
7.3.220.0110.00816.43
7.3.210.0180.00616.63
7.3.200.0110.00916.36
7.3.190.0170.00716.49
7.3.180.0090.00916.55
7.3.170.0140.00316.29
7.3.160.0090.00916.28
7.3.150.0110.00716.53
7.3.140.0120.00616.37
7.3.130.0150.01116.45
7.3.120.0070.01016.45
7.3.110.0100.00716.23
7.3.100.0130.00516.40
7.3.90.0100.00716.27
7.3.80.0110.00516.34
7.3.70.0110.00916.27
7.3.60.0120.00616.33
7.3.50.0090.00916.41
7.3.40.0130.00716.25
7.3.30.0080.01116.29
7.3.20.0170.00316.30
7.3.10.0070.00916.60
7.3.00.0120.00516.38
7.2.340.0120.01216.71
7.2.330.0160.00316.73
7.2.320.0180.00716.80
7.2.310.0140.01116.72
7.2.300.0110.00616.46
7.2.290.0090.00916.34
7.2.280.0140.00616.84
7.2.270.0000.01916.19
7.2.260.0110.01116.63
7.2.250.0030.01316.45
7.2.240.0110.01016.48
7.2.230.0140.00516.63
7.2.220.0090.00916.61
7.2.210.0080.01016.69
7.2.200.0070.01316.69
7.2.190.0140.00816.77
7.2.180.0110.00816.56
7.2.170.0060.01516.52
7.2.160.0060.01216.49
7.2.150.0070.01716.75
7.2.140.0100.00816.56
7.2.130.0080.01216.64
7.2.120.0100.00716.59
7.2.110.0050.01116.68
7.2.100.0090.00816.76
7.2.90.0100.00716.68
7.2.80.0090.00716.86
7.2.70.0110.00516.71
7.2.60.0080.00816.82
7.2.50.0100.01016.77
7.2.40.0120.01016.54
7.2.30.0160.00416.78
7.2.20.0130.00616.51
7.2.10.0160.00816.68
7.2.00.0100.00717.52
7.1.330.0060.01115.64
7.1.320.0090.00915.59
7.1.310.0140.00715.75
7.1.300.0120.00815.57
7.1.290.0070.01015.45
7.1.280.0120.00615.63
7.1.270.0100.00715.43
7.1.260.0090.00915.41
7.1.250.0050.00815.48
7.1.240.0030.01615.48
7.1.230.0120.00615.52
7.1.220.0140.00315.38
7.1.210.0130.00415.53
7.1.200.0250.00415.43
7.1.190.0100.00715.52
7.1.180.0130.00315.52
7.1.170.0030.01315.41
7.1.160.0100.01615.44
7.1.150.0270.00615.24
7.1.140.0170.00915.16
7.1.130.0070.01415.38
7.1.120.0220.00015.34
7.1.110.0230.00015.52
7.1.100.0220.01115.50
7.1.90.0210.01015.57
7.1.80.0250.01715.50
7.1.70.0090.00616.30
7.1.60.0120.00616.24
7.1.50.0220.00816.26
7.1.40.0090.00815.99
7.1.30.0060.01216.00
7.1.20.0110.00516.13
7.1.10.0210.00116.04
7.1.00.0140.01115.98
7.0.330.0070.01015.27
7.0.320.0080.00815.09
7.0.310.0080.00815.23
7.0.300.0120.00315.27
7.0.290.0150.00915.09
7.0.280.0120.00415.02
7.0.270.0170.00914.96
7.0.260.0070.01015.27
7.0.250.0270.00815.07
7.0.240.0260.00315.23
7.0.230.0340.01015.06
7.0.220.0170.01315.23
7.0.210.0190.01415.24
7.0.200.0030.01015.97
7.0.190.0110.00715.89
7.0.180.0070.01015.89
7.0.170.0110.00915.89
7.0.160.0170.00415.83
7.0.150.0100.01015.80
7.0.140.0130.01015.85
7.0.130.0100.00815.91
7.0.120.0100.01015.97
7.0.110.0190.00415.88
7.0.100.0080.01515.75
7.0.90.0220.01015.90
7.0.80.0110.00715.79
7.0.70.0070.00615.75
7.0.60.0080.01115.82
7.0.50.0190.00315.84
7.0.40.0210.00815.82
7.0.30.0090.00715.81
7.0.20.0070.00615.70
7.0.10.0140.00415.84
7.0.00.0120.00615.85
5.6.400.0140.00615.95
5.6.390.0060.01315.84
5.6.380.0030.02116.11
5.6.370.0140.00616.11
5.6.360.0130.01416.07
5.6.350.0120.01315.97
5.6.340.0080.01215.94
5.6.330.0300.00015.64
5.6.320.0160.01316.10
5.6.310.0130.01316.22
5.6.300.0120.02718.41
5.6.290.0110.03518.38
5.6.280.0060.04918.48
5.6.270.0120.03318.40
5.6.260.0140.04118.41
5.6.250.0110.03718.41
5.6.240.0060.02818.58
5.6.230.0170.04618.40
5.6.220.0130.02218.39
5.6.210.0130.03318.46
5.6.200.0100.03018.41
5.6.190.0060.03518.47
5.6.180.0140.02718.39
5.6.170.0080.03718.43
5.6.160.0080.02618.35
5.6.150.0060.02818.47
5.6.140.0100.02318.54
5.6.130.0080.02618.40
5.6.120.0110.03818.38
5.6.110.0130.02518.41
5.6.100.0200.03418.46
5.6.90.0160.02918.42
5.6.80.0180.02518.12
5.6.70.0110.02818.10
5.6.60.0150.04018.03
5.6.50.0160.04318.11
5.6.40.0100.02918.15
5.6.30.0030.02918.02
5.6.20.0040.03018.03
5.6.10.0060.02918.08
5.6.00.0090.02218.03
5.5.380.0070.03516.71
5.5.370.0120.02516.52
5.5.360.0080.02816.67
5.5.350.0100.02716.69
5.5.340.0150.04417.05
5.5.330.0170.02616.85
5.5.320.0160.02616.92
5.5.310.0110.05216.96
5.5.300.0150.02116.97
5.5.290.0060.02916.80
5.5.280.0100.04216.91
5.5.270.0110.03117.00
5.5.260.0090.04516.75
5.5.250.0160.02916.81
5.5.240.0090.02616.65
5.5.230.0090.04216.68
5.5.220.0040.03616.67
5.5.210.0090.02716.74
5.5.200.0110.02416.65
5.5.190.0110.02816.61
5.5.180.0120.02416.58
5.5.170.0070.01615.83
5.5.160.0100.02416.67
5.5.150.0050.02516.59
5.5.140.0050.03016.62
5.5.130.0080.02516.58
5.5.120.0090.04416.67
5.5.110.0040.03516.49
5.5.100.0090.02516.52
5.5.90.0120.02416.58
5.5.80.0070.02816.61
5.5.70.0100.02816.52
5.5.60.0110.02616.51
5.5.50.0090.02216.53
5.5.40.0060.02916.63
5.5.30.0200.03016.41
5.5.20.0100.02616.41
5.5.10.0130.02816.52
5.5.00.0040.03816.42
5.4.450.0080.02915.98
5.4.440.0100.02415.93
5.4.430.0100.02616.09
5.4.420.0050.04516.10
5.4.410.0040.03916.06
5.4.400.0050.02315.69
5.4.390.0090.02215.86
5.4.380.0100.02415.86
5.4.370.0080.02115.77
5.4.360.0060.02515.78
5.4.350.0070.02315.80
5.4.340.0040.02615.88
5.4.330.0100.00312.59
5.4.320.0090.02015.84
5.4.310.0020.03015.97
5.4.300.0060.02615.85
5.4.290.0070.02615.80
5.4.280.0070.02615.64
5.4.270.0110.02015.95
5.4.260.0050.02615.77
5.4.250.0110.02115.86
5.4.240.0030.02615.85
5.4.230.0060.02515.83
5.4.220.0130.02315.91
5.4.210.0080.02415.82
5.4.200.0120.02315.84
5.4.190.0050.02515.78
5.4.180.0080.02615.88
5.4.170.0080.02415.73
5.4.160.0130.02115.76
5.4.150.0120.02115.66
5.4.140.0070.02414.57
5.4.130.0040.02614.51
5.4.120.0070.02014.55
5.4.110.0120.01814.57
5.4.100.0120.02014.70
5.4.90.0140.02214.52
5.4.80.0110.02614.52
5.4.70.0140.02814.54
5.4.60.0070.02514.63
5.4.50.0020.02614.60
5.4.40.0130.02914.67
5.4.30.0050.02714.60
5.4.20.0090.02114.69
5.4.10.0080.02414.60
5.4.00.0040.02614.55
5.3.290.0060.02414.83
5.3.280.0070.02414.73
5.3.270.0080.02614.88
5.3.260.0040.03614.78
5.3.250.0090.02314.74
5.3.240.0130.01714.75
5.3.230.0120.02314.74
5.3.220.0080.02614.72
5.3.210.0090.02414.68
5.3.200.0090.02614.68
5.3.190.0120.02614.73
5.3.180.0130.02014.76
5.3.170.0040.02314.77
5.3.160.0110.02014.82
5.3.150.0090.02414.89
5.3.140.0050.02214.77
5.3.130.0120.04014.81
5.3.120.0110.02214.81
5.3.110.0080.02514.75
5.3.100.0090.01814.87
5.3.90.0070.03114.75
5.3.80.0070.02714.68
5.3.70.0060.02514.76
5.3.60.0030.02614.75
5.3.50.0100.02114.73
5.3.40.0150.04114.82
5.3.30.0060.02214.73
5.3.20.0040.03514.74
5.3.10.0050.02114.60
5.3.00.0060.02614.62

preferences:
37.43 ms | 401 KiB | 5 Q