3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = '3'; $arr = []; $arr[$id] = 'Пиздос'; var_dump(array_key_exists($id, $arr)); var_dump($arr[$id]]);

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)
5.4.390.0400.05318.79
5.4.380.0400.06018.60
5.4.370.0400.05318.78
5.4.360.0370.05018.51
5.4.350.0430.08018.49
5.4.340.0230.06018.70
5.4.320.0400.05318.77
5.4.310.0400.05318.78
5.4.300.0530.03718.80
5.4.290.0530.06318.62
5.4.280.0400.05718.61
5.4.270.0430.05018.78
5.4.260.0330.05718.44
5.4.250.0330.05318.83
5.4.240.0230.05718.44
5.4.230.0300.05718.77
5.4.220.0270.06018.58
5.4.210.0330.05318.50
5.4.200.0300.05716.71
5.4.190.0330.05018.59
5.4.180.0330.07318.70
5.4.170.0400.05318.79
5.4.160.0300.06318.57
5.4.150.0430.06018.61
5.4.140.0400.07316.18
5.4.130.0400.07016.44
5.4.120.0500.03716.31
5.4.110.0470.04716.36
5.4.100.0270.06316.21
5.4.90.0370.05716.28
5.4.80.0400.05316.19
5.4.70.0370.05316.26
5.4.60.0430.06316.18
5.4.50.0370.05316.25
5.4.40.0400.06316.28
5.4.30.0370.05716.39
5.4.20.0470.04316.17
5.4.10.0330.06316.28
5.4.00.0370.06715.88
5.3.290.0230.05714.76
5.3.280.0430.06714.57
5.3.270.0330.07314.58
5.3.260.0370.07014.61
5.3.250.0370.07014.59
5.3.240.0330.06014.68
5.3.230.0370.05014.51
5.3.220.0370.04714.50
5.3.210.0270.06714.49
5.3.200.0300.05314.66
5.3.190.0500.06014.62
5.3.180.0400.05314.59
5.3.170.0400.05714.57
5.3.160.0430.05314.53
5.3.150.0330.05014.66
5.3.140.0200.06014.47
5.3.130.0300.07014.44
5.3.120.0400.05314.45
5.3.110.0200.06314.63
5.3.100.0230.06013.95
5.3.90.0270.05313.99
5.3.80.0330.04713.99
5.3.70.0300.05013.91
5.3.60.0430.05013.99
5.3.50.0400.05714.04
5.3.40.0330.05313.94
5.3.30.0430.05013.82
5.3.20.0330.06013.72
5.3.10.0500.05713.73
5.3.00.0330.07313.71
5.2.170.0330.05711.13
5.2.160.0400.04711.20
5.2.150.0330.05311.31
5.2.140.0370.04711.28
5.2.130.0300.06011.03
5.2.120.0300.05711.05
5.2.110.0370.05311.07
5.2.100.0400.05311.07
5.2.90.0270.06011.07
5.2.80.0370.06011.15
5.2.70.0430.04711.07
5.2.60.0330.05011.03
5.2.50.0200.06310.95
5.2.40.0330.04310.96
5.2.30.0200.06010.98
5.2.20.0170.05710.92
5.2.10.0170.04310.87
5.2.00.0200.04310.87
5.1.60.0330.04010.06
5.1.50.0200.04310.04
5.1.40.0170.05010.02
5.1.30.0300.04010.39
5.1.20.0330.04710.37
5.1.10.0130.05710.13
5.1.00.0130.05310.14
5.0.50.0170.0338.62
5.0.40.0130.0378.46
5.0.30.0200.0438.30
5.0.20.0100.0308.39
5.0.10.0100.0378.26
5.0.00.0100.0478.22
4.4.90.0100.0277.79
4.4.80.0130.0237.79
4.4.70.0030.0277.79
4.4.60.0100.0277.79
4.4.50.0130.0277.79
4.4.40.0200.0407.79
4.4.30.0130.0237.79
4.4.20.0100.0237.79
4.4.10.0070.0237.79
4.4.00.0030.0407.79
4.3.110.0100.0237.79
4.3.100.0070.0237.79
4.3.90.0130.0177.79
4.3.80.0100.0337.79
4.3.70.0070.0307.79
4.3.60.0070.0307.79
4.3.50.0130.0277.79
4.3.40.0130.0337.79
4.3.30.0030.0237.79
4.3.20.0070.0237.79
4.3.10.0100.0177.79
4.3.00.0030.0206.73

preferences:
148.13 ms | 1394 KiB | 7 Q