3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C implements ArrayAccess { public function offsetGet($offset) { return 'value'; } public function offsetExists($offset) { if ($offset == 'pWithNull') { return null; } if ($offset == 'pWithFalse') { return false; } if ($offset == 'pWithTrue') { return true; } return false; } public function offsetSet($offset, $value) { // nothing } } $o = new C(); var_dump( isset($o->pWithFalse), empty($o->pWithFalse) ); var_dump( isset($o->pWithNull), empty($o->pWithNull) ); var_dump( isset($o->pWithTrue), empty($o->pWithTrue) );

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.0100.01018.68
8.3.50.0130.01021.97
8.3.40.0090.00618.63
8.3.30.0080.00618.81
8.3.20.0070.00020.34
8.3.10.0050.00323.64
8.3.00.0070.00019.04
8.2.180.0100.01016.62
8.2.170.0070.00722.96
8.2.160.0100.00722.10
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.54
8.2.110.0060.00322.26
8.2.100.0120.00017.78
8.2.90.0040.00417.78
8.2.80.0040.00417.97
8.2.70.0090.00317.50
8.2.60.0040.00417.92
8.2.50.0060.00318.07
8.2.40.0040.00418.03
8.2.30.0040.00418.04
8.2.20.0000.00817.70
8.2.10.0000.00817.88
8.2.00.0000.00817.75
8.1.280.0150.00625.92
8.1.270.0040.00418.72
8.1.260.0110.00726.35
8.1.250.0070.00028.09
8.1.240.0100.00622.15
8.1.230.0060.00617.42
8.1.220.0000.00817.74
8.1.210.0080.00018.91
8.1.200.0040.01316.75
8.1.190.0030.00517.10
8.1.180.0080.00018.10
8.1.170.0000.00818.60
8.1.160.0040.00422.02
8.1.150.0070.00018.79
8.1.140.0060.00319.04
8.1.130.0000.00717.82
8.1.120.0000.00717.44
8.1.110.0050.00217.42
8.1.100.0050.00317.42
8.1.90.0000.00717.36
8.1.80.0030.00317.40
8.1.70.0030.00317.30
8.1.60.0000.00817.42
8.1.50.0050.00317.38
8.1.40.0040.00417.41
8.1.30.0040.00417.60
8.1.20.0000.00817.59
8.1.10.0050.00317.40
8.1.00.0000.00817.25
8.0.300.0020.00519.86
8.0.290.0040.00416.63
8.0.280.0030.00318.40
8.0.270.0030.00317.21
8.0.260.0040.00417.14
8.0.250.0000.00716.93
8.0.240.0040.00416.97
8.0.230.0040.00416.98
8.0.220.0000.00716.79
8.0.210.0070.00016.84
8.0.200.0030.00316.97
8.0.190.0000.00916.98
8.0.180.0000.00816.86
8.0.170.0000.00816.85
8.0.160.0000.00716.93
8.0.150.0040.00416.73
8.0.140.0040.00416.73
8.0.130.0050.00013.31
8.0.120.0000.00816.87
8.0.110.0050.00216.75
8.0.100.0000.00716.96
8.0.90.0040.00416.70
8.0.80.0140.00316.82
8.0.70.0000.00716.89
8.0.60.0040.00416.86
8.0.50.0000.00716.96
8.0.30.0090.00716.98
8.0.20.0150.00317.40
8.0.10.0060.00317.07
8.0.00.0120.00716.68
7.4.330.0050.00015.03
7.4.320.0030.00316.45
7.4.300.0030.00316.55
7.4.290.0050.00316.52
7.4.280.0040.00416.56
7.4.270.0000.00716.59
7.4.260.0000.00716.54
7.4.250.0000.00716.54
7.4.240.0040.00316.54
7.4.230.0070.00016.34
7.4.220.0160.00916.54
7.4.210.0090.01216.63
7.4.200.0070.00016.57
7.4.160.0070.00716.33
7.4.150.0130.00617.40
7.4.140.0110.00917.86
7.4.130.0090.00916.44
7.4.120.0120.00516.45
7.4.110.0090.01016.60
7.4.100.0140.01016.36
7.4.90.0140.00316.36
7.4.80.0090.00919.39
7.4.70.0070.01316.62
7.4.60.0070.01016.45
7.4.50.0030.00516.39
7.4.40.0100.01016.53
7.4.30.0140.01116.46
7.4.00.0070.01115.11
7.3.330.0000.00613.02
7.3.320.0000.00513.10
7.3.310.0030.00316.05
7.3.300.0000.00716.18
7.3.290.0100.00616.24
7.3.280.0060.01116.21
7.3.270.0060.01217.40
7.3.260.0100.00616.42
7.3.250.0130.00716.22
7.3.240.0070.01016.27
7.3.230.0100.00716.44
7.3.210.0030.01316.22
7.3.200.0060.01019.39
7.3.190.0070.01016.35
7.3.180.0070.01016.24
7.3.170.0080.01116.46
7.3.160.0120.00616.38
7.2.330.0140.00416.57
7.2.320.0100.01016.52
7.2.310.0070.01016.36
7.2.300.0100.00716.52
7.2.290.0120.00616.55
7.2.60.0030.00516.58
7.2.00.0060.01118.98
7.1.200.0030.01015.61
7.1.100.0060.00618.02
7.1.70.0060.00316.59
7.1.60.0110.01419.46
7.1.50.0100.01316.76
7.1.00.0000.08022.35
7.0.200.0000.00716.78
7.0.140.0030.05321.97
7.0.60.0270.05720.04
7.0.50.0030.04717.86
7.0.40.0070.09020.27
7.0.30.0200.08320.21
7.0.20.0230.04720.23
7.0.10.0030.09320.25
7.0.00.0100.07720.09
5.6.280.0070.07020.79
5.6.210.0100.05720.57
5.6.200.0100.07718.22
5.6.190.0030.04320.66
5.6.180.0430.07320.66
5.6.170.0330.06720.51
5.6.160.0100.05320.55
5.6.150.0070.08318.14
5.6.140.0070.08718.18
5.6.130.0030.04318.28
5.6.120.0000.04321.05
5.6.110.0030.07721.09
5.6.100.0130.07721.09
5.6.90.0170.05321.11
5.6.80.0100.07720.37
5.5.350.4070.04020.37
5.5.340.0130.06718.09
5.5.330.0070.07020.41
5.5.320.0030.05320.41
5.5.310.0330.08320.36
5.5.300.0070.05717.98
5.5.290.0100.07317.96
5.5.280.0070.04020.85
5.5.270.0100.07720.89
5.5.260.0070.05020.77
5.5.250.0030.06720.61
5.5.240.0230.07020.26
5.4.450.0400.06719.52
5.4.440.0230.07019.20
5.4.430.0200.05319.42
5.4.420.0100.05719.67
5.4.410.0130.07019.57
5.4.400.0130.05019.21
5.4.390.0670.05318.68
5.4.380.0670.05718.57
5.4.370.0730.05018.74
5.4.360.0670.05318.74
5.4.350.0770.04718.55
5.4.340.0730.05318.64
5.4.320.0700.05018.59
5.4.310.0630.05718.63
5.4.300.0800.04718.71
5.4.290.0730.04718.54
5.4.280.0770.04318.70
5.4.270.0700.05018.67
5.4.260.0630.05718.67
5.4.250.0870.05318.41
5.4.240.0730.05718.45
5.4.230.0700.05018.66
5.4.220.0630.06018.62
5.4.210.0730.04718.58
5.4.200.0670.05016.69
5.4.190.0670.05718.62
5.4.180.0730.04718.39
5.4.170.0630.06018.56
5.4.160.0670.05318.70
5.4.150.0670.05318.68
5.4.140.0730.05016.29
5.4.130.0700.05716.26
5.4.120.0670.05316.33
5.4.110.0700.04316.43
5.4.100.0670.06016.30
5.4.90.0770.04716.18
5.4.80.0670.05016.20
5.4.70.0700.04716.30
5.4.60.0700.04716.42
5.4.50.0630.05016.25
5.4.40.0630.05716.27
5.4.30.0800.05016.28
5.4.20.0700.04716.28
5.4.10.0630.05316.13
5.4.00.0830.04315.87
5.3.290.0700.06014.66
5.3.280.0700.05014.70
5.3.270.0670.05714.64
5.3.260.0770.04714.66
5.3.250.0700.05714.73
5.3.240.0770.04314.77
5.3.230.0800.04014.62
5.3.220.0700.06014.67
5.3.210.0700.05314.60
5.3.200.0800.05014.70
5.3.190.0830.05014.75
5.3.180.0870.04314.62
5.3.170.0800.05014.62
5.3.160.0700.05314.63
5.3.150.0700.05714.77
5.3.140.0800.04314.59
5.3.130.0830.07014.70
5.3.120.0800.05314.57
5.3.110.0870.05014.77
5.3.100.0770.05714.14
5.3.90.0870.04714.06
5.3.80.0830.05014.03
5.3.70.0830.05014.23
5.3.60.0900.04714.17
5.3.50.0870.04714.18
5.3.40.0800.05314.01
5.3.30.0900.04014.04
5.3.20.0700.04713.82
5.3.10.0700.05313.73
5.3.00.0570.05313.68
5.2.170.0470.04011.28
5.2.160.0500.04011.26
5.2.150.0630.04311.21
5.2.140.0300.05011.15
5.2.130.0470.04711.24
5.2.120.0570.03711.24
5.2.110.0470.04011.21
5.2.100.0230.04311.32
5.2.90.0200.05311.14
5.2.80.0530.04711.32
5.2.70.0500.04311.11
5.2.60.0430.04011.17
5.2.50.0570.04711.13
5.2.40.0500.04011.00
5.2.30.0530.03710.98
5.2.20.0330.03711.09
5.2.10.0470.04310.92
5.2.00.0600.04010.75
5.1.60.0430.03710.02
5.1.50.0470.0379.99
5.1.40.0370.0379.97
5.1.30.0470.03010.56
5.1.20.0330.03710.36
5.1.10.0500.04010.12
5.1.00.0370.04010.11
5.0.50.0130.0308.65
5.0.40.0230.0278.60
5.0.30.0200.0508.35
5.0.20.0200.0308.24
5.0.10.0330.0238.20
5.0.00.0070.0478.20
4.4.90.0100.0235.92
4.4.80.0130.0276.00
4.4.70.0200.0235.92
4.4.60.0230.0176.00
4.4.50.0230.0205.91
4.4.40.0230.0375.92
4.4.30.0200.0275.88
4.4.20.0170.0206.01
4.4.10.0130.0236.05
4.4.00.0230.0335.99
4.3.110.0270.0305.82
4.3.100.0230.0205.85
4.3.90.0170.0275.77
4.3.80.0200.0335.76
4.3.70.0270.0205.87
4.3.60.0170.0305.86
4.3.50.0170.0275.78
4.3.40.0270.0305.75
4.3.30.0130.0274.59
4.3.20.0130.0374.64
4.3.10.0000.0334.57
4.3.00.0030.0206.93

preferences:
35.12 ms | 401 KiB | 5 Q