3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_begining = $date_ending = 0; function total_by_type_between_dates($type, $start, $end){ $row = array('total' => '2770.69'); $total = number_format((float)$row['total'], 2, '.', ''); return $total; } function total_expense_between_dates($start, $end){ $row = array('total' => '407.42'); $total = number_format((float)$row['total'], 2, '.', ''); return $total; } echo total_by_type_between_dates('income', $date_begining, $date_ending)-total_expense_between_dates($date_begining, $date_ending);

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.4.130.0110.00917.55
8.4.120.0140.00523.86
8.4.110.0140.00722.41
8.4.100.0110.00918.48
8.4.90.0120.00818.81
8.4.80.0090.00920.52
8.4.70.0110.00918.02
8.4.60.0090.00118.72
8.4.50.0130.00819.85
8.4.40.0060.01520.45
8.4.30.0060.00920.46
8.4.20.0120.00319.74
8.4.10.0040.00419.48
8.3.260.0100.01016.56
8.3.250.0100.00919.11
8.3.240.0120.00717.05
8.3.230.0150.00616.68
8.3.220.0060.00819.07
8.3.210.0080.00316.64
8.3.200.0030.00516.59
8.3.190.0090.01017.32
8.3.180.0120.00616.52
8.3.170.0090.00918.80
8.3.160.0120.00616.61
8.3.150.0160.00320.65
8.3.140.0040.00418.99
8.3.130.0060.01018.55
8.3.120.0130.00618.83
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0030.00616.63
8.3.70.0070.01116.75
8.3.60.0030.01418.55
8.3.50.0070.00824.49
8.3.40.0110.00419.09
8.3.30.0090.00618.66
8.3.20.0080.00020.91
8.3.10.0040.00422.09
8.3.00.0040.00423.79
8.2.290.0130.00620.45
8.2.280.0060.00218.44
8.2.270.0110.00816.99
8.2.260.0120.00416.78
8.2.250.0080.00316.85
8.2.240.0060.00318.72
8.2.230.0160.00322.58
8.2.220.0040.00437.54
8.2.210.0040.01126.77
8.2.200.0100.00016.50
8.2.190.0090.01216.75
8.2.180.0070.01416.50
8.2.170.0070.01122.96
8.2.160.0070.00722.25
8.2.150.0060.00325.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00019.61
8.2.110.0070.00322.38
8.2.100.0030.00917.84
8.2.90.0030.00618.34
8.2.80.0060.00319.29
8.2.70.0050.00318.16
8.2.60.0060.00318.15
8.2.50.0040.00418.04
8.2.40.0070.00018.05
8.2.30.0020.00518.19
8.2.20.0040.00418.21
8.2.10.0000.00719.26
8.2.00.0060.00319.27
8.1.330.0140.00421.75
8.1.320.0130.00916.11
8.1.310.0060.00318.25
8.1.300.0030.00719.97
8.1.290.0040.00718.88
8.1.280.0140.00325.92
8.1.270.0080.00022.64
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0030.00622.10
8.1.230.0040.00722.71
8.1.220.0080.00017.78
8.1.210.0000.00818.91
8.1.200.0040.00417.11
8.1.190.0040.00417.35
8.1.180.0060.00318.97
8.1.170.0070.00017.62
8.1.160.0000.00718.79
8.1.150.0050.00318.98
8.1.140.0040.00420.75
8.1.130.0000.00720.13
8.1.120.0000.00817.52
8.1.110.0000.00717.35
8.1.100.0040.00417.50
8.1.90.0000.00717.45
8.1.80.0080.00017.37
8.1.70.0040.00417.48
8.1.60.0030.00517.53
8.1.50.0000.00917.57
8.1.40.0060.00317.59
8.1.30.0040.00417.72
8.1.20.0030.00517.62
8.1.10.0000.00817.57
8.1.00.0000.00817.57
8.0.300.0040.00420.08
8.0.290.0080.00016.88
8.0.280.0000.00718.54
8.0.270.0000.00818.07
8.0.260.0000.00720.11
8.0.250.0070.00017.12
8.0.240.0000.00817.07
8.0.230.0030.00617.05
8.0.220.0030.00416.82
8.0.210.0000.00816.82
8.0.200.0030.00317.03
8.0.190.0000.00716.87
8.0.180.0040.00416.91
8.0.170.0080.00016.85
8.0.160.0040.00416.90
8.0.150.0040.00416.89
8.0.140.0000.01116.79
8.0.130.0030.00313.42
8.0.120.0000.00816.90
8.0.110.0050.00316.82
8.0.100.0000.00816.82
8.0.90.0060.00316.98
8.0.80.0080.00716.92
8.0.70.0000.00716.86
8.0.60.0050.00216.91
8.0.50.0000.00716.88
8.0.30.0120.00617.21
8.0.20.0110.00717.24
8.0.10.0040.00417.15
8.0.00.0140.00416.59
7.4.330.0050.00016.80
7.4.320.0060.00016.71
7.4.300.0000.00616.65
7.4.290.0000.00816.61
7.4.280.0000.01016.57
7.4.270.0080.00016.69
7.4.260.0000.00513.33
7.4.250.0030.00316.60
7.4.240.0030.00416.60
7.4.230.0050.00316.31
7.4.220.0030.00316.45
7.4.210.0110.00616.60
7.4.200.0030.00316.75
7.4.130.0150.00316.47
7.4.120.0120.00916.57
7.4.110.0130.00916.59
7.4.100.0070.01016.33
7.4.90.0000.01616.64
7.4.80.0130.00319.39
7.4.70.0070.01016.54
7.4.60.0100.00616.71
7.4.50.0060.00816.57
7.4.40.0070.01016.55
7.4.10.0120.00314.76
7.4.00.0100.00314.73
7.3.330.0060.00316.16
7.3.320.0050.00013.09
7.3.310.0000.00816.26
7.3.300.0030.00316.20
7.3.290.0060.01016.32
7.3.280.0060.00916.27
7.3.260.0110.01116.37
7.3.230.0090.00616.54
7.3.210.0080.01216.30
7.3.200.0090.00916.38
7.3.190.0090.00816.31
7.3.180.0040.01116.60
7.3.170.0140.00716.27
7.3.160.0060.01016.36
7.3.130.0110.00314.65
7.3.120.0070.00714.78
7.3.110.0070.00714.83
7.3.100.0060.00914.48
7.3.90.0050.00814.72
7.3.80.0120.00214.61
7.3.70.0120.00314.66
7.3.60.0100.00514.79
7.3.50.0040.01114.91
7.3.40.0110.00414.68
7.3.30.0070.00814.67
7.3.20.0050.00914.81
7.3.10.0060.00914.67
7.3.00.0090.00614.78
7.2.330.0150.00616.50
7.2.320.0090.01316.61
7.2.310.0140.00316.92
7.2.300.0190.00616.54
7.2.290.0060.01016.82
7.2.260.0000.01515.04
7.2.250.0060.00914.84
7.2.240.0060.00915.22
7.2.230.0060.00814.87
7.2.220.0000.01814.88
7.2.210.0070.00715.01
7.2.200.0040.01114.87
7.2.190.0000.01515.09
7.2.180.0060.00914.82
7.2.170.0000.01614.96
7.2.160.0100.00714.98
7.2.150.0060.01115.09
7.2.140.0150.00314.95
7.2.130.0080.01215.04
7.2.120.0110.00614.80
7.2.110.0090.00614.71
7.2.100.0110.00615.06
7.2.90.0090.01014.97
7.2.80.0040.01214.74
7.2.70.0090.00615.18
7.2.60.0030.01214.87
7.2.50.0030.01315.21
7.2.40.0070.00714.81
7.2.30.0190.00014.79
7.2.20.0120.00615.05
7.2.10.0080.00814.89
7.2.00.0090.00615.05

preferences:
135.39 ms | 403 KiB | 5 Q