3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Variables for dynamic pricing chart current pricing calculations used $pshort = 2000;//pixel size from image just uploaded or selected to go to Step 2 - shorter of the two pixel dimensions - logical calcualtion $plong = 3000; // same as above - longer of the two pixel dimensions $shortmax = round($pshort/72); //values should also be shown below uploaded image summary div as suggested maximum print size $longmax = round($plong/72); $s1 = 8; //set short dimensions for table - 9 rows set $s2 = 10; $s3 = 12; $s4 = 14; $s5 = 16; $s6 = 10; $s7 = 10; $s8 = 10; $s9 = 10; // $s10 = ; //from drop down in custom row ten - update remaing buttons on change of selections $L1 = round($s1*$plong/$pshort); //nearest inch length-long inch based on image pixel size and set shorts $L2 = round($s2*$plong/$pshort); $L3 = round($s3*$plong/$pshort); $L4 = round($s4*$plong/$pshort); $L5 = round($s5*$plong/$pshort); $L6 = round($s6*$plong/$pshort); $L7 = round($s7*$plong/$pshort); $L8 = round($s8*$plong/$pshort); $L9 = round($s9*$plong/$pshort); $lus1 = round($s1*$L1*0.035,1); //lustre paper pricing with too small or too large for shipping argument if ($L2 > $longmax or $L2 > 48){ $lus2 = "NA"; } else { $lus2 = round($s2*$L2*0.035,1); } if ($L3 > $longmax or $L3 > 48){ $lus3 = "NA"; } else { $lus3 = round($s3*$L3*0.035,1); } if ($L4 > $longmax or $L4 > 48){ $lus4 = "NA"; } else { $lus4 = round($s4*$L4*0.035,1); } if ($L5 > $longmax or $L5 > 48){ $lus5 = "NA"; } else { $lus5 = round($s5*$L5*0.035,1); } if ($L6 > $longmax or $L6 > 48){ $lus6 = "NA"; } else { $lus6 = round($s6*$L6*0.035,1); } if ($L7 > $longmax or $L7 > 48){ $lus7 = "NA"; } else { $lus7 = round($s7*$L7*0.035,1); } if ($L8 > $longmax or $L8 > 48){ $lus8 = "NA"; } else { $lus8 = round($s8*$L8*0.035,1); } if ($L9 > $longmax or $L9 > 48){ $lus9 = "NA"; } else { $lus9 = round($s9*$L9*0.035,1); } $cot1 = round($s1*$L1*0.04,1); //cotton paper pricing with too small or too large for shipping argument if ($L2 > $longmax or $L2 > 46){ $cot2 = "NA"; } else { $cot2 = round($s2*$L2*0.04,1); } if ($L3 > $longmax or $L3 > 46){ $cot3 = "NA"; } else { $cot3 = round($s3*$L3*0.04,1); } if ($L4 > $longmax or $L4 > 46){ $cot4 = "NA"; } else { $cot4 = round($s4*$L4*0.04,1); } if ($L5 > $longmax or $L5 > 46){ $cot5 = "NA"; } else { $cot5 = round($s5*$L5*0.04,1); } if ($L6 > $longmax or $L6 > 46){ $cot6 = "NA"; } else { $cot6 = round($s6*$L6*0.04,1); } if ($L7 > $longmax or $L7 > 46){ $cot7 = "NA"; } else { $cot7 = round($s7*$L7*0.04,1); } if ($L8 > $longmax or $L8 > 46){ $cot8 = "NA"; } else { $cot8 = round($s8*$L8*0.04,1); } if ($L9 > $longmax or $L9 > 46){ $cot9 = "NA"; } else { $cot9 = round($s9*$L9*0.04,1); } $roll1 = round(($s1+4)*($L1+4)*0.055+4); //rollled canvas pricing with too small or too large for shipping argument if ($L2 > $longmax or $L2 > 46){ $roll2 = "NA"; } else { $roll2 = round($s2*$L2*0.04,1); } if ($L3 > $longmax or $L3 > 46){ $roll3 = "NA"; } else { $roll3 = round($s3*$L3*0.04,1); } if ($L4 > $longmax or $L4 > 46){ $roll4 = "NA"; } else { $roll4 = round($s4*$L4*0.04,1); } if ($L5 > $longmax or $L5 > 46){ $roll5 = "NA"; } else { $roll5 = round($s5*$L5*0.04,1); } if ($L6 > $longmax or $L6 > 46){ $roll6 = "NA"; } else { $roll6 = round($s6*$L6*0.04,1); } if ($L7 > $longmax or $L7 > 46){ $roll7 = "NA"; } else { $roll7 = round($s7*$L7*0.04,1); } if ($L8 > $longmax or $L8 > 46){ $roll8 = "NA"; } else { $roll8 = round($s8*$L8*0.04,1); } if ($L9 > $longmax or $L9 > 46){ $roll9 = "NA"; } else { $roll9 = round($s9*$L9*0.04,1); } echo $roll1 ?>

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.0120.00616.61
8.3.50.0070.01221.17
8.3.40.0080.00818.82
8.3.30.0070.00719.25
8.3.20.0000.00822.10
8.3.10.0080.00023.71
8.3.00.0080.00019.26
8.2.180.0090.00616.63
8.2.170.0150.00622.96
8.2.160.0170.00320.64
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0030.00326.16
8.2.120.0000.00819.77
8.2.110.0090.00021.16
8.2.100.0060.00617.88
8.2.90.0040.00419.30
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0090.00018.17
8.2.50.0090.00318.07
8.2.40.0030.00619.95
8.2.30.0040.00418.13
8.2.20.0040.00417.81
8.2.10.0040.00418.19
8.2.00.0040.00418.36
8.1.280.0070.00725.92
8.1.270.0080.00620.53
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00322.74
8.1.230.0070.00418.01
8.1.220.0040.00417.90
8.1.210.0030.00518.77
8.1.200.0040.00417.48
8.1.190.0050.00317.38
8.1.180.0040.00418.10
8.1.170.0080.00018.77
8.1.160.0070.00022.06
8.1.150.0040.00420.84
8.1.140.0000.00717.75
8.1.130.0050.00218.03
8.1.120.0050.00317.70
8.1.110.0040.00417.62
8.1.100.0040.00417.65
8.1.90.0020.00517.66
8.1.80.0000.00817.66
8.1.70.0070.00017.63
8.1.60.0040.00417.75
8.1.50.0060.00317.69
8.1.40.0030.00517.66
8.1.30.0040.00417.85
8.1.20.0040.00417.75
8.1.10.0000.00817.77
8.1.00.0050.00317.51
8.0.300.0000.00718.77
8.0.290.0050.00216.75
8.0.280.0000.00718.57
8.0.270.0080.00017.37
8.0.260.0030.00317.44
8.0.250.0070.00017.14
8.0.240.0030.00617.04
8.0.230.0030.00317.14
8.0.220.0000.00716.96
8.0.210.0040.00417.05
8.0.200.0030.00317.12
8.0.190.0000.00917.16
8.0.180.0050.00316.99
8.0.170.0070.00017.05
8.0.160.0080.00017.04
8.0.150.0000.00716.95
8.0.140.0030.00717.06
8.0.130.0060.00013.46
8.0.120.0080.00016.95
8.0.110.0040.00417.04
8.0.100.0000.00716.90
8.0.90.0040.00417.15
8.0.80.0080.00917.05
8.0.70.0080.00017.03
8.0.60.0000.00716.94
8.0.50.0050.00317.09
8.0.30.0120.01217.15
8.0.20.0100.00817.45
8.0.10.0040.00417.04
8.0.00.0090.00916.95
7.4.330.0050.00015.18
7.4.320.0060.00016.69
7.4.300.0070.00016.78
7.4.290.0030.00316.78
7.4.280.0000.00716.72
7.4.270.0040.00416.73
7.4.260.0020.00516.75
7.4.250.0040.00416.73
7.4.240.0030.00516.74
7.4.230.0070.00016.79
7.4.220.0040.01416.81
7.4.210.0060.01216.77
7.4.200.0030.00516.90
7.4.160.0130.00916.79
7.4.150.0100.00717.40
7.4.140.0120.00717.86
7.4.130.0190.00416.70
7.4.120.0070.01316.62
7.4.110.0130.01016.82
7.4.100.0140.00416.66
7.4.90.0180.00016.84
7.4.80.0060.01019.39
7.4.70.0110.01116.70
7.4.60.0160.00316.76
7.4.50.0030.00616.73
7.4.40.0080.00816.55
7.4.30.0120.01016.76
7.4.10.0000.02116.74
7.4.00.0040.01215.89
7.3.330.0060.00013.45
7.3.320.0030.00313.30
7.3.310.0030.00316.45
7.3.300.0000.00616.35
7.3.290.0030.01216.54
7.3.280.0100.00816.51
7.3.270.0130.00717.40
7.3.260.0070.01016.68
7.3.240.0070.01016.67
7.3.230.0050.01316.50
7.3.210.0070.01016.55
7.3.200.0040.01816.41
7.3.190.0070.01016.71
7.3.180.0070.01016.63
7.3.170.0110.00716.53
7.3.160.0100.01316.59
7.3.130.0100.00716.51
7.3.120.0030.01716.52
7.3.110.0040.01116.63
7.3.100.0060.00916.67
7.3.90.0060.00916.53
7.3.80.0040.01116.43
7.3.70.0060.00316.58
7.3.60.0070.01016.59
7.3.50.0090.00916.44
7.3.40.0000.01216.55
7.3.30.0100.00316.41
7.3.20.0160.00018.32
7.3.10.0070.00517.53
7.3.00.0050.00817.48
7.2.330.0110.00616.86
7.2.320.0140.00816.59
7.2.310.0120.00916.86
7.2.300.0070.01416.75
7.2.290.0140.00316.58
7.2.260.0090.01216.68
7.2.250.0030.01716.78
7.2.240.0060.01016.56
7.2.230.0100.00616.77
7.2.220.0060.00616.77
7.2.210.0070.01116.76
7.2.200.0070.00716.73
7.2.190.0030.01016.63
7.2.180.0040.00816.67
7.2.170.0090.00616.55
7.2.160.0040.01116.56
7.2.150.0080.00818.59
7.2.140.0090.00318.34
7.2.130.0040.00917.48
7.2.120.0070.00817.36
7.2.110.0020.01217.67
7.2.100.0060.00617.50
7.2.90.0080.00517.71
7.2.80.0030.01217.66
7.2.70.0020.01217.51
7.2.60.0100.00617.34
7.2.50.0100.00617.61
7.2.40.0050.00717.64
7.2.30.0070.00717.66
7.2.20.0020.01117.60
7.2.10.0070.00817.64
7.2.00.0050.00818.25
7.1.330.0070.00717.58
7.1.320.0030.00717.38
7.1.310.0070.01017.43
7.1.300.0080.00317.32
7.1.290.0070.00717.37
7.1.280.0060.00917.50
7.1.270.0080.00417.62
7.1.260.0100.00717.35
7.1.250.0030.01116.73
7.1.240.0100.00717.34
7.1.230.0030.01017.26
7.1.220.0070.00717.55
7.1.210.0090.00617.39
7.1.200.0050.00816.56
7.1.190.0060.00617.34
7.1.180.0030.01217.35
7.1.170.0000.01317.41
7.1.160.0070.00717.38
7.1.150.0030.01417.30
7.1.140.0060.00917.35
7.1.130.0100.00317.46
7.1.120.0040.00817.32
7.1.110.0050.00517.29
7.1.100.0070.00717.80
7.1.90.0030.00717.43
7.1.80.0040.01117.52
7.1.70.0010.00817.29
7.1.60.0120.00518.48
7.1.50.0090.01116.94
7.1.40.0070.01017.50
7.1.30.0000.00917.36
7.1.20.0070.00717.57
7.1.10.0110.00417.38
7.1.00.0070.04219.88
7.0.330.0040.01416.86
7.0.320.0110.00417.09
7.0.310.0080.00317.19
7.0.300.0000.01417.03
7.0.290.0000.01217.24
7.0.280.0070.01117.06
7.0.270.0100.00316.91
7.0.260.0000.01316.99
7.0.250.0050.00516.98
7.0.240.0070.00717.14
7.0.230.0040.00417.10
7.0.220.0040.00817.14
7.0.210.0060.00917.09
7.0.200.0050.00616.94
7.0.190.0030.01417.28
7.0.180.0040.00717.21
7.0.170.0040.00717.20
7.0.160.0070.01117.05
7.0.150.0040.01117.09
7.0.140.0060.00617.19
7.0.130.0000.01317.09
7.0.120.0030.00717.14
7.0.110.0090.00617.06
7.0.100.0170.04118.53
7.0.90.0070.02718.49
7.0.80.0050.04218.58
7.0.70.0050.04418.68
7.0.60.0200.04318.56
7.0.50.0100.03818.67
7.0.40.0070.04017.59
7.0.30.0030.04217.48
7.0.20.0050.03617.58
7.0.10.0020.04517.50
7.0.00.0100.04017.54
5.6.400.0060.00915.88
5.6.390.0110.00716.21
5.6.380.0060.01016.08
5.6.370.0000.01016.02
5.6.360.0000.01315.65
5.6.350.0070.00716.01
5.6.340.0030.00915.64
5.6.330.0040.01416.24
5.6.320.0000.01216.02
5.6.310.0060.00615.84
5.6.300.0070.00715.71
5.6.290.0110.00716.11
5.6.280.0070.03818.44
5.6.270.0090.00615.95
5.6.260.0070.01015.97
5.6.250.0030.04718.37
5.6.240.0120.04018.25
5.6.230.0060.04518.40
5.6.220.0050.02918.38
5.6.210.0120.04018.38
5.6.200.0070.05018.50
5.6.190.0070.04018.48
5.6.180.0030.04018.66
5.6.170.0130.03818.41
5.6.160.0070.04018.53
5.6.150.0050.04518.38
5.6.140.0030.04518.44
5.6.130.0050.03818.55
5.6.120.0130.04018.57
5.6.110.0070.04718.49
5.6.100.0020.05218.56
5.6.90.0080.03318.52
5.6.80.0100.03318.26
5.6.70.0080.03218.14
5.6.60.0100.04218.21
5.6.50.0050.03218.13
5.6.40.0020.04518.01
5.6.30.0040.04218.18
5.6.20.0100.04018.21
5.6.10.0140.03518.13
5.6.00.0100.04218.16
5.5.380.0030.05118.26
5.5.370.0110.03518.11
5.5.360.0110.03817.99
5.5.350.0120.03518.21
5.5.340.0120.03818.39
5.5.330.0050.02818.36
5.5.320.0070.03018.41
5.5.310.0030.03418.25
5.5.300.0050.03018.28
5.5.290.0100.04718.42
5.5.280.0100.04018.33
5.5.270.0060.04218.45
5.5.260.0110.04318.36
5.5.250.0050.04718.22
5.5.240.0030.04118.03
5.5.230.0070.04617.95
5.5.220.0100.03817.96
5.5.210.0090.03517.98
5.5.200.0050.02117.98
5.5.190.0070.02517.89
5.5.180.0030.04617.97
5.5.170.0030.00715.56
5.5.160.0080.03818.12
5.5.150.0120.04017.94
5.5.140.0050.04417.99
5.5.130.0120.03318.01
5.5.120.0080.04318.04
5.5.110.0070.03218.01
5.5.100.0100.03818.06
5.5.90.0060.03917.81
5.5.80.0050.02517.88
5.5.70.0090.04217.99
5.5.60.0090.03717.99
5.5.50.0050.04318.03
5.5.40.0020.03217.91
5.5.30.0110.02817.89
5.5.20.0100.04217.90
5.5.10.0070.04517.98
5.5.00.0140.03918.07
5.4.450.0070.04316.50
5.4.440.0070.04816.69
5.4.430.0050.02516.58
5.4.420.0050.04716.47
5.4.410.0070.04016.53
5.4.400.0020.02516.32
5.4.390.0070.02816.53
5.4.380.0100.02916.41
5.4.370.0050.02316.40
5.4.360.0050.03416.46
5.4.350.0120.03116.40
5.4.340.0020.03216.48
5.4.330.0030.01013.77
5.4.320.0070.04016.44
5.4.310.0040.02516.42
5.4.300.0030.02816.38
5.4.290.0050.03816.41
5.4.280.0070.02716.46
5.4.270.0070.04216.42
5.4.260.0030.03816.41
5.4.250.0050.02216.38
5.4.240.0090.03916.36
5.4.230.0110.02916.31
5.4.220.0070.04016.45
5.4.210.0030.03716.53
5.4.200.0070.03416.36
5.4.190.0020.04616.30
5.4.180.0040.03616.36
5.4.170.0070.03716.48
5.4.160.0020.04216.42
5.4.150.0060.03916.35
5.4.140.0050.02815.09
5.4.130.0100.03515.10
5.4.120.0090.03115.05
5.4.110.0050.02615.09
5.4.100.0050.04015.08
5.4.90.0130.03115.09
5.4.80.0070.03615.08
5.4.70.0060.03715.04
5.4.60.0070.03915.10
5.4.50.0070.02315.04
5.4.40.0090.02415.12
5.4.30.0070.03515.08
5.4.20.0080.02815.11
5.4.10.0100.03815.07
5.4.00.0050.03314.82

preferences:
69.08 ms | 401 KiB | 5 Q