3v4l.org

run code in 300+ PHP versions simultaneously
<?php $discount = 33; $sale_end = '2014-01-30 00:00:00'; var_dump($sale_end); $sale_end = substr($sale_end, 0, 10); var_dump($sale_end); $fromDate = date('F d', strtotime($sale_end)); echo sprintf('%d%% OFF Ends %s', $discount, $fromDate);

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.0150.00418.28
8.3.50.0080.00822.04
8.3.40.0140.00318.82
8.3.30.0150.00018.96
8.3.20.0080.00820.21
8.3.10.0090.00023.66
8.3.00.0090.00020.92
8.2.180.0190.00016.75
8.2.170.0040.01122.96
8.2.160.0140.00420.27
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0050.00319.48
8.2.110.0060.00321.85
8.2.100.0080.00417.84
8.2.90.0060.00319.22
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0060.00318.04
8.2.50.0000.00818.07
8.2.40.0090.00018.16
8.2.30.0070.00018.22
8.2.20.0030.00517.77
8.2.10.0000.00818.08
8.2.00.0030.00619.53
8.1.280.0080.00625.92
8.1.270.0060.00322.07
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0050.00323.79
8.1.230.0080.00319.14
8.1.220.0000.00817.79
8.1.210.0030.00518.77
8.1.200.0040.00417.25
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0050.00318.71
8.1.160.0000.00721.94
8.1.150.0040.00418.75
8.1.140.0080.00017.47
8.1.130.0030.00317.83
8.1.120.0040.00417.61
8.1.110.0050.00217.45
8.1.100.0040.00417.50
8.1.90.0000.00717.47
8.1.80.0040.00417.46
8.1.70.0070.00017.56
8.1.60.0000.00917.67
8.1.50.0080.00017.61
8.1.40.0030.00517.45
8.1.30.0050.00317.61
8.1.20.0000.00817.70
8.1.10.0040.00417.67
8.1.00.0040.00417.66
8.0.300.0070.00018.77
8.0.290.0070.00016.88
8.0.280.0080.00018.47
8.0.270.0030.00317.32
8.0.260.0060.00017.23
8.0.250.0030.00317.04
8.0.240.0070.00017.16
8.0.230.0000.00716.92
8.0.220.0000.00717.08
8.0.210.0030.00317.07
8.0.200.0000.00616.96
8.0.190.0030.00617.06
8.0.180.0000.00717.05
8.0.170.0080.00016.98
8.0.160.0070.00017.13
8.0.150.0040.00416.94
8.0.140.0000.00716.96
8.0.130.0050.00013.32
8.0.120.0030.00517.04
8.0.110.0040.00416.88
8.0.100.0080.00017.01
8.0.90.0080.00017.00
8.0.80.0090.01017.07
8.0.70.0000.00717.01
8.0.60.0000.00816.88
8.0.50.0070.00016.88
8.0.30.0120.00817.22
8.0.20.0070.01617.40
8.0.10.0000.00717.01
8.0.00.0120.00916.99
7.4.330.0020.00215.00
7.4.320.0030.00316.64
7.4.300.0030.00316.44
7.4.290.0040.00416.66
7.4.280.0000.00716.51
7.4.270.0000.00716.55
7.4.260.0000.00716.61
7.4.250.0070.00016.63
7.4.240.0070.00016.64
7.4.230.0070.00016.40
7.4.220.0120.00616.67
7.4.210.0070.01316.54
7.4.200.0030.00516.45
7.4.160.0130.00616.64
7.4.150.0100.00717.40
7.4.140.0090.00817.86
7.4.130.0100.00816.49
7.4.120.0120.00616.47
7.4.110.0060.01316.68
7.4.100.0140.00416.59
7.4.90.0030.01316.71
7.4.80.0120.00919.39
7.4.70.0030.01316.66
7.4.60.0000.01516.55
7.4.50.0060.00316.63
7.4.40.0160.00416.47
7.4.30.0090.00916.60
7.4.00.0030.01314.95
7.3.330.0020.00213.18
7.3.320.0050.00013.19
7.3.310.0030.00316.32
7.3.300.0030.00316.22
7.3.290.0100.00716.21
7.3.280.0100.00716.28
7.3.270.0140.00317.40
7.3.260.0130.01016.46
7.3.250.0100.00816.44
7.3.240.0150.00416.48
7.3.230.0080.00816.50
7.3.210.0070.01116.46
7.3.200.0090.00619.39
7.3.190.0070.01216.41
7.3.180.0090.00616.69
7.3.170.0130.01016.31
7.3.160.0040.01216.41
7.3.120.0060.00614.51
7.3.10.0110.00516.77
7.3.00.0230.01016.29
7.2.330.0070.01516.62
7.2.320.0040.02016.89
7.2.310.0060.01016.85
7.2.300.0090.00916.86
7.2.290.0100.01016.80
7.2.130.0080.01316.84
7.2.120.0040.01116.80
7.2.110.0120.00616.89
7.2.100.0090.00916.70
7.2.90.0090.00616.90
7.2.80.0090.00316.39
7.2.70.0110.00416.53
7.2.60.0080.00716.89
7.2.50.0120.00616.88
7.2.40.0100.01016.80
7.2.30.0090.00617.04
7.2.20.0080.01116.75
7.2.10.0070.01016.59
7.2.00.0120.00416.89
7.1.250.0000.01315.90
7.1.200.0000.01315.77
7.1.70.0000.00716.96
7.1.60.0130.01319.70
7.1.50.0060.00617.17
7.1.00.0070.07322.32
7.0.200.0030.00517.00
7.0.140.0070.07022.08
7.0.100.0400.08019.95
7.0.90.0470.08720.13
7.0.80.0400.05019.89
7.0.70.0430.07320.02
7.0.60.0270.05319.98
7.0.50.0330.04720.30
7.0.40.0000.04720.13
7.0.30.0100.07320.14
7.0.20.0070.08019.96
7.0.10.0100.07320.04
7.0.00.0070.08019.95
5.6.280.0030.04720.92
5.6.250.0170.07720.59
5.6.240.0070.08320.59
5.6.230.0130.06020.65
5.6.220.0070.07720.68
5.6.210.0070.04020.43
5.6.200.0070.08321.17
5.6.190.0100.07321.01
5.6.180.0070.06721.08
5.6.170.0030.05721.05
5.6.160.0100.08321.07
5.6.150.0030.05321.08
5.6.140.0000.08020.91
5.6.130.0130.04321.02
5.6.120.0230.06721.03
5.6.110.0170.07721.07
5.6.100.0130.07321.11
5.6.90.0130.07721.11
5.6.80.0030.05020.40
5.6.70.0030.08020.32
5.6.60.0130.06720.34
5.6.50.0130.07020.31
5.6.40.0100.08020.39
5.6.30.0130.07020.39
5.6.20.0100.07720.39
5.6.10.0100.07320.43
5.6.00.0030.06320.38
5.5.380.0100.07720.38
5.5.370.0100.04320.38
5.5.360.0100.07320.39
5.5.350.0100.05320.38
5.5.340.0100.08020.89
5.5.330.0100.03720.75
5.5.320.0070.08320.73
5.5.310.0100.08720.75
5.5.300.0070.07320.92
5.5.290.0030.08320.79
5.5.280.0130.07720.63
5.5.270.0100.04720.91
5.5.260.0030.05320.81
5.5.250.0070.05020.57
5.5.240.0130.07320.24
5.5.230.0070.04320.25
5.5.220.0230.06320.09
5.5.210.0100.08020.25
5.5.200.0070.04720.23
5.5.190.0070.07720.12
5.5.180.0070.07320.28
5.5.160.0130.06320.25
5.5.150.0170.07720.27
5.5.140.0200.06720.17
5.5.130.0200.06320.14
5.5.120.0030.08020.24
5.5.110.0100.06719.97
5.5.100.0100.04720.07
5.5.90.0100.04020.09
5.5.80.0100.08020.08
5.5.70.0100.07320.09
5.5.60.0170.07020.08
5.5.50.0070.08320.04
5.5.40.0170.06719.92
5.5.30.0270.06019.98
5.5.20.0130.03320.01
5.5.10.0070.06720.12
5.5.00.0130.07319.96
5.4.450.0130.07719.57
5.4.440.0100.08719.45
5.4.430.0030.07319.41
5.4.420.0100.07319.11
5.4.410.0000.05719.42
5.4.400.0030.04719.04
5.4.390.0030.07719.09
5.4.380.0030.08019.23
5.4.370.0100.07019.12
5.4.360.0030.08018.95
5.4.350.0100.05318.78
5.4.340.0070.08019.06
5.4.320.0030.08019.03
5.4.310.0170.06718.79
5.4.300.0030.08018.97
5.4.290.0000.07319.08
5.4.280.0070.07718.94
5.4.270.0000.05019.09
5.4.260.0100.07318.78
5.4.250.0030.07319.11
5.4.240.0070.07319.09
5.4.230.0100.07319.09
5.4.220.0070.04319.02
5.4.210.0070.04318.96
5.4.200.0030.05718.93
5.4.190.0030.06719.13
5.4.180.0100.07318.94
5.4.170.0070.07318.89
5.4.160.0000.04719.21
5.4.150.0000.08019.05
5.4.140.0100.07316.14
5.4.130.0130.06716.39
5.4.120.0100.06316.38
5.4.110.0000.07716.29
5.4.100.0030.07316.33
5.4.90.0070.06716.41
5.4.80.0100.06716.44
5.4.70.0200.05716.36
5.4.60.0070.05316.32
5.4.50.0130.06716.20
5.4.40.0130.06716.33
5.4.30.0070.07016.37
5.4.20.0030.07316.23
5.4.10.0070.07316.18
5.4.00.0100.06015.57
5.3.290.0100.05314.63
5.3.280.0130.06714.58
5.3.270.0130.04014.59
5.3.260.0070.05014.56
5.3.250.0100.05714.46
5.3.240.0130.03014.46
5.3.230.0200.06314.55
5.3.220.0170.06714.42
5.3.210.0000.05014.40
5.3.200.0070.04714.39
5.3.190.0100.07014.40
5.3.180.0100.05714.42
5.3.170.0070.07714.50
5.3.160.0100.06714.54
5.3.150.0070.04314.41
5.3.140.0070.06714.48
5.3.130.0070.04314.53
5.3.120.0070.07714.45
5.3.110.0070.05014.40
5.3.100.0100.07013.98
5.3.90.0070.06313.98
5.3.80.0070.04013.92
5.3.70.0030.08313.99
5.3.60.0100.05313.96
5.3.50.0030.05313.80
5.3.40.0130.06313.94
5.3.30.0100.03013.85
5.3.20.0030.04713.65
5.3.10.0070.05313.61
5.3.00.0070.07313.62
5.2.170.0030.06711.51
5.2.160.0070.05711.51
5.2.150.0030.03711.51
5.2.140.0030.06711.51
5.2.130.0070.05011.51
5.2.120.0070.05311.51
5.2.110.0000.04011.51
5.2.100.0070.03311.51
5.2.90.0070.02311.51
5.2.80.0000.03011.51
5.2.70.0130.05011.51
5.2.60.0000.06711.51
5.2.50.0070.03011.51
5.2.40.0070.05311.51
5.2.30.0100.05311.51
5.2.20.0070.05711.51
5.2.10.0130.04311.51
5.2.00.0000.06311.51
5.1.60.0070.04711.51
5.1.50.0070.04311.51
5.1.40.0070.03311.51
5.1.30.0070.05711.51
5.1.20.0070.05711.51
5.1.10.0030.06011.51
5.1.00.0000.03311.51
5.0.50.0070.04311.51
5.0.40.0000.04711.51
5.0.30.0000.06311.51
5.0.20.0100.03711.51
5.0.10.0070.03711.51
5.0.00.0000.03311.51
4.4.90.0000.03711.51
4.4.80.0070.01311.51
4.4.70.0070.01711.51
4.4.60.0000.03711.51
4.4.50.0070.03311.51
4.4.40.0000.04711.51
4.4.30.0030.02011.51
4.4.20.0070.03311.51
4.4.10.0070.03311.51
4.4.00.0030.04711.51
4.3.110.0130.02711.51
4.3.100.0000.03311.51
4.3.90.0030.03311.51
4.3.80.0000.05311.51
4.3.70.0000.03711.51
4.3.60.0000.03311.51
4.3.50.0000.03711.51
4.3.40.0000.03711.51
4.3.30.0000.02711.51
4.3.20.0070.02011.51
4.3.10.0000.03311.51
4.3.00.0070.01711.51

preferences:
43.86 ms | 401 KiB | 5 Q