3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=0; $max = 500; while($i < $max) { $i++; $data[md5($i)] = true; } $stime = microtime(true); $i=0; while($i < $max) { array_key_exists('notexistingkey', $data); } $time = microtime(true) - $stime; echo "Starting array_key_exists => $time\n"; $stime = microtime(true); $i=0; while($i < $max) { isset($data['notexistingkey']); } $time = microtime(true) - $stime; echo "Starting isset => $time\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.1.60.1302.10733.55
7.1.50.1002.10333.29
7.1.40.1572.30332.76
7.1.30.1332.35032.68
7.1.20.1572.26732.71
7.1.10.0471.68314.77
7.1.00.0432.35218.68
7.0.200.1302.11714.76
7.0.190.2271.98715.18
7.0.180.1472.21714.36
7.0.170.1572.28714.50
7.0.160.1332.28014.72
7.0.150.0302.36314.64
7.0.140.0232.41318.36
7.0.130.0872.34714.61
7.0.120.0472.30314.73
7.0.110.0702.19714.66
7.0.100.0472.29218.23
7.0.90.0572.27818.03
7.0.80.0372.36017.19
7.0.70.0182.45817.29
7.0.60.0232.47217.27
7.0.50.0322.45317.50
7.0.40.0772.37717.38
7.0.30.0272.45517.40
7.0.20.0252.45717.35
7.0.10.0252.46817.36
7.0.00.0452.44517.26
5.6.300.0432.11320.84
5.6.290.0132.30020.66
5.6.280.0222.37820.98
5.6.270.0472.28720.91
5.6.260.0432.18720.95
5.6.250.0202.36720.84
5.6.240.0202.32020.83
5.6.230.0252.43220.76
5.6.220.0102.46320.75
5.6.210.0102.49020.80
5.6.200.0252.42021.01
5.6.190.0302.44720.98
5.6.180.0202.47321.05
5.6.170.0122.46320.98
5.6.160.0102.47521.02
5.6.150.0202.17220.97
5.6.140.0252.45020.97
5.6.130.0232.46021.04
5.6.120.0252.32220.98
5.6.110.0102.41220.96
5.6.100.0822.26020.95
5.6.90.0172.09320.96
5.6.80.0202.26820.39
5.6.70.0201.93020.51
5.6.60.0152.25220.40
5.6.50.0122.31520.47
5.6.40.0182.33820.29
5.6.30.0122.17320.37
5.6.20.0152.10020.34
5.6.10.0102.37820.45
5.6.00.0132.35020.34
5.5.380.0222.35518.97
5.5.370.0222.45319.04
5.5.360.0072.46719.01
5.5.350.0272.43518.92
5.5.340.0382.40819.41
5.5.330.0182.42319.37
5.5.320.0252.45519.46
5.5.310.0352.42519.37
5.5.300.0172.40319.40
5.5.290.0252.43019.51
5.5.280.0252.41819.46
5.5.270.0482.27319.51
5.5.260.0232.11819.49
5.5.250.0102.07319.30
5.5.240.0222.20218.85
5.5.230.0172.05518.85
5.5.220.0252.27718.87
5.5.210.0322.41218.71
5.5.200.0322.36818.91
5.5.190.0182.03518.79
5.5.180.0381.96018.83
5.5.160.0182.40518.86
5.5.150.0172.16718.74
5.5.140.0282.28518.82
5.5.130.0352.30318.74
5.5.120.0202.41518.75
5.5.110.0172.42318.82
5.5.100.0282.34318.78
5.5.90.0272.12218.75
5.5.80.0372.32318.68
5.5.70.0352.38218.62
5.5.60.0182.39718.72
5.5.50.0222.36818.73
5.5.40.0272.36018.79
5.5.30.0202.44318.64
5.5.20.0452.35018.75
5.5.10.0222.38218.76
5.5.00.0232.39818.66
5.4.450.0132.47219.36
5.4.440.0272.40719.27
5.4.430.0182.34019.31
5.4.420.0121.93219.23
5.4.410.0252.22019.08
5.4.400.0221.99319.12
5.4.390.0252.30719.07
5.4.380.0132.37019.01
5.4.370.0152.37319.04
5.4.360.0232.41718.86
5.4.350.0221.96818.96
5.4.340.0352.10018.86
5.4.320.0172.44219.05
5.4.310.0402.30319.03
5.4.300.0372.28218.96
5.4.290.0172.38018.99
5.4.280.0272.35018.95
5.4.270.0172.39518.97
5.4.260.0132.30719.02
5.4.250.0272.21819.02
5.4.240.0352.39218.99
5.4.230.0172.40218.99
5.4.220.0182.41818.99
5.4.210.0372.34218.99
5.4.200.0082.44819.07
5.4.190.0152.41019.15
5.4.180.0252.40218.90
5.4.170.0232.39218.98
5.4.160.0132.39519.19
5.4.150.0272.41518.82
5.4.140.0402.33316.58
5.4.130.0282.36516.45
5.4.120.0302.35216.33
5.4.110.0282.34216.55
5.4.100.0322.18516.49
5.4.90.0121.66016.44
5.4.80.0272.02016.50
5.4.70.0282.17516.47
5.4.60.0402.31016.42
5.4.50.0352.15216.48
5.4.40.0352.09716.32
5.4.30.0082.20516.47
5.4.20.0132.08716.45
5.4.10.0202.15316.33
5.4.00.0232.12515.83
5.3.290.0172.38514.55
5.3.280.0352.34714.48
5.3.270.0252.33514.47
5.3.260.0202.42214.55
5.3.250.0302.36314.54
5.3.240.0352.33014.47
5.3.230.0152.42314.45
5.3.220.0282.37014.27
5.3.210.0282.34014.50
5.3.200.0272.19214.52
5.3.190.0271.73814.50
5.3.180.0232.11714.41
5.3.170.0102.16214.46
5.3.160.0152.37814.50
5.3.150.0402.25214.39
5.3.140.0332.15714.48
5.3.130.0332.16014.46
5.3.120.0222.22314.48
5.3.110.0322.15314.43
5.3.100.0402.20313.92
5.3.90.0072.44013.83
5.3.80.0322.37313.78
5.3.70.0332.35313.80
5.3.60.0172.41013.86
5.3.50.0152.28213.78
5.3.40.0122.11713.72
5.3.30.0281.91313.69
5.3.20.0232.37013.62
5.3.10.0332.34713.48
5.3.00.0452.32213.48
5.2.170.0182.24511.02
5.2.160.0272.19311.06
5.2.150.0552.00810.98
5.2.140.0322.32211.11
5.2.130.0352.32310.99
5.2.120.0222.37710.97
5.2.110.0322.36711.02
5.2.100.0302.22811.04
5.2.90.0332.33010.99
5.2.80.0182.37310.83
5.2.70.0232.34310.99
5.2.60.0302.38710.86
5.2.50.0052.41510.93
5.2.40.0232.38710.88
5.2.30.0122.32710.91
5.2.20.0152.39010.92
5.2.10.0322.35010.79
5.2.00.0202.36210.69
5.1.60.0272.38310.03
5.1.50.0222.3429.99
5.1.40.0102.4309.96
5.1.30.0122.43810.36
5.1.20.0172.41510.41
5.1.10.0282.35210.06
5.1.00.0222.36010.09
5.0.50.0232.2378.48
5.0.40.0151.9678.26
5.0.30.0122.1938.15
5.0.20.0122.3808.09
5.0.10.0172.3608.10
5.0.00.0102.4388.20
4.4.90.0172.3926.83
4.4.80.0202.3676.79
4.4.70.0132.4376.88
4.4.60.0222.4186.86
4.4.50.0172.3706.88
4.4.40.0332.3206.84
4.4.30.0102.4286.84
4.4.20.0152.3506.87
4.4.10.0202.3826.83
4.4.00.0082.0086.87
4.3.110.0152.3626.85
4.3.100.0082.3686.84
4.3.90.0252.3626.87
4.3.80.0032.4336.80
4.3.70.0122.3976.79
4.3.60.0172.4106.76
4.3.50.0082.4486.80
4.3.40.0122.3986.76
4.3.30.0102.4256.21
4.3.20.0222.4086.21
4.3.10.0022.4376.21
4.3.00.0172.4376.21

preferences:
45.17 ms | 400 KiB | 5 Q