3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Test"; 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] ); return array( $yTotal, $mTotal, $dTotal ); } function splor_numbers_get_numerology_totals( $number ) { $total = array_sum( str_split( $number ) ); if ( $total > 9 ) { $total = splor_numbers_get_numerology_totals( $number ); } return $total; } $dob = "2894-04-18"; echo "Governing: " . splor_numbers_get_governing( $dob ); echo "Awareness: " . splor_numbers_get_awareness( $dob );

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.0500.10072.63
8.3.50.0370.08777.92
8.3.40.0330.04744.86
8.3.30.0330.03745.20
8.3.20.0270.01346.52
8.3.10.0180.01850.00
8.3.00.0120.01947.17
8.2.180.0560.08672.50
8.2.170.0360.03344.97
8.2.160.0230.04046.44
8.2.150.0180.01845.32
8.2.140.0230.01345.33
8.2.130.0170.03450.29
8.2.120.0070.02148.65
8.2.110.0140.02848.43
8.2.100.0270.02344.16
8.2.90.0130.02945.14
8.2.80.0150.02543.75
8.2.70.0110.02943.48
8.2.60.0110.03244.05
8.2.50.0170.02443.63
8.2.40.0100.03444.73
8.2.30.0190.02243.96
8.2.20.0030.03743.46
8.2.10.0220.01643.89
8.2.00.0200.02043.59
8.1.280.0430.07375.40
8.1.270.0070.03149.15
8.1.260.0210.01746.38
8.1.250.0100.02748.20
8.1.240.0100.03748.52
8.1.230.0220.02944.97
8.1.220.0100.03343.64
8.1.210.0110.03243.41
8.1.200.0130.02943.11
8.1.190.0130.03043.13
8.1.180.0100.03043.57
8.1.170.0070.03644.53
8.1.160.0100.03147.83
8.1.150.0100.03444.74
8.1.140.0160.02343.35
8.1.130.0130.02643.73
8.1.120.0060.03243.21
8.1.110.0130.02943.31
8.1.100.0030.03643.31
8.1.90.0140.02543.28
8.1.80.0100.03043.29
8.1.70.0070.03143.25
8.1.60.0200.02343.50
8.1.50.0070.03643.40
8.1.40.0100.04243.33
8.1.30.0130.02943.53
8.1.20.0060.03643.42
8.1.10.0130.06773.24
8.1.00.0230.06373.20
8.0.300.0160.05972.97
8.0.290.0210.05572.50
8.0.280.0230.05674.10
8.0.270.0340.05172.88
8.0.260.0530.02774.09
8.0.250.0130.06372.39
8.0.240.0140.06972.38
8.0.230.0260.05372.44
8.0.220.0320.03972.45
8.0.210.0240.05172.38
8.0.200.0170.06072.44
8.0.190.0470.04772.30
8.0.180.0230.06072.40
8.0.170.0230.05672.42
8.0.160.0260.05972.44
8.0.150.0390.04672.41
8.0.140.0200.06172.34
8.0.130.0760.079121.49
8.0.120.0290.05172.39
8.0.110.0300.05072.41
8.0.100.0130.06772.23
8.0.90.0200.05772.38
8.0.80.0590.10672.40
8.0.70.0140.06672.34
8.0.60.0260.05572.46
8.0.50.0100.06872.48
8.0.30.0700.11072.79
8.0.20.0590.11472.70
8.0.10.0200.06472.49
8.0.00.0690.11972.08
7.4.330.0170.05771.08
7.4.320.0170.05671.98
7.4.300.0300.04772.09
7.4.290.0300.05472.13
7.4.280.0400.05372.01
7.4.270.0330.05072.17
7.4.260.0370.07472.03
7.4.250.0230.06571.98
7.4.240.0240.06072.09
7.4.230.0260.05572.01
7.4.220.0560.13872.13
7.4.210.0730.14472.09
7.4.200.0270.05772.24
7.4.160.0530.10071.90
7.4.150.0550.12672.14
7.4.140.0740.11872.03
7.4.130.0580.10772.04
7.4.120.0580.11072.07
7.4.110.0440.11972.07
7.4.100.0560.11272.02
7.4.90.0560.12372.06
7.4.80.0540.13072.08
7.4.70.0960.13372.16
7.4.60.0420.12172.27
7.4.50.0170.03771.79
7.4.40.0690.10672.22
7.4.30.0460.12372.04
7.4.00.0340.10170.94
7.3.330.0930.120121.68
7.3.320.0410.118121.70
7.3.310.0240.05771.96
7.3.300.0100.06971.91
7.3.290.0330.12271.99
7.3.280.0610.12071.94
7.3.270.0550.16172.18
7.3.260.1080.10871.94
7.3.250.0530.11772.00
7.3.240.0690.11272.11
7.3.230.0680.09771.95
7.3.210.0730.09372.06
7.3.200.0740.09972.33
7.3.190.0380.12872.10
7.3.180.0560.12371.77
7.3.170.0520.11472.02
7.3.160.0630.10371.90
7.2.330.0580.13272.19
7.2.320.0590.22072.12
7.2.310.0590.11872.32
7.2.300.0690.16172.39
7.2.290.0610.15572.43
7.2.60.1920.08078.55
7.2.00.4000.08581.19
7.1.200.2380.09277.70
7.1.100.1750.10880.29
7.1.70.2980.07479.02
7.1.60.0170.14679.18
7.1.50.1560.10844.85
7.1.00.0200.18084.26
7.0.202.4170.08367.56
7.0.140.0200.17384.08
7.0.60.0430.16075.58
7.0.50.0170.12773.48
7.0.40.0070.16020.04
7.0.30.0770.16020.23
7.0.20.0370.11720.20
7.0.10.0430.15320.26
7.0.00.0200.16320.20
5.6.280.0170.20785.74
5.6.210.0230.20785.33
5.6.200.0230.19782.88
5.6.190.0170.21085.07
5.6.180.0270.15385.06
5.6.170.0370.20385.11
5.6.160.0170.14385.09
5.6.150.0370.17382.83
5.6.140.0300.15382.94
5.6.130.0370.13082.83
5.6.120.0430.17785.86
5.6.110.0230.21785.72
5.6.100.0330.15085.80
5.6.90.0400.18785.68
5.6.80.0200.21785.11
5.6.70.0500.12385.21
5.5.350.0230.18385.14
5.5.340.0330.16082.66
5.5.330.0330.19384.74
5.5.320.0500.16784.91
5.5.310.0430.19084.86
5.5.300.0300.13082.64
5.5.290.0400.18382.68
5.5.280.0200.15085.52
5.5.270.0270.15385.50
5.5.260.0330.20385.34
5.5.250.0270.15785.30
5.5.240.0270.18384.75
5.4.450.1070.25083.80
5.4.440.1230.21384.28
5.4.430.1370.23783.94
5.4.420.1330.24084.05
5.4.410.1270.26783.88
5.4.400.1070.24783.30
5.4.390.1570.32083.53
5.4.380.0570.22783.27
5.4.370.0570.16083.45
5.4.360.0830.21783.59
5.4.350.0340.20176.81
5.4.340.0240.16776.82
5.4.320.0290.14277.30
5.4.310.0330.15177.30
5.4.300.0260.15477.31
5.4.290.0230.15177.30
5.4.280.0270.15277.20
5.4.270.0240.15477.20
5.4.260.0230.15377.20
5.4.250.0250.15477.20
5.4.240.0230.15077.20
5.4.230.0280.15077.20
5.4.220.0230.14777.19
5.4.210.0260.15577.19
5.4.200.0330.13677.19
5.4.190.0250.15777.19
5.4.180.0270.15477.19
5.4.170.0380.14377.19
5.4.160.0260.15777.19
5.4.150.0300.14977.18
5.4.140.0240.15776.87
5.4.130.0240.15776.85
5.4.120.0210.17676.82
5.4.110.0210.16976.81
5.4.100.0280.17076.81
5.4.90.0250.17476.80
5.4.80.0280.17976.81
5.4.70.0200.16176.80
5.4.60.0270.16176.81
5.4.50.0230.16076.80
5.4.40.0270.15776.80
5.4.30.0280.16676.79
5.4.20.0320.15676.79
5.4.10.0510.13676.79
5.4.00.0230.16076.27
5.3.290.0230.14076.91
5.3.280.0220.14176.84
5.3.270.0210.14676.85
5.3.260.0250.16576.84
5.3.250.0240.14176.84
5.3.240.0290.13776.84
5.3.230.0240.15776.84
5.3.220.0190.17076.81
5.3.210.0260.14676.81
5.3.200.0340.14876.80
5.3.190.0270.14276.80
5.3.180.0220.15176.80
5.3.170.0280.14076.81
5.3.160.0260.15676.80
5.3.150.0300.14976.80
5.3.140.0230.14676.80
5.3.130.0220.15776.79
5.3.120.0200.16176.79
5.3.110.0240.15876.79
5.3.100.0190.15276.28
5.3.90.0280.14576.27
5.3.80.0300.13976.25
5.3.70.0220.14476.25
5.3.60.0220.14876.24
5.3.50.0260.13776.19
5.3.40.0240.14376.19
5.3.30.0240.14476.14
5.3.20.0270.16075.93
5.3.10.0270.14275.89
5.3.00.0260.15675.88
5.2.170.0110.04722.47
5.2.160.0130.04322.47
5.2.150.0110.04222.48
5.2.140.0070.04422.47
5.2.130.0150.04322.43
5.2.120.0120.04022.43
5.2.110.0060.05122.48
5.2.100.0070.04422.43
5.2.90.0120.04022.43
5.2.80.0040.04822.42
5.2.70.0100.04222.42
5.2.60.0110.04022.39
5.2.50.0070.04522.87
5.2.40.0120.04122.84
5.2.30.0090.04322.82
5.2.20.0130.04622.81
5.2.10.0110.04022.92
5.2.00.0080.04122.57
5.1.60.0080.03722.79
5.1.50.0110.03722.79
5.1.40.0080.04822.77
5.1.30.0110.03823.12
5.1.20.0110.03723.14
5.1.10.0140.03422.86
5.1.00.0090.04322.86
5.0.50.0080.03419.68
5.0.40.0050.03819.54
5.0.30.0100.04619.35
5.0.20.0090.03519.32
5.0.10.0070.03319.29
5.0.00.0140.07043.16
4.4.90.0020.0154.78
4.4.80.0060.0204.75
4.4.70.0050.0184.75
4.4.60.0030.0154.76
4.4.50.0030.0154.77
4.4.40.0040.0244.71
4.4.30.0020.0184.76
4.4.20.0030.0174.84
4.4.10.0020.0164.85
4.4.00.0010.0274.76
4.3.110.0050.0134.67
4.3.100.0060.0124.67
4.3.90.0040.0134.63
4.3.80.0010.0264.59
4.3.70.0040.0134.63
4.3.60.0040.0134.63
4.3.50.0000.0184.63
4.3.40.0060.0214.54
4.3.30.0010.0173.32
4.3.20.0010.0173.30
4.3.10.0000.0183.25
4.3.00.0170.0237.11

preferences:
56.78 ms | 400 KiB | 5 Q