3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = array_combine(range(0, 10000), range(0, 10000)); $a = microtime(); for($i = 0; $i < 10000; $i++) { array_key_exists(rand(0, 10000), $c); } $b = microtime(); echo $b - $a; $t = array_combine(range(0, 10000), range(0, 10000)); $d = microtime(); for($i = 0; $i < 10000; $i++) { isset($t[rand(0, 10000)]); } $e = microtime(); echo $e - $d;

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.3.10.0060.00918.65
7.3.00.0130.00318.26
7.2.130.0210.00318.53
7.2.120.0070.01118.55
7.2.110.0030.01918.77
7.2.100.0060.00918.66
7.2.90.0030.01318.49
7.2.80.0070.00418.37
7.2.70.0070.01118.81
7.2.60.0070.01618.25
7.2.50.0070.01018.62
7.2.40.0170.01018.51
7.2.30.0100.01018.71
7.2.20.0040.01618.71
7.2.10.0140.00318.55
7.2.00.0120.01019.88
7.1.250.0060.01317.86
7.1.70.0090.00618.90
7.1.60.0030.01819.25
7.1.50.0090.01918.76
7.1.00.0070.07324.21
7.0.200.1250.00318.32
7.0.140.0000.08023.92
7.0.60.0100.07321.14
7.0.50.0100.08018.87
7.0.40.0070.05720.07
7.0.30.0230.04720.10
7.0.20.0370.06720.16
7.0.10.0100.05320.13
7.0.00.0030.04320.20
5.6.280.0030.09026.58
5.6.210.0300.07326.08
5.6.200.0070.07723.36
5.6.190.0170.04725.89
5.6.180.3300.05025.80
5.6.170.0270.05725.76
5.6.160.0130.09325.76
5.6.150.0100.09023.46
5.6.140.0070.09723.36
5.6.130.0070.05723.59
5.6.120.0170.09326.43
5.6.110.0330.08326.41
5.6.100.0170.09026.41
5.6.90.0070.04726.42
5.6.80.0030.06725.84
5.5.350.0030.10325.90
5.5.340.0070.08023.27
5.5.330.0030.10725.38
5.5.320.0300.04325.62
5.5.310.0270.04025.46
5.5.300.0170.05723.27
5.5.290.0070.09723.39
5.5.280.0170.05326.23
5.5.270.0070.09326.23
5.5.260.0030.05026.32
5.5.250.0100.04725.89
5.5.240.0130.05025.69
5.4.450.0230.06324.59
5.4.440.0300.06324.92
5.4.430.0230.06024.67
5.4.420.0870.05724.90
5.4.410.0900.08024.61
5.4.400.1030.04324.28
5.4.390.0970.04724.62
5.4.380.0500.07323.95
5.4.370.0430.08024.14
5.4.360.0430.07024.14
5.4.350.0500.06724.08
5.4.340.0630.06324.11
5.4.320.0130.06117.88
5.4.310.0060.05217.88
5.4.300.0060.04917.88
5.4.290.0100.04817.88
5.4.280.0070.04717.78
5.4.270.0130.05017.78
5.4.260.0070.04917.78
5.4.250.0040.05217.78
5.4.240.0040.05017.78
5.4.230.0110.05117.77
5.4.220.0120.04417.77
5.4.210.0110.04417.77
5.4.200.0090.04917.77
5.4.190.0080.05017.77
5.4.180.0080.04517.77
5.4.170.0030.05117.78
5.4.160.0060.04917.77
5.4.150.0060.04817.74
5.4.140.0120.04617.46
5.4.130.0090.04517.44
5.4.120.0100.04617.40
5.4.110.0110.04417.39
5.4.100.0080.04717.40
5.4.90.0120.05417.40
5.4.80.0060.05017.39
5.4.70.0110.04317.39
5.4.60.0080.04517.39
5.4.50.0090.04417.39
5.4.40.0100.04817.38
5.4.30.0120.04717.38
5.4.20.0080.05017.38
5.4.10.0090.04817.38
5.4.00.0040.05916.85
5.3.290.0060.05618.08
5.3.280.0120.05018.00
5.3.270.0110.05418.02
5.3.260.0100.05618.02
5.3.250.0050.05118.02
5.3.240.0080.04818.02
5.3.230.0130.04618.01
5.3.220.0080.05817.98
5.3.210.0060.05217.98
5.3.200.0060.04917.98
5.3.190.0090.04917.98
5.3.180.0050.05217.97
5.3.170.0060.05517.97
5.3.160.0100.05217.98
5.3.150.0100.04717.97
5.3.140.0050.05117.96
5.3.130.0060.05817.96
5.3.120.0080.04817.96
5.3.110.0110.04717.96
5.3.100.0110.05017.45
5.3.90.0090.04917.43
5.3.80.0090.04617.42
5.3.70.0090.05617.43
5.3.60.0070.04817.41
5.3.50.0060.05017.35
5.3.40.0090.05117.35
5.3.30.0120.04717.31
5.3.20.0090.04717.09
5.3.10.0080.04717.06
5.3.00.0060.05017.05
5.2.170.0060.04314.02
5.2.160.0070.04014.02
5.2.150.0080.04014.02
5.2.140.0100.04114.01
5.2.130.0080.04413.97
5.2.120.0040.04313.97
5.2.110.0080.04613.98
5.2.100.0050.04313.97
5.2.90.0060.04513.98
5.2.80.0060.04414.27
5.2.70.0100.03913.97
5.2.60.0050.04113.92
5.2.50.0080.04213.89
5.2.40.0060.04813.87
5.2.30.0060.04913.84
5.2.20.0070.04213.84
5.2.10.0080.03813.76
5.2.00.0090.03713.62
5.1.60.0030.04214.88
5.1.50.0090.03514.88
5.1.40.0040.03914.86
5.1.30.0080.03915.20
5.1.20.0050.04215.23
5.1.10.0070.03714.95
5.1.00.0080.03814.96
5.0.50.0080.03913.44
5.0.40.0060.03813.29
5.0.30.0060.06113.11
5.0.20.0070.03613.08
5.0.10.0060.03813.05
5.0.00.0070.04313.05
4.4.90.0030.0164.78
4.4.80.0030.0154.76
4.4.70.0000.0184.75
4.4.60.0030.0144.75
4.4.50.0050.0184.77
4.4.40.0020.0264.71
4.4.30.0020.0164.76
4.4.20.0020.0164.84
4.4.10.0020.0184.85
4.4.00.0020.0264.76
4.3.110.0040.0184.67
4.3.100.0040.0234.66
4.3.90.0020.0194.63
4.3.80.0030.0244.58
4.3.70.0050.0134.63
4.3.60.0020.0154.63
4.3.50.0040.0144.63
4.3.40.0000.0264.54
4.3.30.0000.0183.30
4.3.20.0010.0173.27
4.3.10.0010.0173.23
4.3.00.0200.03315.28

preferences:
38.59 ms | 400 KiB | 5 Q