3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getOptionOrElse(array $options, string $key, $else = false) { if (key_exists($key, $options) && $options[$key]['value'] !== '' && $options[$key]['value'] !== null) { return $options[$key]['value']; } return $else; } $abo_options = [ 'gedeelde bundel - belminuten per maand' => ['value' => 200], 'gedeelde bundel - sms per maand' => ['value' => 200], 'gedeelde bundel - mb per maand' => ['value' => 200] ]; //$minuten_sms_mb_amount = getOptionOrElse($abo_options,'gedeelde bundel - belminuten per maand', 0); //$minuten_sms_mb_amount += getOptionOrElse($abo_options,'gedeelde bundel - sms per maand', 0); //$minuten_sms_mb_amount += getOptionOrElse($abo_options,'gedeelde bundel - mb per maand', 0); $minuten_sms_mb_amount = getOptionOrElse($abo_options,'gedeelde bundel - belminuten per maand', 0); $minuten_sms_mb_amount += $minuten_sms_mb_amount === 0 ? getOptionOrElse($abo_options,'gedeelde bundel - sms per maand', 0) : 0; $minuten_sms_mb_amount += $minuten_sms_mb_amount === 0 ? getOptionOrElse($abo_options,'gedeelde bundel - mb per maand', 0) : 0; echo "amount: {$minuten_sms_mb_amount}";

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.0090.01218.55
8.3.50.0070.01018.29
8.3.40.0170.00018.61
8.3.30.0140.00418.55
8.3.20.0000.00720.21
8.3.10.0050.00321.98
8.3.00.0050.00319.97
8.2.180.0180.00318.41
8.2.170.0100.00322.96
8.2.160.0070.00720.21
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0000.00721.04
8.2.120.0040.00426.35
8.2.110.0090.00020.91
8.2.100.0080.00418.03
8.2.90.0000.00817.91
8.2.80.0080.00019.36
8.2.70.0030.00518.05
8.2.60.0080.00018.05
8.2.50.0000.00818.10
8.2.40.0090.00022.15
8.2.30.0040.00419.47
8.2.20.0000.00818.07
8.2.10.0030.00718.05
8.2.00.0030.00318.29
8.1.280.0130.00625.92
8.1.270.0040.00420.23
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0120.00022.00
8.1.230.0050.00522.63
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0050.00317.25
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0030.00618.53
8.1.160.0080.00018.95
8.1.150.0070.00020.32
8.1.140.0000.00717.63
8.1.130.0030.00318.80
8.1.120.0040.00417.52
8.1.110.0030.00417.42
8.1.100.0000.00717.51
8.1.90.0090.00017.45
8.1.80.0070.00017.42
8.1.70.0030.00317.46
8.1.60.0030.00517.50
8.1.50.0080.00017.52
8.1.40.0000.00917.49
8.1.30.0000.00717.63
8.1.20.0040.00417.67
8.1.10.0040.00417.60
8.1.00.0000.00817.54
8.0.300.0000.00819.89
8.0.290.0060.00316.75
8.0.280.0000.00818.46
8.0.270.0000.00717.27
8.0.260.0000.00616.82
8.0.250.0030.00316.91
8.0.240.0070.00016.88
8.0.230.0000.00717.02
8.0.220.0000.00716.93
8.0.210.0070.00016.89
8.0.200.0000.00616.89
8.0.190.0070.00016.95
8.0.180.0040.00416.86
8.0.170.0090.00016.96
8.0.160.0050.00216.95
8.0.150.0000.00716.91
8.0.140.0070.00016.90
8.0.130.0000.00713.32
8.0.120.0000.00716.90
8.0.110.0050.00316.87
8.0.100.0000.00716.90
8.0.90.0070.00016.96
8.0.80.0030.01316.92
8.0.70.0040.00416.80
8.0.60.0050.00216.81
8.0.50.0070.00016.91
8.0.30.0070.01317.05
8.0.20.0110.00917.40
8.0.10.0000.00816.93
8.0.00.0080.00916.82
7.4.330.0040.00015.55
7.4.320.0070.00016.54
7.4.300.0070.00016.62
7.4.290.0060.00016.53
7.4.280.0050.00216.54
7.4.270.0050.00216.55
7.4.260.0080.00016.64
7.4.250.0000.00716.50
7.4.240.0000.00716.61
7.4.230.0000.00716.32
7.4.220.0000.00716.42
7.4.210.0070.01416.63
7.4.200.0000.00716.59
7.4.160.0090.01116.46
7.4.150.0160.01617.40
7.4.140.0080.01117.86
7.4.130.0120.00616.57
7.4.120.0120.00916.50
7.4.110.0050.01216.59
7.4.100.0140.00316.51
7.4.90.0120.00616.50
7.4.80.0110.00919.39
7.4.70.0070.01116.50
7.4.60.0040.01216.34
7.4.50.0100.00616.33
7.4.40.0070.01016.55
7.4.00.0050.00315.05
7.3.330.0000.00513.27
7.3.320.0030.00313.18
7.3.310.0000.00716.40
7.3.300.0000.00716.36
7.3.290.0060.00816.34
7.3.280.0120.00616.29
7.3.270.0190.00017.40
7.3.260.0100.01016.52
7.3.250.0100.00716.40
7.3.240.0130.00616.34
7.3.230.0100.00716.37
7.3.210.0030.01416.63
7.3.200.0080.00816.52
7.3.190.0110.00616.66
7.3.180.0070.01016.30
7.3.170.0080.00816.61
7.3.160.0030.01216.32
7.3.10.0030.01116.53
7.3.00.0050.00816.59
7.2.330.0070.01016.67
7.2.320.0060.01116.52
7.2.310.0040.01216.70
7.2.300.0030.01816.78
7.2.290.0060.00916.64
7.2.130.0040.00816.82
7.2.120.0030.00817.02
7.2.110.0050.01016.88
7.2.100.0090.00416.95
7.2.90.0030.01116.93
7.2.80.0070.00616.89
7.2.70.0040.00916.84
7.2.60.0070.00716.86
7.2.50.0030.01216.82
7.2.40.0050.00716.79
7.2.30.0030.00816.96
7.2.20.0030.01016.87
7.2.10.0110.00617.09
7.2.00.0080.01217.02
7.1.250.0060.00715.88
7.1.240.0000.01315.83
7.1.230.0040.00715.70
7.1.220.0060.00615.83
7.1.210.0090.00315.89
7.1.200.0060.00615.68
7.1.190.0120.00016.00
7.1.180.0040.01115.60
7.1.170.0070.00715.90
7.1.160.0030.00915.36
7.1.150.0030.00715.90
7.1.140.0060.00615.68
7.1.130.0150.00616.24
7.1.120.0120.00715.87
7.1.110.0150.00515.94
7.1.100.0430.01015.98
7.1.90.0130.00615.97
7.1.80.0170.00915.88
7.1.70.0130.00815.61
7.1.60.0220.00524.35
7.1.50.0190.00824.29
7.1.40.0230.01624.40
7.1.30.0140.01524.27
7.1.20.0170.01024.25
7.1.10.0150.00815.20
7.1.00.0190.00515.19
7.0.330.0070.00715.35
5.6.380.0070.00314.02

preferences:
53.47 ms | 400 KiB | 5 Q