3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 'foo' => 'bar', 'key' => 'value' ); $start = time(true); $a = isset($arr['foo']); $b = isset($arr['bar']); var_dump(time(true) - $start); $start = time(true); $a = array_key_exists('foo', $arr); $b = array_key_exists('bar', $arr); var_dump(time(true) - $start);

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.00316.25
7.3.00.0100.00716.59
7.2.130.0060.00316.87
7.2.120.0100.00316.56
7.2.110.0060.00616.88
7.2.100.0030.01316.93
7.2.90.0100.00317.07
7.2.80.0120.00316.91
7.2.70.0060.01016.54
7.2.60.0060.01116.87
7.2.50.0060.00916.69
7.2.40.0000.01016.84
7.2.30.0090.00616.87
7.2.20.0090.00616.77
7.2.10.0030.00716.68
7.2.00.0060.00818.08
7.1.250.0060.00315.86
7.1.200.0040.00815.71
7.1.100.0000.01118.09
7.1.70.0060.00616.85
7.1.60.0030.00717.23
7.1.50.0040.00716.96
7.1.40.0100.00616.63
7.1.30.0000.01116.45
7.1.20.0110.00416.45
7.1.10.0050.01116.45
7.1.00.0000.00816.77
7.0.200.0000.00816.50
7.0.190.0030.00616.70
7.0.180.0080.00316.25
7.0.170.0030.00616.34
7.0.160.0080.00316.11
7.0.150.0090.00416.26
7.0.140.0030.00916.06
7.0.130.0110.00416.36
7.0.120.0070.00716.54
7.0.110.0060.00616.45
7.0.100.0040.00816.39
7.0.90.0060.00916.39
7.0.80.0080.00416.27
7.0.70.0120.00016.38
7.0.60.0000.01116.20
7.0.50.0060.00916.18
7.0.40.0070.00715.41
7.0.30.0040.00815.41
7.0.20.0080.00415.41
7.0.10.0040.00815.41
7.0.00.0050.00515.41
5.6.300.0030.04620.79
5.6.290.0070.06320.89
5.6.280.0040.04620.78
5.6.270.0100.04520.78
5.6.260.0060.04421.02
5.6.250.0040.04420.88
5.6.240.0070.05020.95
5.6.230.0000.05920.83
5.6.220.0090.03920.93
5.6.210.0100.03920.77
5.6.200.0090.04320.82
5.6.190.0250.03220.82
5.6.180.0070.04420.92
5.6.170.0070.04220.88
5.6.160.0150.03421.03
5.6.150.0150.03120.76
5.6.140.0030.05121.03
5.6.130.0070.04320.72
5.6.120.0130.03820.83
5.6.110.0070.04220.91
5.6.100.0030.04420.96
5.6.90.0110.03720.86
5.6.80.0000.04420.37
5.6.70.0030.04320.35
5.6.60.0040.04220.10
5.6.50.0000.05420.41
5.6.40.0130.03420.16
5.6.30.0120.03920.28
5.6.20.0120.03320.18
5.6.10.0030.06720.07
5.6.00.0070.08620.11
5.5.380.0030.05217.47
5.5.370.0070.04817.48
5.5.360.0100.05617.41
5.5.350.0070.04217.48
5.5.340.0000.04718.00
5.5.330.0070.03717.70
5.5.320.0040.04018.05
5.5.310.0030.04018.04
5.5.300.0000.04518.04
5.5.290.0070.04017.98
5.5.280.0000.08117.95
5.5.270.0070.04017.98
5.5.260.0030.04417.93
5.5.250.0130.04317.80
5.5.240.0030.04317.32
5.5.230.0100.04817.08
5.5.220.0030.04717.43
5.5.210.0040.03917.39
5.5.200.0030.03817.21
5.5.190.0030.03717.30
5.5.180.0070.04117.10
5.5.160.0030.03817.30
5.5.150.0070.07517.33
5.5.140.0000.04517.40
5.5.130.0030.03717.34
5.5.120.0030.04717.05
5.5.110.0030.04117.39
5.5.100.0030.05317.30
5.5.90.0030.07017.30
5.5.80.0030.04417.17
5.5.70.0030.04217.27
5.5.60.0000.04317.23
5.5.50.0030.03717.07
5.5.40.0070.05617.07
5.5.30.0030.03817.20
5.5.20.0000.04217.27
5.5.10.0060.03417.20
5.5.00.0000.04417.15
5.4.450.0000.05619.21
5.4.440.0100.03419.24
5.4.430.0030.03919.29
5.4.420.0030.04319.50
5.4.410.0070.04019.36
5.4.400.0070.03319.02
5.4.390.0030.03719.18
5.4.380.0030.04018.86
5.4.370.0030.04318.98
5.4.360.0030.03819.19
5.4.350.0030.03918.95
5.4.340.0100.03319.09
5.4.320.0100.07719.16
5.4.310.0000.04718.88
5.4.300.0000.05218.84
5.4.290.0060.03518.97
5.4.280.0000.04819.16
5.4.270.0030.03918.96
5.4.260.0000.04918.83
5.4.250.0070.04319.01
5.4.240.0000.04018.80
5.4.230.0040.03918.96
5.4.220.0060.04818.87
5.4.210.0000.04018.87
5.4.200.0060.07418.99
5.4.190.0170.04719.08
5.4.180.0030.03619.12
5.4.170.0000.04119.14
5.4.160.0030.04018.89
5.4.150.0100.03218.97
5.4.140.0000.04016.47
5.4.130.0060.04216.46
5.4.120.0070.06916.56
5.4.110.0030.06916.66
5.4.100.0030.03416.65
5.4.90.0040.03516.59
5.4.80.0030.03316.62
5.4.70.0200.04116.50
5.4.60.0030.03516.44
5.4.50.0030.03416.59
5.4.40.0000.03716.71
5.4.30.0030.03816.33
5.4.20.0000.04016.34
5.4.10.0070.04916.50
5.4.00.0070.03216.13
5.3.290.0030.06415.41
5.3.280.0000.04215.41
5.3.270.0000.05215.41
5.3.260.0070.03615.41
5.3.250.0040.04215.41
5.3.240.0070.03515.41
5.3.230.0070.03115.41
5.3.220.0030.05015.41
5.3.210.0030.03815.41
5.3.200.0000.04015.41
5.3.190.0040.03915.41
5.3.180.0060.05815.41
5.3.170.0000.04115.41
5.3.160.0100.03115.41
5.3.150.0030.03715.41
5.3.140.0070.03415.41
5.3.130.0000.04115.41
5.3.120.0030.03815.41
5.3.110.0000.04515.41
5.3.100.0060.03415.41
5.3.90.0030.03915.41
5.3.80.0030.03815.41
5.3.70.0000.03815.41
5.3.60.0000.03715.41
5.3.50.0000.04015.41
5.3.40.0060.03215.41
5.3.30.0070.06415.41
5.3.20.0000.03815.41
5.3.10.0070.03315.41
5.3.00.0060.03115.41
5.2.170.0000.03615.41
5.2.160.0030.02915.41
5.2.150.0000.03115.41
5.2.140.0090.02815.41
5.2.130.0000.03015.41
5.2.120.0070.02415.41
5.2.110.0000.03415.41
5.2.100.0000.05915.41
5.2.90.0000.02915.41
5.2.80.0030.02915.41
5.2.70.0000.04215.41
5.2.60.0000.04115.41
5.2.50.0030.04915.41
5.2.40.0060.02615.41
5.2.30.0000.03315.41
5.2.20.0070.02315.41
5.2.10.0100.05615.41
5.2.00.0030.03015.41
5.1.60.0040.02515.41
5.1.50.0100.02015.41
5.1.40.0000.02615.41
5.1.30.0030.02715.41
5.1.20.0060.02215.41
5.1.10.0030.02315.41
5.1.00.0030.05015.41
5.0.50.0040.02115.41
5.0.40.0030.03315.41
5.0.30.0030.06915.41
5.0.20.0000.02715.41
5.0.10.0000.02315.41
5.0.00.0000.03515.41
4.4.90.0070.02315.41
4.4.80.0030.03615.41
4.4.70.0000.04115.41
4.4.60.0000.03215.41
4.4.50.0000.03915.41
4.4.40.0070.02015.41
4.4.30.0000.01615.41
4.4.20.0070.01715.41
4.4.10.0030.02615.41
4.4.00.0000.02615.41
4.3.110.0030.03015.41
4.3.100.0040.01515.41
4.3.90.0000.02215.41
4.3.80.0000.02615.41
4.3.70.0000.02415.41
4.3.60.0000.01915.41
4.3.50.0030.01315.41
4.3.40.0000.02815.41
4.3.30.0030.01515.41
4.3.20.0000.02715.41
4.3.10.0000.03715.41
4.3.00.0030.01315.41

preferences:
32.54 ms | 400 KiB | 5 Q