3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 1; var_dump(!is_int($key) || $key > 1 || $key < 0);

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.40.0090.00618.68
8.3.30.0120.00318.91
8.3.20.0080.00020.16
8.3.10.0080.00020.54
8.3.00.0040.00420.81
8.2.170.0110.01118.82
8.2.160.0050.01022.96
8.2.150.0090.00624.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00819.36
8.2.110.0060.00319.41
8.2.100.0080.00417.72
8.2.90.0040.00419.10
8.2.80.0050.00317.97
8.2.70.0030.00517.25
8.2.60.0050.00317.80
8.2.50.0080.00018.07
8.2.40.0000.00818.15
8.2.30.0050.00319.38
8.2.20.0000.00717.73
8.2.10.0030.00518.11
8.2.00.0040.00417.66
8.1.270.0000.00921.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.91
8.1.230.0080.00420.89
8.1.220.0030.00518.77
8.1.210.0090.00018.92
8.1.200.0040.00417.25
8.1.190.0000.00917.39
8.1.180.0090.00218.10
8.1.170.0080.00018.62
8.1.160.0070.00018.85
8.1.150.0040.00418.82
8.1.140.0040.00417.48
8.1.130.0030.00317.73
8.1.120.0070.00017.51
8.1.110.0040.00417.32
8.1.100.0000.00717.46
8.1.90.0070.00017.41
8.1.80.0040.00417.28
8.1.70.0030.00317.30
8.1.60.0060.00317.57
8.1.50.0030.00617.40
8.1.40.0030.00517.55
8.1.30.0000.00817.66
8.1.20.0000.00817.57
8.1.10.0000.00717.48
8.1.00.0040.00417.25
8.0.300.0030.00619.93
8.0.290.0000.00717.05
8.0.280.0040.00418.30
8.0.270.0000.00817.18
8.0.260.0040.00417.16
8.0.250.0070.00016.93
8.0.240.0000.00716.91
8.0.230.0000.00716.89
8.0.220.0000.00716.75
8.0.210.0000.00716.78
8.0.200.0000.00616.91
8.0.190.0080.00016.91
8.0.180.0040.00416.88
8.0.170.0000.00716.86
8.0.160.0040.00416.88
8.0.150.0070.00016.89
8.0.140.0000.00816.84
8.0.130.0000.00613.30
8.0.120.0040.00416.79
8.0.110.0000.00716.88
8.0.100.0000.00716.88
8.0.90.0000.00716.85
8.0.80.0070.01416.83
8.0.70.0040.00416.82
8.0.60.0040.00416.73
8.0.50.0070.00016.82
8.0.30.0130.00717.16
8.0.20.0120.00817.40
8.0.10.0030.00316.82
8.0.00.0070.01216.84
7.4.330.0030.00315.13
7.4.320.0060.00016.48
7.4.300.0060.00016.44
7.4.290.0040.00416.41
7.4.280.0030.00516.50
7.4.270.0040.00316.58
7.4.260.0050.00516.34
7.4.250.0070.00016.54
7.4.240.0040.00416.54
7.4.230.0000.00716.42
7.4.220.0120.00616.57
7.4.210.0070.00716.44
7.4.200.0040.00216.52
7.4.160.0090.00616.40
7.4.150.0070.01017.40
7.4.140.0120.01017.86
7.4.130.0080.00916.41
7.4.120.0110.00816.55
7.4.110.0070.01016.46
7.4.100.0100.00616.61
7.4.90.0140.00316.40
7.4.80.0100.01319.39
7.4.70.0140.00716.38
7.4.60.0120.00916.47
7.4.50.0030.00316.27
7.4.40.0150.00316.24
7.4.30.0100.00616.39
7.4.00.0070.01014.88
7.3.330.0020.00213.06
7.3.320.0020.00213.10
7.3.310.0040.00216.03
7.3.300.0030.00316.21
7.3.290.0050.00916.22
7.3.280.0080.00916.23
7.3.270.0100.00717.40
7.3.260.0100.00716.14
7.3.250.0080.00916.46
7.3.240.0100.00716.14
7.3.230.0090.00916.47
7.3.210.0060.01016.45
7.3.200.0070.01519.39
7.3.190.0030.01416.32
7.3.180.0030.01316.47
7.3.170.0030.01316.43
7.3.160.0120.00316.32
7.3.10.0070.00716.18
7.3.00.0000.01316.31
7.2.330.0200.00316.45
7.2.320.0130.00316.29
7.2.310.0130.00716.64
7.2.300.0040.01616.56
7.2.290.0110.00616.37
7.2.130.0090.00716.66
7.2.120.0160.00016.78
7.2.110.0050.00616.63
7.2.100.0060.00916.58
7.2.90.0050.01116.38
7.2.80.0080.00416.55
7.2.70.0090.00616.65
7.2.60.0060.00916.89
7.2.50.0040.00716.79
7.2.40.0080.00416.49
7.2.30.0000.01616.65
7.2.20.0080.00816.76
7.2.10.0040.01216.62
7.2.00.0080.00818.13
7.1.250.0090.00315.62
7.1.200.0050.00515.92
7.1.100.0030.01018.17
7.1.70.0000.00817.13
7.1.60.0120.01219.34
7.1.50.0060.01616.73
7.1.00.0000.08022.40
7.0.200.0000.00816.87
7.0.140.0030.06022.07
7.0.60.0130.07019.86
7.0.50.0200.04017.89
7.0.40.0200.05319.98
7.0.30.0270.08020.17
7.0.20.0100.05720.00
7.0.10.0200.07020.21
7.0.00.0100.08720.17
5.6.210.0030.08020.54
5.6.200.0130.03318.14
5.6.190.0000.05020.36
5.6.180.0100.06320.73
5.6.170.0230.05720.45
5.6.160.0100.07020.32
5.6.150.0070.08718.12
5.6.140.0030.08318.14
5.6.130.0070.04318.16
5.6.120.0030.05720.98
5.6.110.0100.06721.02
5.6.100.0000.07320.98
5.6.90.0130.08020.99
5.6.80.0100.07320.27
5.6.70.3330.03720.38
5.5.350.0000.08320.39
5.5.340.0070.05018.01
5.5.330.0070.08320.57
5.5.320.0200.03720.30
5.5.310.0170.04720.12
5.5.300.0100.07317.97
5.5.290.0070.05017.88
5.5.280.0070.04020.66
5.5.270.0100.05020.86
5.5.260.0100.05020.82
5.5.250.0100.08020.77
5.5.240.0130.07320.28
5.4.450.0800.04337.91
5.4.440.0170.04337.91
5.4.430.0430.03737.91
5.4.420.0130.05319.46
5.4.410.0230.04318.84
5.4.400.0070.06318.58
5.4.390.0100.05718.46
5.4.380.0100.07018.64
5.4.370.0030.06318.62
5.4.360.0200.06718.66
5.4.350.0100.05313.74
5.4.340.0100.05013.70
5.4.320.0130.05314.29
5.4.310.0070.05314.18
5.4.300.0000.05714.22
5.4.290.0130.04714.20
5.4.280.0070.05014.02
5.4.270.0130.05014.02
5.4.260.0100.05714.04
5.4.250.0200.04714.21
5.4.240.0230.04314.09
5.4.230.0100.05314.04
5.4.220.0170.04014.01
5.4.210.0100.04714.04
5.4.200.0130.04714.01
5.4.190.0230.03014.01
5.4.180.0130.04014.02
5.4.170.0100.05014.02
5.4.160.0070.05314.06
5.4.150.0100.04014.17
5.4.140.0070.05313.69
5.4.130.0100.04013.71
5.4.120.0100.04713.70
5.4.110.0070.05313.70
5.4.100.0130.04013.65
5.4.90.0070.05013.72
5.4.80.0230.04013.68
5.4.70.0100.04713.82
5.4.60.0130.04313.63
5.4.50.0070.05313.71
5.4.40.0100.04713.78
5.4.30.0100.04713.71
5.4.20.0100.05013.70
5.4.10.0100.04713.70
5.4.00.0170.04013.29
5.3.290.0070.05714.67
5.3.280.0130.04714.48
5.3.270.0170.04714.52
5.3.260.0100.05314.50
5.3.250.0100.05014.55
5.3.240.0100.05014.63
5.3.230.0130.04714.52
5.3.220.0130.05314.59
5.3.210.0170.04714.47
5.3.200.0030.05714.43
5.3.190.0000.06014.45
5.3.180.0100.05014.59
5.3.170.0100.05314.56
5.3.160.0070.05314.58
5.3.150.0030.06014.57
5.3.140.0070.05314.58
5.3.130.0100.05014.59
5.3.120.0130.05014.45
5.3.110.0130.05014.51
5.3.100.0070.05314.07
5.3.90.0100.05014.02
5.3.80.0000.05313.91
5.3.70.0070.05313.95
5.3.60.0400.04013.94
5.3.50.0330.03713.84
5.3.40.0070.05013.92
5.3.30.0130.03713.89
5.3.20.0070.04013.70
5.3.10.0000.05313.64
5.3.00.0100.04713.49
5.2.170.0130.03011.14
5.2.160.0070.03711.00
5.2.150.0100.03711.10
5.2.140.0000.04011.05
5.2.130.0230.01711.07
5.2.120.0130.03011.19
5.2.110.0100.03310.96
5.2.100.0400.03011.09
5.2.90.0030.04311.07
5.2.80.0070.04010.94
5.2.70.0030.04310.96
5.2.60.0100.04011.02
5.2.50.0100.03710.93
5.2.40.0170.02710.98
5.2.30.0100.03711.04
5.2.20.0030.03710.91
5.2.10.0000.03710.78
5.2.00.0030.03710.82
5.1.60.0100.0309.95
5.1.50.0030.0309.95
5.1.40.0070.0279.89
5.1.30.0100.03310.24
5.1.20.0100.03310.34
5.1.10.0070.03010.00
5.1.00.0030.0339.98
5.0.50.0000.0278.61
5.0.40.0030.0278.46
5.0.30.0000.0408.26
5.0.20.0000.0278.15
5.0.10.0100.0238.22
5.0.00.0100.0308.13
4.4.90.0070.0175.81
4.4.80.0100.0135.79
4.4.70.0000.0235.80
4.4.60.0030.0205.78
4.4.50.0070.0175.84
4.4.40.0000.0335.85
4.4.30.0070.0175.88
4.4.20.0030.0205.93
4.4.10.0030.0235.90
4.4.00.0030.0335.84
4.3.110.0030.0235.79
4.3.100.0100.0135.72
4.3.90.0070.0175.75
4.3.80.0030.0305.72
4.3.70.0070.0175.75
4.3.60.0070.0175.72
4.3.50.0000.0235.71
4.3.40.0070.0275.72
4.3.30.0030.0204.52
4.3.20.0000.0234.46
4.3.10.0030.0204.54
4.3.00.0070.01337.91

preferences:
51.5 ms | 400 KiB | 5 Q