3v4l.org

run code in 300+ PHP versions simultaneously
<?php $compassStatoCivileMap = [ null => 0, "" => 0, "Celibe/Nubile" => 7, "Coniugato/a in Comunione Beni" => 1, "Coniugato/a Separazione Beni" => 1, "Convivente" => 4, "Divorziato/a" => 5, "Informazione Mancante" => 9, "Separato/a" => 6, "Vedovo/a" => 8, ]; if (!array_key_exists(null, $this->compassStatoCivileMap)) { throw new \InvalidArgumentException("Stato civile [{$data['stato_civile']}] is not allowed"); }

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.70.0110.01118.55
8.3.60.0180.00316.50
8.3.50.0130.00821.91
8.3.40.0120.00318.63
8.3.30.0110.00418.75
8.3.20.0030.00620.07
8.3.10.0080.00623.54
8.3.00.0060.00319.50
8.2.190.0120.00618.29
8.2.180.0120.00616.63
8.2.170.0110.00322.96
8.2.160.0070.01020.53
8.2.150.0080.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00617.50
8.2.120.0110.00726.35
8.2.110.0060.00319.32
8.2.100.0100.00017.78
8.2.90.0080.00019.15
8.2.80.0050.00517.97
8.2.70.0060.00317.63
8.2.60.0090.00017.91
8.2.50.0080.00018.07
8.2.40.0040.00419.32
8.2.30.0050.00320.66
8.2.20.0070.00017.60
8.2.10.0070.00018.03
8.2.00.0040.00418.05
8.1.280.0120.00925.92
8.1.270.0040.00423.99
8.1.260.0110.00428.09
8.1.250.0070.00028.09
8.1.240.0050.00521.00
8.1.230.0120.00017.42
8.1.220.0080.00017.77
8.1.210.0030.00618.77
8.1.200.0000.00917.22
8.1.190.0040.00417.10
8.1.180.0050.00318.10
8.1.170.0000.01218.37
8.1.160.0000.00721.82
8.1.150.0050.00218.85
8.1.140.0000.00819.56
8.1.130.0070.00017.54
8.1.120.0050.00317.46
8.1.110.0050.00217.37
8.1.100.0070.00017.29
8.1.90.0050.00217.37
8.1.80.0040.00417.38
8.1.70.0000.00717.34
8.1.60.0030.00617.50
8.1.50.0040.00417.41
8.1.40.0030.00517.39
8.1.30.0080.00017.61
8.1.20.0080.00017.54
8.1.10.0000.00817.53
8.1.00.0050.00317.52
8.0.300.0020.00518.77
8.0.290.0070.00016.75
8.0.280.0030.00318.24
8.0.270.0030.00317.20
8.0.260.0030.00318.45
8.0.250.0000.00816.78
8.0.240.0000.00816.95
8.0.230.0000.00716.88
8.0.220.0000.00616.84
8.0.210.0050.00216.75
8.0.200.0040.00416.87
8.0.190.0040.00416.95
8.0.180.0000.00816.95
8.0.170.0050.00316.77
8.0.160.0070.00016.91
8.0.150.0000.00716.86
8.0.140.0030.00616.80
8.0.130.0000.00613.26
8.0.120.0000.00716.91
8.0.110.0080.00016.85
8.0.100.0040.00416.92
8.0.90.0000.00816.88
8.0.80.0090.00916.87
8.0.70.0040.00416.75
8.0.60.0070.00016.75
8.0.50.0070.00016.94
8.0.30.0100.00717.18
8.0.20.0110.01117.40
8.0.10.0000.00816.86
8.0.00.0100.00916.77
7.4.330.0000.00515.08
7.4.320.0030.00316.50
7.4.300.0030.00316.48
7.4.290.0040.00416.50
7.4.280.0000.00916.63
7.4.270.0030.00316.58
7.4.260.0040.00416.45
7.4.250.0070.00016.44
7.4.240.0020.00516.49
7.4.230.0060.00016.48
7.4.220.0180.00716.70
7.4.210.0090.00616.62
7.4.200.0070.00016.43
7.4.160.0040.01116.62
7.4.150.0040.01517.40
7.4.140.0130.00617.86
7.4.130.0110.00616.61
7.4.120.0130.00616.51
7.4.110.0170.00716.54
7.4.100.0130.01016.51
7.4.90.0150.00316.57
7.4.80.0030.01619.39
7.4.70.0180.00016.47
7.4.60.0100.00716.35
7.4.50.0000.00816.63
7.4.40.0170.00616.47
7.4.30.0120.00416.70
7.4.00.0090.00914.79
7.3.330.0080.00013.11
7.3.320.0030.00313.12
7.3.310.0030.00316.33
7.3.300.0040.00416.30
7.3.290.0080.00716.29
7.3.280.0100.00716.24
7.3.270.0140.01117.40
7.3.260.0120.01216.29
7.3.250.0100.00916.42
7.3.240.0090.00916.53
7.3.230.0060.01216.39
7.3.210.0110.01116.52
7.3.200.0110.00516.67
7.3.190.0110.01116.26
7.3.180.0060.00916.47
7.3.170.0130.01016.41
7.3.160.0120.00316.25
7.2.330.0070.01016.66
7.2.320.0170.00916.68
7.2.310.0060.01016.46
7.2.300.0060.01116.28
7.2.290.0080.01216.35
7.2.60.0110.00416.84
7.2.00.0190.01119.39
7.1.200.0060.00615.42
7.1.100.0000.01317.93
7.1.70.0100.00017.01
7.1.60.0130.01019.48
7.1.50.0090.00616.56
7.1.00.0030.07722.40
7.0.200.0750.01014.42
7.0.100.0400.08319.96
7.0.90.0130.08019.91
7.0.80.0100.07319.93
7.0.70.0170.07719.89
7.0.60.0100.08020.07
7.0.50.0130.08020.20
7.0.40.0200.07320.07
7.0.30.0100.05020.07
7.0.20.0100.06319.99
7.0.10.0070.05020.14
7.0.00.0170.08320.16
5.6.280.0030.06720.91
5.6.250.0070.08320.49
5.6.240.0100.08320.51
5.6.230.0030.08720.57
5.6.220.0070.08320.55
5.6.210.0100.07320.55
5.6.200.0130.07320.96
5.6.190.0000.08321.00
5.6.180.0070.05321.10
5.6.170.0100.08321.11
5.6.160.0000.08720.96
5.6.150.0000.08021.06
5.6.140.0100.04721.00
5.6.130.0100.04721.07
5.6.120.0130.04721.04
5.6.110.0100.07721.10
5.6.100.0030.04721.00
5.6.90.0070.07721.01
5.6.80.0130.06320.44
5.6.70.0130.07320.48
5.6.60.0130.06020.44
5.6.50.0270.03720.45
5.6.40.0130.07720.30
5.6.30.0030.08720.31
5.6.20.0070.07720.36
5.6.10.0030.08020.43
5.6.00.0100.07720.34
5.5.380.0030.08320.41
5.5.370.0170.07020.37
5.5.360.0070.08720.33
5.5.350.0070.08020.45
5.5.340.0100.08320.83
5.5.330.0070.07320.93
5.5.320.0170.07020.93
5.5.310.0030.08020.89
5.5.300.0000.05320.74
5.5.290.0070.06320.82
5.5.280.0170.04020.93
5.5.270.0130.07720.77
5.5.260.0070.05020.88
5.5.250.0130.06320.74
5.5.240.0100.06720.21
5.5.230.0130.06320.13
5.5.220.0030.05020.29
5.5.210.0070.07320.20
5.5.200.0130.07720.22
5.5.190.0170.07320.11
5.5.180.0070.05720.17
5.5.160.0130.07320.28
5.5.150.0170.07020.21
5.5.140.0030.04720.17
5.5.130.0130.07320.15
5.5.120.0030.08020.18
5.5.110.0100.07720.20
5.5.100.0170.07020.02
5.5.90.0070.07320.00
5.5.80.0030.08320.10
5.5.70.0130.03720.05
5.5.60.0070.08020.04
5.5.50.0030.08020.06
5.5.40.0130.06320.14
5.5.30.0130.07020.05
5.5.20.0130.03720.05
5.5.10.0000.05019.94
5.5.00.0000.08020.03

preferences:
50.58 ms | 401 KiB | 5 Q