3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isset_or(&$check, $alternate = NULL) { return (isset($check)) ? $check : $alternate; } $orig = ['alpha' => 1]; $tested = $orig; echo 'isset_or($tested["beta"]): ', isset_or($tested['beta'], 'nope'); var_export([ '$orig' => $orig, '$tested' => $tested, 'array_key_exists("beta")' => [ '$orig' => array_key_exists('beta', $orig), '$tested' => array_key_exists('beta', $tested), ], ]);

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.1rc30.0030.00517.00
8.1rc20.0000.00717.05
8.1rc10.0000.00816.92
8.0.130.0030.00313.22
8.0.120.0000.00816.83
8.0.110.0030.00516.79
8.0.100.0050.00216.61
8.0.90.0000.00816.63
8.0.80.0120.00316.89
8.0.70.0040.00416.80
8.0.60.0050.00316.71
8.0.50.0070.00016.75
8.0.30.0100.01017.12
8.0.20.0130.00717.40
8.0.10.0040.00416.83
8.0.00.0120.00616.83
7.4.260.0060.00316.58
7.4.250.0030.00516.57
7.4.240.0070.00016.56
7.4.230.0030.00316.45
7.4.220.0060.01216.61
7.4.210.0070.01016.59
7.4.200.0000.00716.71
7.4.160.0060.01216.68
7.4.150.0140.00417.40
7.4.140.0140.00817.86
7.4.130.0070.01116.59
7.4.120.0020.01516.59
7.4.110.0060.01616.48
7.4.100.0160.00716.29
7.4.90.0090.00916.29
7.4.80.0100.01119.39
7.4.70.0140.00816.38
7.4.60.0040.01216.73
7.4.50.0000.00816.47
7.4.40.0060.01116.59
7.4.30.0130.01216.26
7.4.00.0090.00815.06
7.3.330.0000.00613.29
7.3.320.0120.00013.22
7.3.310.0000.00716.27
7.3.300.0000.00716.20
7.3.290.0030.00316.32
7.3.280.0080.00716.27
7.3.270.0100.00717.40
7.3.260.0090.00916.23
7.3.250.0090.01116.41
7.3.240.0140.00616.54
7.3.230.0130.00616.39
7.3.210.0080.00816.49
7.3.200.0100.00719.39
7.3.190.0130.00316.49
7.3.180.0060.00916.36
7.3.170.0110.00516.46
7.3.160.0040.01316.54
7.3.120.0100.01015.00
7.3.110.0100.00714.96
7.3.100.0040.01114.91
7.3.90.0070.00714.95
7.3.80.0050.00914.79
7.3.70.0070.00514.86
7.3.60.0070.00714.82
7.3.50.0020.01114.66
7.3.40.0040.00714.75
7.3.30.0070.00614.82
7.3.20.0120.00216.69
7.3.10.0020.01116.59
7.3.00.0090.00316.45
7.2.330.0120.00616.68
7.2.320.0330.02016.49
7.2.310.0090.01316.70
7.2.300.0150.00416.39
7.2.290.0030.01616.83
7.2.250.0050.01514.80
7.2.240.0120.00515.18
7.2.230.0030.01014.89
7.2.220.0070.00814.82
7.2.210.0070.00614.94
7.2.200.0050.01015.05
7.2.190.0020.01214.94
7.2.180.0050.00715.08
7.2.170.0090.00315.01
7.2.60.0030.00516.90
7.2.00.0000.01319.31
7.1.330.0030.00915.75
7.1.320.0090.00615.84
7.1.310.0060.00815.62
7.1.300.0050.01015.85
7.1.290.0060.00615.71
7.1.280.0030.00815.81
7.1.270.0030.00915.67
7.1.260.0060.00615.76
7.1.200.0000.01015.82
7.1.100.0300.00817.78
7.1.70.0050.00517.23
7.1.60.0170.00719.86
7.1.50.0140.01016.91
7.1.00.0070.07022.28
7.0.200.0000.00816.88
7.0.100.0200.07720.03
7.0.90.0370.04319.80
7.0.80.0200.04019.84
7.0.70.0100.04319.83
7.0.60.0270.06019.88
7.0.50.0030.04720.32
7.0.40.0030.04020.07
7.0.30.0000.04720.04
7.0.20.0030.04320.05
7.0.10.0030.04720.09
7.0.00.0100.03719.95
5.6.280.0000.07720.82
5.6.250.0030.04320.58
5.6.240.0030.05020.59
5.6.230.0070.04020.67
5.6.220.0070.06320.57
5.6.210.0000.04020.57
5.6.200.0070.06721.14
5.6.190.0000.05021.09
5.6.180.0070.04021.06
5.6.170.0000.04321.05
5.6.160.0070.05321.05
5.6.150.0100.03720.93
5.6.140.0030.04021.11
5.6.130.0070.04021.17
5.6.120.0000.04721.04
5.6.110.0030.04320.94
5.6.100.0030.04021.10
5.6.90.0030.07721.09
5.6.80.0070.04720.41
5.6.70.0100.07320.40
5.6.60.0100.07720.38
5.6.50.0000.08320.43
5.6.40.0100.07720.49
5.6.30.0070.08020.39
5.6.20.0000.08020.29
5.6.10.0130.07320.49
5.6.00.0070.07720.37
5.5.380.0000.04320.30
5.5.370.0000.04320.45
5.5.360.0070.07720.39
5.5.350.0070.07720.30
5.5.340.0000.04320.86
5.5.330.0000.04320.87
5.5.320.0030.04320.86
5.5.310.0070.06320.82
5.5.300.0000.04020.83
5.5.290.0030.04720.87
5.5.280.0070.04020.83
5.5.270.0030.04020.75
5.5.260.0130.04720.77
5.5.250.0170.04020.64
5.5.240.0000.04020.29
5.5.230.0070.07020.13
5.5.220.0070.07720.02
5.5.210.0130.07320.28
5.5.200.0070.07320.19
5.5.190.0000.08720.18
5.5.180.0030.08320.23
5.5.160.0000.05320.08
5.5.150.0130.07320.12
5.5.140.0100.07320.14
5.5.130.0030.05020.23
5.5.120.0030.08320.23
5.5.110.0070.04720.22
5.5.100.0100.07020.10
5.5.90.0070.04719.97
5.5.80.0100.04320.09
5.5.70.0030.07320.09
5.5.60.0030.08020.09
5.5.50.0100.06720.09
5.5.40.0100.06320.01
5.5.30.0070.06320.10
5.5.20.0000.05320.09
5.5.10.0200.06020.01
5.5.00.0100.07320.03
5.4.450.0070.03719.36
5.4.440.0030.04719.19
5.4.430.0070.03719.27
5.4.420.0100.06719.44
5.4.410.0070.03319.44
5.4.400.0070.05719.13
5.4.390.0130.07319.04
5.4.380.0100.07319.14
5.4.370.0130.07318.88
5.4.360.0130.07019.03
5.4.350.0100.07019.05
5.4.340.0030.08319.18
5.4.320.0170.06019.21
5.4.310.0100.05718.85
5.4.300.0130.06719.23
5.4.290.0130.06319.18
5.4.280.0030.05319.13
5.4.270.0000.08319.18
5.4.260.0130.06319.04
5.4.250.0130.07018.86
5.4.240.0100.06319.13
5.4.230.0170.06719.19
5.4.220.0070.05319.13
5.4.210.0030.07019.02
5.4.200.0130.06719.15
5.4.190.0070.07319.17
5.4.180.0130.07019.22
5.4.170.0070.07319.13
5.4.160.0130.06019.21
5.4.150.0070.07718.93
5.4.140.0100.06716.13
5.4.130.0030.06716.35
5.4.120.0030.08016.39
5.4.110.0000.07316.34
5.4.100.0130.06716.43
5.4.90.0030.07716.48
5.4.80.0030.07716.49
5.4.70.0070.07016.26
5.4.60.0030.07316.30
5.4.50.0000.05016.48
5.4.40.0070.07316.34
5.4.30.0070.07016.47
5.4.20.0030.05316.30
5.4.10.0070.06716.39
5.4.00.0170.06015.80
5.3.290.0100.07314.65
5.3.280.0100.07314.57
5.3.270.0130.07014.74
5.3.260.0100.07014.74
5.3.250.0070.07314.72
5.3.240.0030.08014.75
5.3.230.0130.07014.53
5.3.220.0130.07014.67
5.3.210.0170.06314.64
5.3.200.0130.06314.68
5.3.190.0200.06714.69
5.3.180.0070.07714.50
5.3.170.0130.07014.59
5.3.160.0070.08014.64
5.3.150.0100.06714.55
5.3.140.0130.07014.64
5.3.130.0030.06314.67
5.3.120.0070.07714.69
5.3.110.0130.05714.56
5.3.100.0100.07014.05
5.3.90.0070.04013.95
5.3.80.0030.07013.93
5.3.70.0030.07013.99
5.3.60.0030.07714.12
5.3.50.0030.07714.00
5.3.40.0030.08313.89
5.3.30.0070.07714.05
5.3.20.0030.07713.76
5.3.10.0070.07313.75
5.3.00.0070.07013.56
5.2.170.0100.05712.18
5.2.160.0070.06012.18
5.2.150.0000.06312.18
5.2.140.0000.04712.18
5.2.130.0070.06012.18
5.2.120.0070.06012.18
5.2.110.0030.05312.18
5.2.100.0070.05712.18
5.2.90.0100.05312.18
5.2.80.0070.06012.18
5.2.70.0100.05711.13
5.2.60.0170.05011.14
5.2.50.0070.05711.13
5.2.40.0030.06011.01
5.2.30.0070.06011.11
5.2.20.0070.06011.09
5.2.10.0070.05710.81
5.2.00.0000.04710.73
5.1.60.0100.0439.84
5.1.50.0100.0239.88
5.1.40.0030.05310.11
5.1.30.0070.04010.48
5.1.20.0030.05710.42
5.1.10.0030.05310.13
5.1.00.0030.04710.19
5.0.50.0030.0478.62
5.0.40.0000.0478.41
5.0.30.0030.0638.23
5.0.20.0070.0408.32
5.0.10.0030.0408.27
5.0.00.0070.0608.05
4.4.90.0100.0308.05
4.4.80.0070.0338.05
4.4.70.0030.0338.05
4.4.60.0030.0378.05
4.4.50.0000.0308.05
4.4.40.0070.0438.05
4.4.30.0100.0108.05
4.4.20.0030.0338.05
4.4.10.0030.0338.05
4.4.00.0030.0508.05
4.3.110.0000.0378.05
4.3.100.0030.0338.05
4.3.90.0000.0238.05
4.3.80.0070.0508.05
4.3.70.0030.0338.05
4.3.60.0030.0308.05
4.3.50.0000.0378.05
4.3.40.0000.0508.05
4.3.30.0000.0378.05
4.3.20.0070.0278.05
4.3.10.0030.0308.05
4.3.00.0000.0278.05

preferences:
31.84 ms | 455 KiB | 5 Q