3v4l.org

run code in 300+ PHP versions simultaneously
<?php function splor_numbers_get_governing( $dob ) { $dateTotals = splor_numbers_get_dob_totals( $dob ); return splor_numbers_get_numerology_totals( $dateTotals[0] + $dateTotals[1] + $dateTotals[2] ); } function splor_numbers_get_awareness( $dob ) { $dateTotals = splor_numbers_get_dob_totals( $dob ); return $dateTotals[2]; } function splor_numbers_get_dob_totals( $dob ) { $dataParts = explode( "-", $dob ); $yTotal = splor_numbers_get_numerology_totals( $dataParts[0] ); $mTotal = splor_numbers_get_numerology_totals( $dataParts[1] ); $dTotal = splor_numbers_get_numerology_totals( $dataParts[2] ); $yearparts = str_split( $dataParts[0] ); $lastTwo = splor_numbers_get_numerology_totals( $yearparts[2] + $yearparts[3] ); return array( $yTotal, $mTotal, $dTotal, $lastTwo ); } function splor_numbers_get_numerology_totals( $number ) { $total = array_sum( str_split( $number ) ); while ( $total > 9 ) { $total = array_sum( str_split( $total ) ); } return $total; } function splor_numbers_get_past( $dob ) { $dateTotals = splor_numbers_get_dob_totals( $dob ); return splor_numbers_get_numerology_totals( $dateTotals[0] ); } function splor_numbers_get_gift( $dob ) { $dateTotals = splor_numbers_get_dob_totals( $dob ); return splor_numbers_get_numerology_totals( $dateTotals[3] ); } function splor_numbers_get_purpose( $dob ) { $dateTotals = splor_numbers_get_dob_totals( $dob ); return splor_numbers_get_numerology_totals( $dateTotals[0] + $dateTotals[1] + $dateTotals[2] + $dateTotals[3] ); } $dob = "2894-44-48"; $parts = splor_numbers_get_dob_totals( $dob ); echo "YYYY: " . $parts[0] . " MM: " . $parts[1] . " DD: " . $parts[2]. " YY: " . $parts[3] . "\n"; echo "Governing: " . splor_numbers_get_governing( $dob ) . "\n"; echo "Awareness: " . splor_numbers_get_awareness( $dob ) . "\n"; echo "Past: " . splor_numbers_get_past( $dob ) . "\n"; echo "Gift: " . splor_numbers_get_gift( $dob ) . "\n"; echo "Purpose: " . splor_numbers_get_purpose( $dob ) . "\n";

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.0070.00717.00
8.3.50.0240.01023.03
8.3.40.0040.01118.96
8.3.30.0100.00318.79
8.3.20.0070.00020.22
8.3.10.0050.00323.48
8.3.00.0050.00319.38
8.2.180.0100.00717.93
8.2.170.0090.00622.96
8.2.160.0030.01020.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00326.16
8.2.120.0070.00021.11
8.2.110.0080.00419.25
8.2.100.0040.00718.03
8.2.90.0040.00418.03
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0060.00317.93
8.2.50.0060.00618.07
8.2.40.0000.01017.97
8.2.30.0000.00718.09
8.2.20.0060.00317.73
8.2.10.0040.00418.04
8.2.00.0050.00217.73
8.1.280.0150.00025.92
8.1.270.0060.00322.02
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.01022.59
8.1.230.0090.00320.92
8.1.220.0000.00817.91
8.1.210.0080.00018.92
8.1.200.0050.00517.25
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0060.00318.52
8.1.160.0040.00421.97
8.1.150.0030.00518.98
8.1.140.0040.00417.40
8.1.130.0030.00317.86
8.1.120.0000.00717.47
8.1.110.0000.00817.36
8.1.100.0040.00417.43
8.1.90.0040.00417.35
8.1.80.0040.00417.37
8.1.70.0000.00717.49
8.1.60.0060.00317.63
8.1.50.0040.00417.47
8.1.40.0080.00017.60
8.1.30.0040.00417.71
8.1.20.0040.00417.65
8.1.10.0000.00717.49
8.1.00.0000.00817.58
8.0.300.0070.00320.11
8.0.290.0060.00316.75
8.0.280.0030.00318.49
8.0.270.0030.00317.21
8.0.260.0060.00317.23
8.0.250.0030.00317.03
8.0.240.0000.00717.04
8.0.230.0000.00716.92
8.0.220.0050.00216.88
8.0.210.0070.00017.01
8.0.200.0000.00617.07
8.0.190.0000.00817.02
8.0.180.0000.00716.93
8.0.170.0060.00316.90
8.0.160.0030.00517.02
8.0.150.0000.00716.79
8.0.140.0040.00416.92
8.0.130.0030.00313.46
8.0.120.0080.00016.93
8.0.110.0050.00316.84
8.0.100.0000.00717.03
8.0.90.0040.00417.11
8.0.80.0110.00616.88
8.0.70.0000.00817.00
8.0.60.0030.00516.85
8.0.50.0040.00416.83
8.0.30.0100.01017.21
8.0.20.0110.00817.40
8.0.10.0040.00417.02
8.0.00.0140.00517.03
7.4.330.0050.00015.13
7.4.320.0060.00016.69
7.4.300.0040.00416.55
7.4.290.0030.00316.56
7.4.280.0040.00416.43
7.4.270.0030.00316.53
7.4.260.0050.00216.65
7.4.250.0050.00316.63
7.4.240.0020.00516.56
7.4.230.0040.00316.60
7.4.220.0090.00916.66
7.4.210.0070.01016.61
7.4.200.0040.00416.75
7.4.160.0040.01216.46
7.4.150.0190.00617.40
7.4.140.0100.00817.86
7.4.130.0100.01016.70
7.4.120.0140.00316.60
7.4.110.0160.00816.45
7.4.100.0070.01116.51
7.4.90.0040.01416.48
7.4.80.0100.01019.39
7.4.70.0080.00816.45
7.4.60.0140.00416.58
7.4.50.0000.00516.49
7.4.40.0070.01316.53
7.4.30.0140.00616.54
7.4.00.0030.01414.80
7.3.330.0040.00213.34
7.3.320.0000.00613.30
7.3.310.0070.00016.32
7.3.300.0030.00316.41
7.3.290.0100.01016.32
7.3.280.0070.00916.38
7.3.270.0150.00317.40
7.3.260.0090.00916.39
7.3.250.0090.00816.45
7.3.240.0110.00916.47
7.3.230.0060.01416.46
7.3.210.0090.01216.71
7.3.200.0030.01319.39
7.3.190.0140.00416.61
7.3.180.0060.01016.45
7.3.170.0070.01016.70
7.3.160.0130.00316.66
7.3.120.0030.01614.87
7.3.110.0040.01214.84
7.3.100.0060.01015.04
7.3.90.0000.00915.00
7.3.80.0000.01314.87
7.3.70.0000.01414.97
7.3.60.0090.00914.66
7.3.50.0070.00714.81
7.3.40.0030.01414.76
7.3.30.0000.01814.50
7.3.20.0090.00616.71
7.3.10.0110.00316.60
7.3.00.0100.00516.67
7.2.330.0030.01416.74
7.2.320.0110.00616.83
7.2.310.0030.01316.87
7.2.300.0100.01116.82
7.2.290.0180.00016.54
7.2.250.0070.01015.01
7.2.240.0100.01015.27
7.2.230.0070.00715.25
7.2.220.0100.00615.23
7.2.210.0070.00415.05
7.2.200.0060.01115.33
7.2.190.0100.01015.23
7.2.180.0090.00615.14
7.2.170.0120.00615.08
7.2.130.0070.00816.80
7.2.120.0110.00216.84
7.2.110.0080.00616.85
7.2.100.0060.00816.81
7.2.90.0070.00816.97
7.2.80.0050.01016.94
7.2.70.0060.00816.92
7.2.60.0070.00817.01
7.2.50.0040.00917.05
7.2.40.0070.00816.98
7.2.30.0020.01216.78
7.2.20.0080.00816.98
7.2.10.0090.00516.90
7.2.00.0050.00817.42
7.1.330.0070.00715.63
7.1.320.0060.00915.96
7.1.310.0110.00315.71
7.1.300.0030.01315.96
7.1.290.0110.00315.85
7.1.280.0030.00815.99
7.1.270.0000.01415.77
7.1.260.0100.00715.79
7.1.250.0050.01015.62
7.1.200.0180.00415.86
7.1.100.0070.00318.44
7.1.70.0030.00317.25
7.1.60.0080.00819.40
7.1.50.0130.00617.02
7.1.00.0000.08022.32
7.0.200.0030.00516.85
7.0.140.0030.07321.95
7.0.60.0070.03719.98
7.0.50.0070.08017.92
7.0.40.0070.05320.11
7.0.30.0270.06720.23
7.0.20.0370.04320.22
7.0.10.0070.05320.05
7.0.00.0070.06020.05
5.6.280.0100.06721.09
5.6.210.0230.07020.73
5.6.200.0030.04318.16
5.6.190.0100.08320.60
5.6.180.0370.07320.34
5.6.170.0230.07320.71
5.6.160.0100.08020.44
5.6.150.0030.05718.15
5.6.140.0030.04318.21
5.6.130.0100.04318.14
5.6.120.0100.04321.16
5.6.110.0100.08321.00
5.6.100.0030.08721.01
5.6.90.0070.06720.89
5.6.80.0030.05720.30
5.5.350.0030.07720.46
5.5.340.0070.03718.00
5.5.330.0230.06720.29
5.5.320.0030.07020.27
5.5.310.0170.05720.27
5.5.300.0070.08717.93
5.5.290.0100.08018.04
5.5.280.0030.06320.90
5.5.270.0000.09020.79
5.5.260.0100.04320.79
5.5.250.0030.04320.70
5.5.240.0130.03720.17
5.4.450.0270.03719.64
5.4.440.1170.05019.21
5.4.430.0330.04719.63
5.4.420.0370.03719.30
5.4.410.0130.05019.34
5.4.400.0130.04318.98
5.4.390.0570.03318.84
5.4.380.1070.05718.66
5.4.370.1030.05718.73
5.4.360.1030.05018.75
5.4.350.1230.05718.73
5.4.340.1100.04718.65
5.4.320.0040.03812.52
5.4.310.0060.03812.52
5.4.300.0070.03612.52
5.4.290.0050.04612.51
5.4.280.0050.03812.41
5.4.270.0060.03512.41
5.4.260.0070.03512.41
5.4.250.0090.03512.41
5.4.240.0030.04012.41
5.4.230.0050.03812.40
5.4.220.0060.03512.40
5.4.210.0050.03512.40
5.4.200.0060.04212.41
5.4.190.0080.03312.40
5.4.180.0050.03612.40
5.4.170.0060.03612.41
5.4.160.0050.03712.41
5.4.150.0050.03812.41
5.4.140.0030.03912.08
5.4.130.0040.03912.07
5.4.120.0070.04512.03
5.4.110.0080.03312.03
5.4.100.0050.03612.03
5.4.90.0040.03912.03
5.4.80.0050.03712.03
5.4.70.0090.03112.03
5.4.60.0110.03212.03
5.4.50.0060.03612.02
5.4.40.0110.04612.01
5.4.30.0040.04812.01
5.4.20.0080.04612.01
5.4.10.0060.03512.01
5.4.00.0030.03811.50
5.3.290.0070.03712.80
5.3.280.0050.04512.71
5.3.270.0070.05512.72
5.3.260.0060.04012.72
5.3.250.0080.03512.72
5.3.240.0050.04512.72
5.3.230.0080.04112.71
5.3.220.0080.04512.68
5.3.210.0100.04812.68
5.3.200.0090.03412.68
5.3.190.0070.03612.68
5.3.180.0120.03812.68
5.3.170.0090.05012.67
5.3.160.0090.04212.68
5.3.150.0070.04712.67
5.3.140.0050.03712.66
5.3.130.0100.04912.66
5.3.120.0080.05012.66
5.3.110.0030.04212.65
5.3.100.0080.04412.13
5.3.90.0080.05012.12
5.3.80.0070.03712.11
5.3.70.0030.04012.11
5.3.60.0080.05212.10
5.3.50.0070.04112.04
5.3.40.0060.03612.04
5.3.30.0070.04012.00
5.3.20.0060.03511.78
5.3.10.0030.03711.75
5.3.00.0070.03811.73
5.2.170.0030.0449.25
5.2.160.0020.0399.24
5.2.150.0040.0379.24
5.2.140.0050.0389.24
5.2.130.0080.0369.20
5.2.120.0070.0349.20
5.2.110.0040.0299.20
5.2.100.0040.0289.20
5.2.90.0040.0299.20
5.2.80.0040.0319.19
5.2.70.0050.0309.20
5.2.60.0050.0309.15
5.2.50.0050.0299.12
5.2.40.0050.0289.09
5.2.30.0060.0299.06
5.2.20.0020.0319.05
5.2.10.0050.0278.96
5.2.00.0030.0318.82
5.1.60.0050.0238.11
5.1.50.0040.0268.11
5.1.40.0070.0228.09
5.1.30.0030.0268.44
5.1.20.0060.0258.46
5.1.10.0040.0258.18
5.1.00.0050.0248.19
5.0.50.0030.0206.67
5.0.40.0040.0196.53
5.0.30.0010.0336.34
5.0.20.0030.0276.30
5.0.10.0020.0206.29
5.0.00.0040.0316.29
4.4.90.0050.0204.78
4.4.80.0060.0234.75
4.4.70.0040.0204.75
4.4.60.0020.0174.76
4.4.50.0060.0294.77
4.4.40.0010.0264.71
4.4.30.0010.0174.76
4.4.20.0030.0244.84
4.4.10.0050.0174.85
4.4.00.0040.0244.76
4.3.110.0050.0184.67
4.3.100.0040.0214.66
4.3.90.0020.0154.63
4.3.80.0060.0284.58
4.3.70.0050.0184.63
4.3.60.0020.0144.63
4.3.50.0010.0174.63
4.3.40.0040.0324.54
4.3.30.0030.0163.33
4.3.20.0020.0173.31
4.3.10.0030.0143.27
4.3.00.0100.01015.63

preferences:
45.28 ms | 401 KiB | 5 Q