3v4l.org

run code in 300+ PHP versions simultaneously
<?php $basePremium='Refer'; // update the end time of the discount period below when going live if (mktime() < 1453726799000 ) { // discount by 8.5% for the 2 months after going live, 1453726799000 = 25/01/2016 23:59:59 AEST $basePremium=round($basePremium * 0.915); } if ($basePremium == 'Refer') { echo "wtf"; } else { echo "..."; } ?>

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.01416.63
8.3.50.0130.00821.98
8.3.40.0110.00418.79
8.3.30.0070.00718.88
8.3.20.0040.00420.31
8.3.10.0070.00021.77
8.3.00.0080.00019.27
8.2.180.0070.01016.88
8.2.170.0070.01022.96
8.2.160.0100.00320.38
8.2.150.0060.00324.18
8.2.140.0070.00024.66
8.2.130.0060.00317.38
8.2.120.0040.00426.35
8.2.110.0060.00320.35
8.2.100.0060.00618.09
8.2.90.0000.00819.05
8.2.80.0000.00817.97
8.2.70.0050.00517.50
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0080.00019.23
8.2.30.0050.00320.55
8.2.20.0090.00017.64
8.2.10.0040.00418.13
8.2.00.0080.00017.95
8.1.280.0070.01425.92
8.1.270.0000.00823.91
8.1.260.0060.00328.09
8.1.250.0050.00328.09
8.1.240.0100.00022.14
8.1.230.0110.00019.18
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00417.23
8.1.190.0000.00817.70
8.1.180.0080.00018.10
8.1.170.0030.00518.56
8.1.160.0020.00521.92
8.1.150.0000.00718.84
8.1.140.0000.00819.52
8.1.130.0030.00317.60
8.1.120.0030.00317.37
8.1.110.0000.00717.37
8.1.100.0000.00817.42
8.1.90.0040.00417.34
8.1.80.0040.00417.36
8.1.70.0030.00317.29
8.1.60.0030.00517.56
8.1.50.0040.00417.57
8.1.40.0030.00617.48
8.1.30.0040.00417.65
8.1.20.0000.00717.64
8.1.10.0050.00217.53
8.1.00.0090.00317.41
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0030.00318.31
8.0.270.0030.00317.21
8.0.260.0060.00017.22
8.0.250.0030.00317.04
8.0.240.0040.00416.91
8.0.230.0030.00316.90
8.0.220.0030.00716.93
8.0.210.0070.00016.95
8.0.200.0030.00316.92
8.0.190.0030.00316.94
8.0.180.0070.00016.99
8.0.170.0070.00016.93
8.0.160.0030.00317.04
8.0.150.0080.00016.88
8.0.140.0040.00416.80
8.0.130.0000.00813.44
8.0.120.0000.00816.91
8.0.110.0040.00417.01
8.0.100.0040.00416.87
8.0.90.0000.00816.88
8.0.80.0080.00816.91
8.0.70.0000.00717.00
8.0.60.0050.00316.76
8.0.50.0040.00416.86
8.0.30.0100.01017.07
8.0.20.0080.01017.40
8.0.10.0050.00317.11
8.0.00.0110.00816.73
7.4.330.0050.00016.82
7.4.320.0060.00016.69
7.4.300.0000.00616.51
7.4.290.0030.00316.45
7.4.280.0040.00416.58
7.4.270.0030.00316.68
7.4.260.0070.00316.64
7.4.250.0030.00616.66
7.4.240.0020.00516.54
7.4.230.0000.00716.63
7.4.220.0060.01316.54
7.4.210.0130.00316.62
7.4.200.0070.00016.79
7.4.160.0150.00616.59
7.4.150.0110.00717.40
7.4.140.0120.01017.86
7.4.130.0100.00816.60
7.4.120.0100.00716.89
7.4.110.0000.01616.56
7.4.100.0110.01116.66
7.4.90.0130.00316.64
7.4.80.0130.01019.39
7.4.70.0170.00416.60
7.4.60.0100.00616.79
7.4.50.0070.00716.34
7.4.40.0060.00916.63
7.4.30.0030.01916.57
7.4.00.0040.01115.20
7.3.330.0000.00513.27
7.3.320.0000.00613.39
7.3.310.0070.00016.46
7.3.300.0040.00416.52
7.3.290.0100.00716.50
7.3.280.0060.01016.52
7.3.270.0140.00317.40
7.3.260.0130.00316.61
7.3.250.0110.00616.58
7.3.240.0090.01216.63
7.3.230.0120.00416.63
7.3.210.0130.00316.61
7.3.200.0100.00716.67
7.3.190.0120.00916.60
7.3.180.0080.00816.63
7.3.170.0100.01016.70
7.3.160.0160.00616.60
7.3.10.0060.00916.88
7.3.00.0030.00916.75
7.2.330.0100.01016.88
7.2.320.0050.01016.62
7.2.310.0070.01016.52
7.2.300.0080.00817.00
7.2.290.0000.02016.73
7.2.130.0040.01116.79
7.2.120.0070.01116.72
7.2.110.0100.00317.19
7.2.100.0060.00917.19
7.2.90.0060.00916.88
7.2.80.0070.00716.72
7.2.70.0100.00316.88
7.2.60.0060.00617.09
7.2.50.0070.01117.09
7.2.40.0080.00816.66
7.2.30.0050.00517.07
7.2.20.0040.00816.94
7.2.10.0030.00617.06
7.2.00.0130.00218.33
7.1.250.0030.01015.71
7.1.200.0090.00615.92
7.1.70.0060.00617.34
7.1.60.0100.00017.33
7.1.50.0100.01017.09
7.1.00.0000.08022.55
7.0.200.0030.01317.07
7.0.100.0530.07720.20
7.0.90.0470.06720.18
7.0.80.0200.07720.19
7.0.70.0270.09020.12
7.0.60.0400.04320.23
7.0.50.0500.08020.52
7.0.40.0100.07320.26
7.0.30.0200.07020.21
7.0.20.0170.08020.23
7.0.10.0070.07720.26
7.0.00.0030.08720.29
5.6.280.0100.07021.12
5.6.250.0130.07020.96
5.6.240.0070.08720.87
5.6.230.0130.07320.85
5.6.220.0100.05320.70
5.6.210.0070.04320.76
5.6.200.0100.08321.19
5.6.190.0070.08021.15
5.6.180.0030.05721.23
5.6.170.0030.08721.16
5.6.160.0070.08021.29
5.6.150.0070.07021.18
5.6.140.0100.07721.20
5.6.130.0100.07721.20
5.6.120.0170.07321.21
5.6.110.0130.08021.20
5.6.100.0070.08721.26
5.6.90.0030.08021.09
5.6.80.0130.06720.66
5.6.70.0100.06020.52
5.6.60.0170.07020.55
5.6.50.0070.04320.58
5.6.40.0070.07720.54
5.6.30.0130.04320.62
5.6.20.0100.07720.59
5.6.10.0070.08020.55
5.6.00.0200.06720.55
5.5.380.0030.08020.49
5.5.370.0100.05720.70
5.5.360.0100.07720.60
5.5.350.0030.06720.54
5.5.340.0030.07021.12
5.5.330.0070.08020.84
5.5.320.0070.08021.07
5.5.310.0030.05020.98
5.5.300.0100.07020.97
5.5.290.0100.08020.84
5.5.280.0030.05721.05
5.5.270.0100.07720.98
5.5.260.0070.08321.11
5.5.250.0070.05720.84
5.5.240.0130.06720.48
5.5.230.0030.08320.39
5.5.220.0030.06720.30
5.5.210.0130.08020.40
5.5.200.0100.04320.35
5.5.190.0070.08320.19
5.5.180.0030.07720.44
5.5.160.0070.07720.30
5.5.150.0130.07320.34
5.5.140.0070.07720.29
5.5.130.0030.05320.29
5.5.120.0070.08020.34
5.5.110.0030.08720.28
5.5.100.0100.06720.25
5.5.90.0070.05720.31
5.5.80.0070.08020.27
5.5.70.0130.07320.24
5.5.60.0030.05020.13
5.5.50.0100.07320.14
5.5.40.0100.06320.30
5.5.30.0030.05720.12
5.5.20.0070.07720.29
5.5.10.0100.07320.14
5.5.00.0130.06320.11

preferences:
76.52 ms | 401 KiB | 5 Q