3v4l.org

run code in 300+ PHP versions simultaneously
<?php$input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank");$rand_keys = array_rand($input, 2);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.3.60.0090.00616.36
8.3.50.0040.01619.92
8.3.40.0070.00718.72
8.3.30.0100.00319.05
8.3.20.0060.00320.16
8.3.10.0040.00423.70
8.3.00.0040.00419.38
8.2.180.0040.01216.38
8.2.170.0110.00622.96
8.2.160.0100.00720.44
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0120.00626.16
8.2.120.0040.00420.87
8.2.110.0050.00522.04
8.2.100.0000.01117.59
8.2.90.0090.00019.22
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0000.00817.66
8.2.50.0060.00318.07
8.2.40.0030.00518.03
8.2.30.0080.00017.91
8.2.20.0040.00417.59
8.2.10.0040.00417.91
8.2.00.0050.00217.59
8.1.280.0110.00325.92
8.1.270.0030.00623.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.83
8.1.230.0070.00719.01
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0090.00017.23
8.1.190.0040.00416.88
8.1.180.0040.00418.10
8.1.170.0060.00318.41
8.1.160.0000.00821.97
8.1.150.0000.00818.62
8.1.140.0000.00717.30
8.1.130.0030.00317.68
8.1.120.0000.00717.24
8.1.110.0000.00717.22
8.1.100.0070.00017.31
8.1.90.0040.00417.23
8.1.80.0030.00317.38
8.1.70.0000.00717.17
8.1.60.0040.00417.46
8.1.50.0040.00417.25
8.1.40.0030.00617.36
8.1.30.0080.00017.41
8.1.20.0020.00517.44
8.1.10.0020.00517.38
8.1.00.0000.00717.22
8.0.300.0000.00718.77
8.0.290.0030.00616.63
8.0.280.0000.00718.36
8.0.270.0040.00417.22
8.0.260.0000.00817.21
8.0.250.0020.00516.80
8.0.240.0070.00016.83
8.0.230.0090.00016.83
8.0.220.0000.00716.68
8.0.210.0050.00316.83
8.0.200.0000.00716.74
8.0.190.0030.00316.88
8.0.180.0000.00716.83
8.0.170.0000.00816.76
8.0.160.0040.00416.73
8.0.150.0040.00416.62
8.0.140.0070.00316.53
8.0.130.0030.00613.43
8.0.120.0040.00416.77
8.0.110.0080.00016.76
8.0.100.0000.00816.68
8.0.90.0000.00716.75
8.0.80.0040.01216.69
8.0.70.0050.00216.81
8.0.60.0040.00416.68
8.0.50.0040.00416.53
8.0.30.0090.01016.88
8.0.20.0050.01517.40
8.0.10.0000.00816.73
8.0.00.0060.01116.52
7.4.330.0070.00015.00
7.4.320.0000.00616.35
7.4.300.0030.00316.40
7.4.290.0000.01116.25
7.4.280.0000.00716.46
7.4.270.0050.00216.37
7.4.260.0000.00616.36
7.4.250.0000.00716.43
7.4.240.0040.00316.32
7.4.230.0000.00716.34
7.4.220.0170.01016.42
7.4.210.0140.00716.32
7.4.200.0040.00416.50
7.4.160.0120.00316.27
7.4.150.0150.00317.40
7.4.140.0110.01017.86
7.4.130.0180.02216.42
7.4.120.0080.00816.61
7.4.110.0130.00716.35
7.4.100.0100.00716.25
7.4.90.0030.01316.19
7.4.80.0140.00719.39
7.4.70.0110.00516.45
7.4.60.0080.00816.33
7.4.50.0020.00216.45
7.4.40.0060.00916.32
7.4.30.0000.01616.13
7.3.330.0060.00013.08
7.3.320.0050.00013.18
7.3.310.0070.00016.19
7.3.300.0030.00316.12
7.3.290.0090.00616.11
7.3.280.0060.00916.17
7.3.270.0140.01017.40
7.3.260.0070.01016.46
7.3.250.0120.00416.27
7.3.240.0140.00416.21
7.3.230.0070.01116.45
7.3.210.0070.01116.02
7.3.200.0110.01119.39
7.3.190.0130.01016.25
7.3.180.0060.01016.34
7.3.170.0030.01216.27
7.3.160.0130.00316.36
7.2.330.0140.00416.37
7.2.320.0110.00716.37
7.2.310.0080.00816.23
7.2.300.0120.01316.66
7.2.290.0050.01116.50
5.4.320.3630.03718.95
5.4.310.3670.03319.14
5.4.300.3930.03319.04
5.4.290.3830.04019.11
5.4.280.4670.03719.15
5.4.270.1230.04318.98
5.4.260.2570.03719.22
5.4.250.4230.04019.16
5.4.240.3800.04719.14
5.4.230.3670.03319.10
5.4.220.3570.03719.22
5.4.210.3530.04019.22
5.4.200.3600.03718.93
5.4.190.3400.03719.05
5.4.180.4430.03719.25
5.4.170.3830.03319.21
5.4.160.3800.04019.08
5.4.150.3700.03719.11
5.4.140.3800.04016.51
5.4.130.3670.03316.34
5.4.120.4000.03316.37
5.4.110.3530.03316.22
5.4.100.4400.04016.45
5.4.90.4370.03716.48
5.4.80.3730.04016.47
5.4.70.4400.03016.62
5.4.60.4530.04016.46
5.4.50.3370.04016.49
5.4.40.2930.03316.45
5.4.30.3600.05016.52
5.4.20.3370.03016.19
5.4.10.3970.03316.45
5.4.00.3600.03715.82

preferences:
50.19 ms | 400 KiB | 5 Q