3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array(); $test[5] = 'test'; if(array_key_exists(5,$test)){ echo '5 exists<br>'; } if(array_key_exists(2,$test)){ echo '2 exists<br>'; } if(array_key_exists(10,$test)){ echo '10 exists <br>'; }

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.00618.30
8.3.50.0090.00621.93
8.3.40.0090.00919.02
8.3.30.0120.00318.96
8.3.20.0050.00220.22
8.3.10.0030.00622.15
8.3.00.0110.00722.33
8.2.180.0070.01416.50
8.2.170.0000.01422.96
8.2.160.0110.00420.93
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0030.00626.16
8.2.120.0000.00817.75
8.2.110.0090.00021.89
8.2.100.0060.00617.72
8.2.90.0050.00219.27
8.2.80.0040.00419.78
8.2.70.0060.00317.25
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0000.00718.16
8.2.30.0000.00718.16
8.2.20.0040.00417.64
8.2.10.0080.00019.34
8.2.00.0040.00417.67
8.1.280.0100.00725.92
8.1.270.0000.00722.05
8.1.260.0040.00426.35
8.1.250.0000.00928.09
8.1.240.0060.00324.02
8.1.230.0070.00419.15
8.1.220.0000.00917.79
8.1.210.0040.00418.77
8.1.200.0070.00317.23
8.1.190.0040.00417.53
8.1.180.0000.00818.10
8.1.170.0000.00818.48
8.1.160.0040.00421.88
8.1.150.0050.00218.54
8.1.140.0040.00417.29
8.1.130.0070.00017.73
8.1.120.0000.00817.36
8.1.110.0040.00417.28
8.1.100.0000.00717.34
8.1.90.0030.00617.37
8.1.80.0040.00417.37
8.1.70.0030.00317.28
8.1.60.0030.00617.49
8.1.50.0040.00417.40
8.1.40.0040.00417.37
8.1.30.0020.00517.63
8.1.20.0030.00617.49
8.1.10.0040.00417.61
8.1.00.0070.00017.36
8.0.300.0090.00018.77
8.0.290.0000.00717.05
8.0.280.0070.00018.46
8.0.270.0000.00717.31
8.0.260.0060.00016.77
8.0.250.0030.00316.89
8.0.240.0040.00416.86
8.0.230.0000.00716.87
8.0.220.0000.00716.81
8.0.210.0070.00016.71
8.0.200.0000.00816.71
8.0.190.0000.00916.89
8.0.180.0030.00316.89
8.0.170.0030.00616.86
8.0.160.0040.00416.80
8.0.150.0000.00716.85
8.0.140.0000.00716.80
8.0.130.0050.00013.23
8.0.120.0000.00716.68
8.0.110.0000.00716.68
8.0.100.0000.00716.70
8.0.90.0040.00416.77
8.0.80.0070.01016.75
8.0.70.0000.00816.77
8.0.60.0030.00416.76
8.0.50.0000.00716.62
8.0.30.0150.00717.05
8.0.20.0140.00817.40
8.0.10.0060.00316.88
8.0.00.0080.01016.81
7.4.330.0020.00215.20
7.4.320.0030.00316.58
7.4.300.0000.00616.59
7.4.290.0000.00716.40
7.4.280.0000.00716.61
7.4.270.0000.00716.56
7.4.260.0070.00016.53
7.4.250.0040.00416.59
7.4.240.0010.00616.58
7.4.230.0060.00016.30
7.4.220.0070.01116.53
7.4.210.0060.01116.51
7.4.200.0000.00716.33
7.4.190.0040.00416.56
7.4.160.0170.00016.39
7.4.150.0030.01417.40
7.4.140.0100.00717.86
7.4.130.0100.00916.72
7.4.120.0080.00916.47
7.4.110.0090.00916.41
7.4.100.0050.01416.62
7.4.90.0130.00316.45
7.4.80.0060.01219.39
7.4.70.0030.01316.46
7.4.60.0150.00816.44
7.4.50.0000.00416.46
7.4.40.0060.00922.77
7.4.30.0110.00416.38
7.4.00.0060.01215.11
7.3.330.0060.00013.07
7.3.320.0000.00512.94
7.3.310.0030.00316.07
7.3.300.0000.00616.09
7.3.290.0120.00616.16
7.3.280.0100.00916.25
7.3.270.0100.00717.40
7.3.260.0100.00716.61
7.3.250.0100.01016.42
7.3.240.0100.01316.22
7.3.230.0040.01516.39
7.3.210.0070.01116.29
7.3.200.0000.01719.39
7.3.190.0060.01116.46
7.3.180.0070.01016.51
7.3.170.0100.00616.27
7.3.160.0070.01016.42
7.3.120.0100.00314.40
7.2.330.0070.01016.33
7.2.320.0140.00816.60
7.2.310.0090.00916.45
7.2.300.0150.00316.77
7.2.290.0060.01216.54
7.2.00.0110.00819.42
7.1.200.0000.01415.60
7.1.100.0060.00618.03
7.1.70.0000.00716.79
7.1.60.0140.00719.82
7.1.50.0500.01716.79
7.1.00.0070.07322.31
7.0.200.0070.00416.76
7.0.140.0030.06722.13
7.0.60.0070.08019.86
7.0.50.0000.04317.78
7.0.40.0100.03720.00
7.0.30.0600.07020.04
7.0.20.0300.06020.35
7.0.10.0270.07720.18
7.0.00.0070.08019.99
5.6.280.0100.06721.07
5.6.210.0100.08020.60
5.6.200.0070.07718.13
5.6.190.0100.06320.63
5.6.180.0300.05020.59
5.6.170.0300.06320.47
5.6.160.0070.08320.49
5.6.150.0030.08718.08
5.6.140.0170.07018.11
5.6.130.0000.09018.21
5.6.120.0100.07720.89
5.6.110.0030.07721.02
5.6.100.0100.08021.00
5.6.90.0170.07320.98
5.6.80.0130.07320.51
5.6.70.0300.05720.39
5.5.350.0370.08020.32
5.5.340.0030.04317.88
5.5.330.0100.06020.21
5.5.320.0270.07320.15
5.5.310.0230.04320.26
5.5.300.0070.03718.01
5.5.290.0030.04717.98
5.5.280.0170.07320.87
5.5.270.0100.08320.97
5.5.260.0070.06020.79
5.5.250.0070.04320.71
5.5.240.0070.07320.36
5.4.450.0730.06719.35
5.4.440.0430.06019.63
5.4.430.0100.05319.18
5.4.420.0200.04319.63
5.4.410.0030.06318.89
5.4.400.0100.05318.68
5.4.390.0100.05018.59
5.4.380.0900.05718.72
5.4.370.0200.04718.52
5.4.360.0170.04718.70
5.4.350.0170.05018.69
5.4.340.0170.05018.65
5.4.320.0030.03912.46
5.4.310.0120.03212.45
5.4.300.0070.04212.45
5.4.290.0080.04012.45
5.4.280.0100.03212.35
5.4.270.0170.05718.95
5.4.260.0070.07318.98
5.4.250.0070.07318.88
5.4.240.0130.07318.98
5.4.230.0200.05019.05
5.4.220.0100.05718.93
5.4.210.0300.05718.79
5.4.200.0100.06019.00
5.4.190.0230.05018.97
5.4.180.0030.06018.98
5.4.170.0070.06318.93
5.4.160.0170.07719.07
5.4.150.0070.06718.97
5.4.140.0200.06316.61
5.4.130.0070.06316.54
5.4.120.0200.05316.32
5.4.110.0170.04716.55
5.4.100.0100.07016.44
5.4.90.0230.04716.30
5.4.80.0030.05716.48
5.4.70.0070.05016.58
5.4.60.0070.05316.34
5.4.50.0170.04016.27
5.4.40.0170.04016.43
5.4.30.0070.05016.46
5.4.20.0070.05716.41
5.4.10.0200.04316.48
5.4.00.0270.05015.78
5.3.290.0040.04112.80
5.3.280.0170.06314.75
5.3.270.0070.05714.61
5.3.260.0130.06314.64
5.3.250.0100.06014.59
5.3.240.0070.07314.69
5.3.230.0070.07314.58
5.3.220.0130.05014.72
5.3.210.0100.05014.61
5.3.200.0200.07014.61
5.3.190.0070.06014.71
5.3.180.0170.06014.73
5.3.170.0170.06714.71
5.3.160.0000.05714.49
5.3.150.0070.05714.66
5.3.140.0100.05014.69
5.3.130.0100.05314.55
5.3.120.0100.08314.65
5.3.110.0200.04714.63
5.3.100.0170.06314.22
5.3.90.0070.06014.02
5.3.80.0130.05314.21
5.3.70.0200.06014.08
5.3.60.0070.06714.05
5.3.50.0170.05014.00
5.3.40.0100.07014.12
5.3.30.0070.06313.90
5.3.20.0170.06013.74
5.3.10.0200.05313.73
5.3.00.0130.07313.65
5.2.170.0130.05711.38
5.2.160.0070.04311.36
5.2.150.0000.07311.39
5.2.140.0000.04711.12
5.2.130.0070.04711.24
5.2.120.0100.04711.23
5.2.110.0000.04311.22
5.2.100.0100.03711.23
5.2.90.0100.04711.33
5.2.80.0030.04310.90
5.2.70.0100.05711.28
5.2.60.0000.04710.98
5.2.50.0000.05011.12
5.2.40.0100.03711.10
5.2.30.0070.04311.07
5.2.20.0100.03711.15
5.2.10.0030.05710.99
5.2.00.0070.04010.82
5.1.60.0000.04010.11
5.1.50.0070.03310.03
5.1.40.0130.0409.96
5.1.30.0130.03010.33
5.1.20.0100.03310.40
5.1.10.0000.04310.05
5.1.00.0070.03310.11
5.0.50.0100.0238.63
5.0.40.0070.0238.70
5.0.30.0000.0478.34
5.0.20.0070.0238.37
5.0.10.0030.0278.46
5.0.00.0070.0408.47
4.4.90.0030.0207.40
4.4.80.0070.0307.40
4.4.70.0000.0277.40
4.4.60.0030.0307.40
4.4.50.0000.0337.40
4.4.40.0070.0307.34
4.4.30.0030.0207.28
4.4.20.0000.0237.28
4.4.10.0000.0237.22
4.4.00.0070.0377.18
4.3.110.0130.0207.15
4.3.100.0000.0237.13
4.3.90.0070.0276.82
4.3.80.0000.0336.66
4.3.70.0070.0176.66
4.3.60.0000.0336.66
4.3.50.0030.0206.66
4.3.40.0100.0306.66
4.3.30.0030.0306.66
4.3.20.0070.0236.66
4.3.10.0070.0276.66
4.3.00.0000.01715.59

preferences:
42 ms | 401 KiB | 5 Q